Making WordPress.org

Changeset 10366


Ignore:
Timestamp:
10/12/2020 10:18:46 PM (3 years ago)
Author:
coffee2code
Message:

Developer, Code Standards Handbook: Extend double-encoding fix to include single quotes.

Fixes https://github.com/WordPress/wpcs-docs/issues/46.
See #5346.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/import-coding-standards.php

    r10190 r10366  
    5454        if ( $this->get_post_type() === get_post_type() ) {
    5555            $content = str_replace(
    56                 [ '&', '&042;', '*', '<', '?', '"' ],
    57                 [ '&', '*', '*', '<', '?', '"' ],
     56                [ '&', ''', '&042;', '*', '<', '?', '"' ],
     57                [ '&', ''', '*', '*', '<', '?', '"' ],
    5858                $content
    5959            );
Note: See TracChangeset for help on using the changeset viewer.