Make WordPress Core


Ignore:
Timestamp:
10/17/2022 06:11:47 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Grouped backports to the 4.9 branch.

  • 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,
  • Media: Refactor search by filename within the admin,
  • Pings/trackbacks: Apply KSES to all trackbacks,
  • Comments: Apply kses when editing comments,
  • Customize: Escape blogname option in underscores templates,
  • REST API: Lockdown post parameter of the terms endpoint,
  • Mail: Reset PHPMailer properties between use,
  • Query: Validate relation in WP_Date_Query,
  • Widgets: Escape RSS error messages for display.

Merges [54521], [54522], [54523], [54524], [54525], [54526], [54527], [54528], [54529], [54530], [54541] to the 4.9 branch.
Props voldemortensen, johnbillion, paulkevan, peterwilsoncc, xknown, dd32, audrasjb, martinkrcho, vortfu, davidbaumwald, tykoted, timothyblynjacobs, johnjamesjacoby, ehtis, matveb, talldanwp.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

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

    r43445 r54569  
    26052605                                'author_name'       => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
    26062606                                'author_user_agent' => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
     2607                                'author'            => self::$editor_id,
    26072608                        ), array(
    26082609                                'content' => array(
     
    26122613                                'author_name'       => 'div strong',
    26132614                                'author_user_agent' => 'div strong',
     2615                                'author'            => self::$editor_id,
    26142616                        ) );
    26152617                } else {
     
    26192621                                'author_name'       => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
    26202622                                'author_user_agent' => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
     2623                                'author'            => self::$editor_id,
    26212624                        ), array(
    26222625                                'content' => array(
     
    26262629                                'author_name'       => 'div strong',
    26272630                                'author_user_agent' => 'div strong',
     2631                                'author'            => self::$editor_id,
    26282632                        ) );
    26292633                }
     
    26372641                        'author_name'       => '\\\&\\\ &amp; &invalid; < &lt; &amp;lt;',
    26382642                        'author_user_agent' => '\\\&\\\ &amp; &invalid; < &lt; &amp;lt;',
     2643                        'author'            => self::$superadmin_id,
    26392644                ), array(
    26402645                        'content' => array(
     
    26442649                        'author_name'       => '\\\&amp;\\\ &amp; &amp;invalid; &lt; &lt; &amp;lt;',
    26452650                        'author_user_agent' => '\\\&\\\ &amp; &invalid; &lt; &lt; &amp;lt;',
     2651                        'author'            => self::$superadmin_id,
    26462652                ) );
    26472653        }
     
    26542660                        'author_name'       => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
    26552661                        'author_user_agent' => '<div>div</div> <strong>strong</strong> <script>oh noes</script>',
     2662                        'author'            => self::$superadmin_id,
    26562663                ), array(
    26572664                        'content' => array(
     
    26612668                        'author_name'       => 'div strong',
    26622669                        'author_user_agent' => 'div strong',
     2670                        'author'            => self::$superadmin_id,
    26632671                ) );
    26642672        }
Note: See TracChangeset for help on using the changeset viewer.