Changeset 42441
- Timestamp:
- 01/13/2018 01:10:56 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r42401 r42441 125 125 126 126 // Format text area for display. 127 foreach ( array( 'term_description', 'get_the_ author_description', 'get_the_post_type_description' ) as $filter ) {127 foreach ( array( 'term_description', 'get_the_post_type_description' ) as $filter ) { 128 128 add_filter( $filter, 'wptexturize' ); 129 129 add_filter( $filter, 'convert_chars' ); -
trunk/tests/phpunit/tests/user/author.php
r42343 r42441 57 57 $this->assertEquals( 'test_author', get_the_author_meta( 'display_name' ) ); 58 58 59 $this->assertEquals( ' <p>test_author</p>', trim( get_the_author_meta( 'description' ) ) );59 $this->assertEquals( 'test_author', trim( get_the_author_meta( 'description' ) ) ); 60 60 $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) ); 61 61 add_user_meta( self::$author_id, 'user_description', 'user description' ); … … 64 64 // See #20285 65 65 $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) ); 66 $this->assertEquals( ' <p>test_author</p>', trim( get_the_author_meta( 'description' ) ) );66 $this->assertEquals( 'test_author', trim( get_the_author_meta( 'description' ) ) ); 67 67 update_user_meta( self::$author_id, 'user_description', '' ); 68 68 $this->assertEquals( '', get_user_meta( self::$author_id, 'user_description', true ) ); 69 69 $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) ); 70 $this->assertEquals( ' <p>test_author</p>', trim( get_the_author_meta( 'description' ) ) );70 $this->assertEquals( 'test_author', trim( get_the_author_meta( 'description' ) ) ); 71 71 72 72 $this->assertEquals( '', get_the_author_meta( 'does_not_exist' ) );
Note: See TracChangeset
for help on using the changeset viewer.