1313 * $ wp bp component activate groups
1414 * Success: The Groups component has been activated.
1515 *
16- * # Deactive a component.
16+ * # Deactivate a component.
1717 * $ wp bp component deactivate groups
1818 * Success: The Groups component has been deactivated.
1919 *
@@ -101,7 +101,7 @@ public function activate( $args ) {
101101 *
102102 * ## EXAMPLE
103103 *
104- * # Deactive a component.
104+ * # Deactivate a component.
105105 * $ wp bp component deactivate groups
106106 * Success: The Groups component has been deactivated.
107107 */
@@ -250,7 +250,7 @@ public function list_( $args, $assoc_args ) {
250250 'id ' => $ component_key ,
251251 'status ' => $ this ->verify_component_status ( $ component_key ),
252252 'title ' => esc_html ( $ component ['title ' ] ),
253- 'description ' => html_entity_decode ( $ component ['description ' ] ),
253+ 'description ' => html_entity_decode ( $ component ['description ' ], ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ),
254254 ];
255255 }
256256 break ;
@@ -270,7 +270,7 @@ public function list_( $args, $assoc_args ) {
270270 'id ' => $ component_key ,
271271 'status ' => $ this ->verify_component_status ( $ component_key ),
272272 'title ' => esc_html ( $ components [ $ component_key ]['title ' ] ),
273- 'description ' => html_entity_decode ( $ components [ $ component_key ]['description ' ] ),
273+ 'description ' => html_entity_decode ( $ components [ $ component_key ]['description ' ], ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ),
274274 ];
275275 }
276276 break ;
@@ -290,7 +290,7 @@ public function list_( $args, $assoc_args ) {
290290 'id ' => $ component_key ,
291291 'status ' => $ this ->verify_component_status ( $ component_key ),
292292 'title ' => esc_html ( $ components [ $ component_key ]['title ' ] ),
293- 'description ' => html_entity_decode ( $ components [ $ component_key ]['description ' ] ),
293+ 'description ' => html_entity_decode ( $ components [ $ component_key ]['description ' ], ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ),
294294 ];
295295 }
296296 break ;
0 commit comments