diff --git src/wp-includes/default-filters.php src/wp-includes/default-filters.php
index c1f6f673e1..53f1d7b247 100644
|
|
foreach ( array( 'single_post_title', 'single_cat_title', 'single_tag_title', 's |
124 | 124 | } |
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' ); |
130 | 130 | add_filter( $filter, 'wpautop' ); |
diff --git tests/phpunit/tests/user/author.php tests/phpunit/tests/user/author.php
index d8bdf37a39..669ff72d84 100644
|
|
class Tests_User_Author_Template extends WP_UnitTestCase { |
56 | 56 | $this->assertEquals( 'test_author', get_the_author_meta( 'user_login' ) ); |
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' ); |
62 | 62 | $this->assertEquals( 'user description', get_user_meta( self::$author_id, 'user_description', true ) ); |
63 | 63 | // user_description in meta is ignored. The content of description is returned instead. |
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' ) ); |
73 | 73 | } |