mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Remove some unused globals and/or their docs.
See ##33491. Built from https://develop.svn.wordpress.org/trunk@34446 git-svn-id: http://core.svn.wordpress.org/trunk@34410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d866a40d09
commit
939d9b7395
@ -77,8 +77,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @global wpdb $wpdb
|
|
||||||
* @global array $post_mime_types
|
* @global array $post_mime_types
|
||||||
* @global array $avail_post_mime_types
|
* @global array $avail_post_mime_types
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -533,12 +533,11 @@ function _remove_qs_args_if_not_in_url( $query_string, Array $args_to_check, $ur
|
|||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb WordPress database abstraction object.
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
* @global WP_Rewrite $wp_rewrite
|
|
||||||
*
|
*
|
||||||
* @return false|string The correct URL if one is found. False on failure.
|
* @return false|string The correct URL if one is found. False on failure.
|
||||||
*/
|
*/
|
||||||
function redirect_guess_404_permalink() {
|
function redirect_guess_404_permalink() {
|
||||||
global $wpdb, $wp_rewrite;
|
global $wpdb;
|
||||||
|
|
||||||
if ( get_query_var('name') ) {
|
if ( get_query_var('name') ) {
|
||||||
$where = $wpdb->prepare("post_name LIKE %s", $wpdb->esc_like( get_query_var('name') ) . '%');
|
$where = $wpdb->prepare("post_name LIKE %s", $wpdb->esc_like( get_query_var('name') ) . '%');
|
||||||
|
@ -162,7 +162,6 @@ function get_approved_comments( $post_id, $args = array() ) {
|
|||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb WordPress database abstraction object.
|
|
||||||
* @global object $comment
|
* @global object $comment
|
||||||
*
|
*
|
||||||
* @param WP_Comment|string|int $comment Comment to retrieve.
|
* @param WP_Comment|string|int $comment Comment to retrieve.
|
||||||
|
@ -5406,12 +5406,11 @@ function update_post_cache( &$posts ) {
|
|||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @global bool $_wp_suspend_cache_invalidation
|
* @global bool $_wp_suspend_cache_invalidation
|
||||||
* @global wpdb $wpdb WordPress database abstraction object.
|
|
||||||
*
|
*
|
||||||
* @param int|WP_Post $post Post ID or post object to remove from the cache.
|
* @param int|WP_Post $post Post ID or post object to remove from the cache.
|
||||||
*/
|
*/
|
||||||
function clean_post_cache( $post ) {
|
function clean_post_cache( $post ) {
|
||||||
global $_wp_suspend_cache_invalidation, $wpdb;
|
global $_wp_suspend_cache_invalidation;
|
||||||
|
|
||||||
if ( ! empty( $_wp_suspend_cache_invalidation ) )
|
if ( ! empty( $_wp_suspend_cache_invalidation ) )
|
||||||
return;
|
return;
|
||||||
|
@ -528,13 +528,12 @@ function body_class( $class = '' ) {
|
|||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
*
|
*
|
||||||
* @global WP_Query $wp_query
|
* @global WP_Query $wp_query
|
||||||
* @global wpdb $wpdb
|
|
||||||
*
|
*
|
||||||
* @param string|array $class One or more classes to add to the class list.
|
* @param string|array $class One or more classes to add to the class list.
|
||||||
* @return array Array of classes.
|
* @return array Array of classes.
|
||||||
*/
|
*/
|
||||||
function get_body_class( $class = '' ) {
|
function get_body_class( $class = '' ) {
|
||||||
global $wp_query, $wpdb;
|
global $wp_query;
|
||||||
|
|
||||||
$classes = array();
|
$classes = array();
|
||||||
|
|
||||||
|
@ -3869,8 +3869,6 @@ function _wp_check_split_terms_in_menus( $term_id, $new_term_id, $term_taxonomy_
|
|||||||
* @ignore
|
* @ignore
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
|
||||||
*
|
|
||||||
* @param int $term_id ID of the formerly shared term.
|
* @param int $term_id ID of the formerly shared term.
|
||||||
* @param int $new_term_id ID of the new term created for the $term_taxonomy_id.
|
* @param int $new_term_id ID of the new term created for the $term_taxonomy_id.
|
||||||
* @param int $term_taxonomy_id ID for the term_taxonomy row affected by the split.
|
* @param int $term_taxonomy_id ID for the term_taxonomy row affected by the split.
|
||||||
|
@ -859,7 +859,6 @@ function setup_userdata($for_user_id = '') {
|
|||||||
*
|
*
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb WordPress database object for queries.
|
|
||||||
* @global int $blog_id
|
* @global int $blog_id
|
||||||
*
|
*
|
||||||
* @param array|string $args {
|
* @param array|string $args {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34445';
|
$wp_version = '4.4-alpha-34446';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user