Make WordPress Core

Ticket #42578: 42578.4.diff

File 42578.4.diff, 2.4 KB (added by peterwilsoncc, 7 years ago)
  • src/wp-includes/default-filters.php

    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 
    124124}
    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' );
    130130        add_filter( $filter, 'wpautop' );
  • tests/phpunit/tests/user/author.php

    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 { 
    5656                $this->assertEquals( 'test_author', get_the_author_meta( 'user_login' ) );
    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' );
    6262                $this->assertEquals( 'user description', get_user_meta( self::$author_id, 'user_description', true ) );
    6363                // user_description in meta is ignored. The content of description is returned instead.
    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' ) );
    7373        }