diff --git a/includes/class-simple-local-avatars.php b/includes/class-simple-local-avatars.php index 4c620b1c..df0146e1 100644 --- a/includes/class-simple-local-avatars.php +++ b/includes/class-simple-local-avatars.php @@ -913,7 +913,7 @@ public function edit_user_profile( $profileuser ) {
ID ) ); + echo get_simple_local_avatar( $profileuser->ID ); remove_filter( 'pre_option_avatar_rating', '__return_empty_string' ); ?> @@ -1136,7 +1136,7 @@ public function action_remove_simple_local_avatar() { $this->avatar_delete( $user_id ); // delete old images if successful if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { - echo wp_kses_post( get_simple_local_avatar( $user_id ) ); + echo get_simple_local_avatar( $user_id ); } } @@ -1162,7 +1162,7 @@ public function ajax_assign_simple_local_avatar_media() { $this->assign_new_user_avatar( $media_id, $user_id ); } - echo wp_kses_post( get_simple_local_avatar( $user_id ) ); + echo get_simple_local_avatar( $user_id ); die; } diff --git a/tests/phpunit/SimpleLocalAvatarsTest.php b/tests/phpunit/SimpleLocalAvatarsTest.php index 7b7c3ce3..a028a208 100644 --- a/tests/phpunit/SimpleLocalAvatarsTest.php +++ b/tests/phpunit/SimpleLocalAvatarsTest.php @@ -353,10 +353,6 @@ public function test_edit_user_profile() { ->with( 1 ) ->andReturn( '' ); - WP_Mock::userFunction( 'wp_kses_post' ) - ->with( '' ) - ->andReturn( '' ); - $profileuser = new stdClass(); $profileuser->ID = 1;