Make WordPress Core


Ignore:
Timestamp:
02/23/2022 08:01:55 PM (3 years ago)
Author:
hellofromTonya
Message:

Formatting: Make terms in wpautop() and shortcode_unautop() more welcoming and inclusive.

The developer facing humor in these functions were from a different era of WordPress. Tolerance for in-jokes and other developer facing humor has decreased over the years. Terms like "pee" and "tinkle" may make some folks chuckle while for others it makes them uncomfortable.

Terminology of the past is being (or has been) re-evaluated to transform words into a language that are inclusive and welcome for all. This commit is part of that effort as it replaces.

Follow-up [13], [9255].

Props ricomoorman, tzipporahwitty, ironprogrammer, peterwilsoncc, jeremyfelt, Viper007Bond, rmccue, SergeyBiryukov, hellofromTonya.
Fixes #25615.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/wpAutop.php

    r52010 r52789  
    532532     * @ticket 4857
    533533     */
    534     public function test_that_text_before_blocks_is_peed() {
     534    public function test_that_text_before_blocks_is_wrapped_in_a_paragraph() {
    535535        $content  = 'a<div>b</div>';
    536536        $expected = "<p>a</p>\n<div>b</div>";
     
    566566     * @ticket 14674
    567567     */
    568     public function test_the_hr_is_not_peed() {
     568    public function test_the_hr_is_not_wrapped_in_a_paragraph() {
    569569        $content  = 'paragraph1<hr>paragraph2';
    570570        $expected = "<p>paragraph1</p>\n<hr>\n<p>paragraph2</p>";
Note: See TracChangeset for help on using the changeset viewer.