Make WordPress Core

Changeset 42441


Ignore:
Timestamp:
01/13/2018 01:10:56 AM (9 years ago)
Author:
peterwilsoncc
Message:

Formatting: Do not run formatting and texturization on author bios.

Removes the formatting and texturization added to author bios in #40040 due to back-compatibility concerns.

Reverts [41172], [41173].

Props 0x6f0, rabmalin for review.
Fixes #42578.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r42401 r42441  
    125125
    126126// Format text area for display.
    127 foreach ( array( 'term_description', 'get_the_author_description', 'get_the_post_type_description' ) as $filter ) {
     127foreach ( array( 'term_description', 'get_the_post_type_description' ) as $filter ) {
    128128        add_filter( $filter, 'wptexturize' );
    129129        add_filter( $filter, 'convert_chars' );
  • trunk/tests/phpunit/tests/user/author.php

    r42343 r42441  
    5757                $this->assertEquals( 'test_author', get_the_author_meta( 'display_name' ) );
    5858
    59                 $this->assertEquals( '<p>test_author</p>', trim( get_the_author_meta( 'description' ) ) );
     59                $this->assertEquals( 'test_author', trim( get_the_author_meta( 'description' ) ) );
    6060                $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) );
    6161                add_user_meta( self::$author_id, 'user_description', 'user description' );
     
    6464                // See #20285
    6565                $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' ) ) );
    6767                update_user_meta( self::$author_id, 'user_description', '' );
    6868                $this->assertEquals( '', get_user_meta( self::$author_id, 'user_description', true ) );
    6969                $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' ) ) );
    7171
    7272                $this->assertEquals( '', get_the_author_meta( 'does_not_exist' ) );
Note: See TracChangeset for help on using the changeset viewer.