Make WordPress Core


Ignore:
Timestamp:
01/15/2018 12:09:39 AM (8 years ago)
Author:
dd32
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, peterwilsoncc.
Merges [42441] to the 4.9 branch.
Fixes #42578.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/tests/phpunit/tests/user/author.php

    r41173 r42445  
    5353        $this->assertEquals( 'test_author', get_the_author_meta( 'display_name' ) );
    5454
    55         $this->assertEquals( '<p>test_author</p>', trim( get_the_author_meta( 'description' ) ) );
     55        $this->assertEquals( 'test_author', trim( get_the_author_meta( 'description' ) ) );
    5656        $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) );
    5757        add_user_meta( self::$author_id, 'user_description', 'user description' );
     
    6060        // See #20285
    6161        $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) );
    62         $this->assertEquals( '<p>test_author</p>', trim( get_the_author_meta( 'description' ) ) );
     62        $this->assertEquals( 'test_author', trim( get_the_author_meta( 'description' ) ) );
    6363        update_user_meta( self::$author_id, 'user_description', '' );
    6464        $this->assertEquals( '', get_user_meta( self::$author_id, 'user_description', true ) );
    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
    6868        $this->assertEquals( '', get_the_author_meta( 'does_not_exist' ) );
Note: See TracChangeset for help on using the changeset viewer.