Make WordPress Core

Changeset 56499


Ignore:
Timestamp:
08/31/2023 02:43:36 PM (11 months ago)
Author:
audrasjb
Message:

Coding Standards: Remove unused global variables in various /wp-admin/includes/ files.

Props upadalavipul.
Fixes #59254.

Location:
trunk/src/wp-admin/includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-privacy-policy-content.php

    r56174 r56499  
    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;
    138 
    139135        $screen = get_current_screen()->id;
    140136
  • trunk/src/wp-admin/includes/ms.php

    r56176 r56499  
    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;
    68 
    6965    $blog_id = (int) $blog_id;
    7066
  • trunk/src/wp-admin/includes/upgrade.php

    r56270 r56499  
    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' );
Note: See TracChangeset for help on using the changeset viewer.