Make WordPress Core


Ignore:
Timestamp:
10/17/2022 05:46:39 PM (20 months ago)
Author:
audrasjb
Message:

Grouped backports to the 5.8 branch.

  • Editor: Bump @wordpress packages for the 5.9 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,
  • Users: Revert use of shared objects for current user,
  • 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.8 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.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/tests/phpunit/tests/pluggable.php

    r50916 r54548  
    324324        return $signatures;
    325325    }
    326 
    327     /**
    328      * @ticket 28020
    329      */
    330     public function test_get_user_by_should_return_same_instance_as_wp_get_current_user() {
    331         // Create a test user.
    332         $new_user = self::factory()->user->create( array( 'role' => 'subscriber' ) );
    333 
    334         // Set the test user as the current user.
    335         $current_user = wp_set_current_user( $new_user );
    336 
    337         // Get the test user using get_user_by().
    338         $from_get_user_by = get_user_by( 'id', $new_user );
    339 
    340         $this->assertSame( $current_user, $from_get_user_by );
    341     }
    342326}
Note: See TracChangeset for help on using the changeset viewer.