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

Props upadalavipul.
Fixes #59254.




Built from https://develop.svn.wordpress.org/trunk@56499


git-svn-id: http://core.svn.wordpress.org/trunk@56011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-08-31 14:45:20 +00:00
parent 21011a6ebb
commit 92dcec465a
4 changed files with 2 additions and 11 deletions

View File

@ -130,12 +130,8 @@ final class WP_Privacy_Policy_Content {
* Outputs a warning when some privacy info has changed.
*
* @since 4.9.6
*
* @global WP_Post $post Global post object.
*/
public static function policy_text_changed_notice() {
global $post;
$screen = get_current_screen()->id;
if ( 'privacy' !== $screen ) {

View File

@ -58,14 +58,10 @@ function check_upload_size( $file ) {
* @since 3.0.0
* @since 5.1.0 Use wp_delete_site() internally to delete the site row from the database.
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param int $blog_id Site ID.
* @param bool $drop True if site's database tables should be dropped. Default false.
*/
function wpmu_delete_blog( $blog_id, $drop = false ) {
global $wpdb;
$blog_id = (int) $blog_id;
$switch = false;

View File

@ -625,10 +625,9 @@ if ( ! function_exists( 'wp_upgrade' ) ) :
*
* @global int $wp_current_db_version The old (current) database version.
* @global int $wp_db_version The new database version.
* @global wpdb $wpdb WordPress database abstraction object.
*/
function wp_upgrade() {
global $wp_current_db_version, $wp_db_version, $wpdb;
global $wp_current_db_version, $wp_db_version;
$wp_current_db_version = __get_option( 'db_version' );

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.4-alpha-56498';
$wp_version = '6.4-alpha-56499';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.