Make WordPress Core

Ticket #59254: 59254.patch

File 59254.patch, 1.8 KB (added by upadalavipul, 14 months ago)

Patch added

  • wp-admin/includes/class-wp-privacy-policy-content.php

     
    130130         * Outputs a warning when some privacy info has changed.
    131131         *
    132132         * @since 4.9.6
    133          *
    134          * @global WP_Post $post Global post object.
    135133         */
    136134        public static function policy_text_changed_notice() {
    137                 global $post;
    138135
    139136                $screen = get_current_screen()->id;
    140137
  • wp-admin/includes/ms.php

     
    5858 * @since 3.0.0
    5959 * @since 5.1.0 Use wp_delete_site() internally to delete the site row from the database.
    6060 *
    61  * @global wpdb $wpdb WordPress database abstraction object.
    62  *
    6361 * @param int  $blog_id Site ID.
    6462 * @param bool $drop    True if site's database tables should be dropped. Default false.
    6563 */
    6664function wpmu_delete_blog( $blog_id, $drop = false ) {
    67         global $wpdb;
    6865
    6966        $blog_id = (int) $blog_id;
    7067
  • wp-admin/includes/upgrade.php

     
    625625         *
    626626         * @global int  $wp_current_db_version The old (current) database version.
    627627         * @global int  $wp_db_version         The new database version.
    628          * @global wpdb $wpdb                  WordPress database abstraction object.
    629628         */
    630629        function wp_upgrade() {
    631                 global $wp_current_db_version, $wp_db_version, $wpdb;
     630                global $wp_current_db_version, $wp_db_version;
    632631
    633632                $wp_current_db_version = __get_option( 'db_version' );
    634633