WordPress build repository browser

Changeset 62842


Ignore:
Timestamp:
09/17/2026 05:39:30 PM (5 weeks ago)
Author:
desrosj
Message:

Formatting: Prevent wpautop() moving a paragraph into an attribute of a blockquote.

Merges r63665 to the 7.1 branch.

Props johnbillion, westonruter, jonsurrell, joehoyle, dmsnell, xknown, jorbin, jeremyfelt, rafiem.

Built from ​https://develop.svn.wordpress.org/branches/7.1@63668

Location:
branches/7.1/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/7.1/wp-includes/formatting.php

    r62116 r62842  
    561561
    562562        // If a <blockquote> is wrapped with a <p>, move it inside the <blockquote>.
    563         $text = preg_replace( '|<p><blockquote([^>]*)>|i', '<blockquote$1><p>', $text );
     563        $text = preg_replace( '!<p><blockquote((?:[^>"\']|"[^"]*"|\'[^\']*\')*)>!i', '<blockquote$1><p>', $text );
    564564        $text = str_replace( '</blockquote></p>', '</p></blockquote>', $text );
    565565
  • branches/7.1/wp-includes/version.php

    r62841 r62842  
    1717 * @global string $wp_version
    1818 */
    19 $wp_version = '7.1.1-RC1-63667';
     19$wp_version = '7.1.1-RC1-63668';
    2020
    2121/**
Note: See TracChangeset for help on using the changeset viewer.