Make WordPress Core


Ignore:
Timestamp:
10/17/2022 06:01:26 PM (21 months ago)
Author:
audrasjb
Message:

Grouped backports to the 5.4 branch.

  • Editor: Bump @wordpress packages for the branch,
  • Media: Refactor search by filename within the admin,
  • REST API: Lockdown post parameter of the terms endpoint,
  • Customize: Escape blogname option in underscores templates,
  • Query: Validate relation in WP_Date_Query,
  • Posts, Post types: Apply KSES to post-by-email content,
  • General: Validate host on "Are you sure?" screen,
  • Posts, Post types: Remove emails from post-by-email logs,
  • Pings/trackbacks: Apply KSES to all trackbacks,
  • Mail: Reset PHPMailer properties between use,
  • Comments: Apply kses when editing comments,
  • Widgets: Escape RSS error messages for display.

Merges [54521-54530] to the 5.4 branch.
Props audrasjb, costdev, cu121, dd32, davidbaumwald, ehtis, johnbillion, johnjamesjacoby, martinkrcho, matveb, oztaser, paulkevan, peterwilsoncc, ravipatel, SergeyBiryukov, talldanwp, timothyblynjacobs, tykoted, voldemortensen, vortfu, xknown.

Location:
branches/5.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/tests/phpunit/tests/rest-api/rest-comments-controller.php

    r47122 r54559  
    28732873                    'author_name'       => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
    28742874                    'author_user_agent' => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
     2875                    'author'            => self::$editor_id,
    28752876                ),
    28762877                array(
     
    28812882                    'author_name'       => 'div strong',
    28822883                    'author_user_agent' => 'div strong',
     2884                    'author'            => self::$editor_id,
    28832885                )
    28842886            );
     
    28902892                    'author_name'       => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
    28912893                    'author_user_agent' => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
     2894                    'author'            => self::$editor_id,
    28922895                ),
    28932896                array(
     
    28982901                    'author_name'       => 'div strong',
    28992902                    'author_user_agent' => 'div strong',
     2903                    'author'            => self::$editor_id,
    29002904                )
    29012905            );
     
    29122916                'author_name'       => '\\\&\\\ &amp; &invalid; < &lt; &amp;lt;',
    29132917                'author_user_agent' => '\\\&\\\ &amp; &invalid; < &lt; &amp;lt;',
     2918                'author'            => self::$superadmin_id,
    29142919            ),
    29152920            array(
     
    29202925                'author_name'       => '\\\&amp;\\\ &amp; &amp;invalid; &lt; &lt; &amp;lt;',
    29212926                'author_user_agent' => '\\\&\\\ &amp; &invalid; &lt; &lt; &amp;lt;',
     2927                'author'            => self::$superadmin_id,
    29222928            )
    29232929        );
     
    29332939                'author_name'       => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
    29342940                'author_user_agent' => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
     2941                'author'            => self::$superadmin_id,
    29352942            ),
    29362943            array(
     
    29412948                'author_name'       => 'div strong',
    29422949                'author_user_agent' => 'div strong',
     2950                'author'            => self::$superadmin_id,
    29432951            )
    29442952        );
Note: See TracChangeset for help on using the changeset viewer.