Make WordPress Core

Ticket #58076: 58076.11.patch

File 58076.11.patch, 1.3 KB (added by viralsampat, 15 months ago)

I have checked above mentioned issue and founds few files. Here, I have added its patch.

  • src/wp-includes/class-wp-user-query.php

    diff --git src/wp-includes/class-wp-user-query.php src/wp-includes/class-wp-user-query.php
    index b8b4733cf0..e36b1a9597 100644
    class WP_User_Query { 
    849849                                         * @since 3.2.0
    850850                                         * @since 5.1.0 Added the `$this` parameter.
    851851                                         *
    852                                          * @global wpdb $wpdb WordPress database abstraction object.
    853                                          *
    854852                                         * @param string        $sql   The SELECT FOUND_ROWS() query for the current WP_User_Query.
    855853                                         * @param WP_User_Query $query The current WP_User_Query instance.
    856854                                         */
  • src/wp-includes/ms-blogs.php

    diff --git src/wp-includes/ms-blogs.php src/wp-includes/ms-blogs.php
    index eddb99c605..ef10b84377 100644
    function update_archived( $id, $archived ) { 
    749749 * @since MU (3.0.0)
    750750 * @since 5.1.0 Use wp_update_site() internally.
    751751 *
    752  * @global wpdb $wpdb WordPress database abstraction object.
    753752 *
    754753 * @param int    $blog_id    Blog ID.
    755754 * @param string $pref       Field name.
    function update_archived( $id, $archived ) { 
    758757 * @return string|false $value
    759758 */
    760759function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) {
    761         global $wpdb;
    762760
    763761        if ( null !== $deprecated ) {
    764762                _deprecated_argument( __FUNCTION__, '3.1.0' );