mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
These functions import $wpdb but do not use it.
See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28539 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -140,7 +140,7 @@ class WP_Roles {
|
||||
if ( ! $this->use_db )
|
||||
return;
|
||||
|
||||
global $wpdb, $wp_user_roles;
|
||||
global $wpdb;
|
||||
|
||||
// Duplicated from _init() to avoid an extra function call.
|
||||
$this->role_key = $wpdb->get_blog_prefix() . 'user_roles';
|
||||
|
||||
@@ -3190,8 +3190,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
* @return mixed {@link wp_new_comment()}
|
||||
*/
|
||||
public function wp_newComment($args) {
|
||||
global $wpdb;
|
||||
|
||||
$this->escape($args);
|
||||
|
||||
$blog_id = (int) $args[0];
|
||||
|
||||
@@ -753,7 +753,7 @@ function get_bloginfo( $show = '', $filter = 'raw' ) {
|
||||
* @return string|null String on retrieve, null when displaying.
|
||||
*/
|
||||
function wp_title($sep = '»', $display = true, $seplocation = '') {
|
||||
global $wpdb, $wp_locale;
|
||||
global $wp_locale;
|
||||
|
||||
$m = get_query_var('m');
|
||||
$year = get_query_var('year');
|
||||
|
||||
@@ -3161,8 +3161,6 @@ function wp_update_term_count( $terms, $taxonomy, $do_deferred=false ) {
|
||||
* @return bool Always true when complete.
|
||||
*/
|
||||
function wp_update_term_count_now( $terms, $taxonomy ) {
|
||||
global $wpdb;
|
||||
|
||||
$terms = array_map('intval', $terms);
|
||||
|
||||
$taxonomy = get_taxonomy($taxonomy);
|
||||
|
||||
Reference in New Issue
Block a user