Edit File by line
/home/barbar84/www/wp-admin/includes
File: deprecated.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Deprecated admin functions from past WordPress versions. You shouldn't use these
[2] Fix | Delete
* functions and look for the alternatives instead. The functions will be removed
[3] Fix | Delete
* in a later version.
[4] Fix | Delete
*
[5] Fix | Delete
* @package WordPress
[6] Fix | Delete
* @subpackage Deprecated
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
/*
[10] Fix | Delete
* Deprecated functions come here to die.
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* @since 2.1.0
[15] Fix | Delete
* @deprecated 2.1.0 Use wp_editor()
[16] Fix | Delete
* @see wp_editor()
[17] Fix | Delete
*/
[18] Fix | Delete
function tinymce_include() {
[19] Fix | Delete
_deprecated_function( __FUNCTION__, '2.1.0', 'wp_editor()' );
[20] Fix | Delete
[21] Fix | Delete
wp_tiny_mce();
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* Unused Admin function.
[26] Fix | Delete
*
[27] Fix | Delete
* @since 2.0.0
[28] Fix | Delete
* @deprecated 2.5.0
[29] Fix | Delete
*
[30] Fix | Delete
*/
[31] Fix | Delete
function documentation_link() {
[32] Fix | Delete
_deprecated_function( __FUNCTION__, '2.5.0' );
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
/**
[36] Fix | Delete
* Calculates the new dimensions for a downsampled image.
[37] Fix | Delete
*
[38] Fix | Delete
* @since 2.0.0
[39] Fix | Delete
* @deprecated 3.0.0 Use wp_constrain_dimensions()
[40] Fix | Delete
* @see wp_constrain_dimensions()
[41] Fix | Delete
*
[42] Fix | Delete
* @param int $width Current width of the image
[43] Fix | Delete
* @param int $height Current height of the image
[44] Fix | Delete
* @param int $wmax Maximum wanted width
[45] Fix | Delete
* @param int $hmax Maximum wanted height
[46] Fix | Delete
* @return array Shrunk dimensions (width, height).
[47] Fix | Delete
*/
[48] Fix | Delete
function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
[49] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0', 'wp_constrain_dimensions()' );
[50] Fix | Delete
return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
/**
[54] Fix | Delete
* Calculated the new dimensions for a downsampled image.
[55] Fix | Delete
*
[56] Fix | Delete
* @since 2.0.0
[57] Fix | Delete
* @deprecated 3.5.0 Use wp_constrain_dimensions()
[58] Fix | Delete
* @see wp_constrain_dimensions()
[59] Fix | Delete
*
[60] Fix | Delete
* @param int $width Current width of the image
[61] Fix | Delete
* @param int $height Current height of the image
[62] Fix | Delete
* @return array Shrunk dimensions (width, height).
[63] Fix | Delete
*/
[64] Fix | Delete
function get_udims( $width, $height ) {
[65] Fix | Delete
_deprecated_function( __FUNCTION__, '3.5.0', 'wp_constrain_dimensions()' );
[66] Fix | Delete
return wp_constrain_dimensions( $width, $height, 128, 96 );
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
/**
[70] Fix | Delete
* Legacy function used to generate the categories checklist control.
[71] Fix | Delete
*
[72] Fix | Delete
* @since 0.71
[73] Fix | Delete
* @deprecated 2.6.0 Use wp_category_checklist()
[74] Fix | Delete
* @see wp_category_checklist()
[75] Fix | Delete
*
[76] Fix | Delete
* @global int $post_ID
[77] Fix | Delete
*
[78] Fix | Delete
* @param int $default Unused.
[79] Fix | Delete
* @param int $parent Unused.
[80] Fix | Delete
* @param array $popular_ids Unused.
[81] Fix | Delete
*/
[82] Fix | Delete
function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) {
[83] Fix | Delete
_deprecated_function( __FUNCTION__, '2.6.0', 'wp_category_checklist()' );
[84] Fix | Delete
global $post_ID;
[85] Fix | Delete
wp_category_checklist( $post_ID );
[86] Fix | Delete
}
[87] Fix | Delete
[88] Fix | Delete
/**
[89] Fix | Delete
* Legacy function used to generate a link categories checklist control.
[90] Fix | Delete
*
[91] Fix | Delete
* @since 2.1.0
[92] Fix | Delete
* @deprecated 2.6.0 Use wp_link_category_checklist()
[93] Fix | Delete
* @see wp_link_category_checklist()
[94] Fix | Delete
*
[95] Fix | Delete
* @global int $link_id
[96] Fix | Delete
*
[97] Fix | Delete
* @param int $default Unused.
[98] Fix | Delete
*/
[99] Fix | Delete
function dropdown_link_categories( $default = 0 ) {
[100] Fix | Delete
_deprecated_function( __FUNCTION__, '2.6.0', 'wp_link_category_checklist()' );
[101] Fix | Delete
global $link_id;
[102] Fix | Delete
wp_link_category_checklist( $link_id );
[103] Fix | Delete
}
[104] Fix | Delete
[105] Fix | Delete
/**
[106] Fix | Delete
* Get the real filesystem path to a file to edit within the admin.
[107] Fix | Delete
*
[108] Fix | Delete
* @since 1.5.0
[109] Fix | Delete
* @deprecated 2.9.0
[110] Fix | Delete
* @uses WP_CONTENT_DIR Full filesystem path to the wp-content directory.
[111] Fix | Delete
*
[112] Fix | Delete
* @param string $file Filesystem path relative to the wp-content directory.
[113] Fix | Delete
* @return string Full filesystem path to edit.
[114] Fix | Delete
*/
[115] Fix | Delete
function get_real_file_to_edit( $file ) {
[116] Fix | Delete
_deprecated_function( __FUNCTION__, '2.9.0' );
[117] Fix | Delete
[118] Fix | Delete
return WP_CONTENT_DIR . $file;
[119] Fix | Delete
}
[120] Fix | Delete
[121] Fix | Delete
/**
[122] Fix | Delete
* Legacy function used for generating a categories drop-down control.
[123] Fix | Delete
*
[124] Fix | Delete
* @since 1.2.0
[125] Fix | Delete
* @deprecated 3.0.0 Use wp_dropdown_categories()
[126] Fix | Delete
* @see wp_dropdown_categories()
[127] Fix | Delete
*
[128] Fix | Delete
* @param int $currentcat Optional. ID of the current category. Default 0.
[129] Fix | Delete
* @param int $currentparent Optional. Current parent category ID. Default 0.
[130] Fix | Delete
* @param int $parent Optional. Parent ID to retrieve categories for. Default 0.
[131] Fix | Delete
* @param int $level Optional. Number of levels deep to display. Default 0.
[132] Fix | Delete
* @param array $categories Optional. Categories to include in the control. Default 0.
[133] Fix | Delete
* @return void|false Void on success, false if no categories were found.
[134] Fix | Delete
*/
[135] Fix | Delete
function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
[136] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0', 'wp_dropdown_categories()' );
[137] Fix | Delete
if (!$categories )
[138] Fix | Delete
$categories = get_categories( array('hide_empty' => 0) );
[139] Fix | Delete
[140] Fix | Delete
if ( $categories ) {
[141] Fix | Delete
foreach ( $categories as $category ) {
[142] Fix | Delete
if ( $currentcat != $category->term_id && $parent == $category->parent) {
[143] Fix | Delete
$pad = str_repeat( '&#8211; ', $level );
[144] Fix | Delete
$category->name = esc_html( $category->name );
[145] Fix | Delete
echo "\n\t<option value='$category->term_id'";
[146] Fix | Delete
if ( $currentparent == $category->term_id )
[147] Fix | Delete
echo " selected='selected'";
[148] Fix | Delete
echo ">$pad$category->name</option>";
[149] Fix | Delete
wp_dropdown_cats( $currentcat, $currentparent, $category->term_id, $level +1, $categories );
[150] Fix | Delete
}
[151] Fix | Delete
}
[152] Fix | Delete
} else {
[153] Fix | Delete
return false;
[154] Fix | Delete
}
[155] Fix | Delete
}
[156] Fix | Delete
[157] Fix | Delete
/**
[158] Fix | Delete
* Register a setting and its sanitization callback
[159] Fix | Delete
*
[160] Fix | Delete
* @since 2.7.0
[161] Fix | Delete
* @deprecated 3.0.0 Use register_setting()
[162] Fix | Delete
* @see register_setting()
[163] Fix | Delete
*
[164] Fix | Delete
* @param string $option_group A settings group name. Should correspond to an allowed option key name.
[165] Fix | Delete
* Default allowed option key names include 'general', 'discussion', 'media',
[166] Fix | Delete
* 'reading', 'writing', 'misc', 'options', and 'privacy'.
[167] Fix | Delete
* @param string $option_name The name of an option to sanitize and save.
[168] Fix | Delete
* @param callable $sanitize_callback A callback function that sanitizes the option's value.
[169] Fix | Delete
*/
[170] Fix | Delete
function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
[171] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0', 'register_setting()' );
[172] Fix | Delete
register_setting( $option_group, $option_name, $sanitize_callback );
[173] Fix | Delete
}
[174] Fix | Delete
[175] Fix | Delete
/**
[176] Fix | Delete
* Unregister a setting
[177] Fix | Delete
*
[178] Fix | Delete
* @since 2.7.0
[179] Fix | Delete
* @deprecated 3.0.0 Use unregister_setting()
[180] Fix | Delete
* @see unregister_setting()
[181] Fix | Delete
*
[182] Fix | Delete
* @param string $option_group
[183] Fix | Delete
* @param string $option_name
[184] Fix | Delete
* @param callable $sanitize_callback
[185] Fix | Delete
*/
[186] Fix | Delete
function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
[187] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0', 'unregister_setting()' );
[188] Fix | Delete
unregister_setting( $option_group, $option_name, $sanitize_callback );
[189] Fix | Delete
}
[190] Fix | Delete
[191] Fix | Delete
/**
[192] Fix | Delete
* Determines the language to use for CodePress syntax highlighting.
[193] Fix | Delete
*
[194] Fix | Delete
* @since 2.8.0
[195] Fix | Delete
* @deprecated 3.0.0
[196] Fix | Delete
*
[197] Fix | Delete
* @param string $filename
[198] Fix | Delete
**/
[199] Fix | Delete
function codepress_get_lang( $filename ) {
[200] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0' );
[201] Fix | Delete
}
[202] Fix | Delete
[203] Fix | Delete
/**
[204] Fix | Delete
* Adds JavaScript required to make CodePress work on the theme/plugin editors.
[205] Fix | Delete
*
[206] Fix | Delete
* @since 2.8.0
[207] Fix | Delete
* @deprecated 3.0.0
[208] Fix | Delete
**/
[209] Fix | Delete
function codepress_footer_js() {
[210] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0' );
[211] Fix | Delete
}
[212] Fix | Delete
[213] Fix | Delete
/**
[214] Fix | Delete
* Determine whether to use CodePress.
[215] Fix | Delete
*
[216] Fix | Delete
* @since 2.8.0
[217] Fix | Delete
* @deprecated 3.0.0
[218] Fix | Delete
**/
[219] Fix | Delete
function use_codepress() {
[220] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0' );
[221] Fix | Delete
}
[222] Fix | Delete
[223] Fix | Delete
/**
[224] Fix | Delete
* Get all user IDs.
[225] Fix | Delete
*
[226] Fix | Delete
* @deprecated 3.1.0 Use get_users()
[227] Fix | Delete
*
[228] Fix | Delete
* @global wpdb $wpdb WordPress database abstraction object.
[229] Fix | Delete
*
[230] Fix | Delete
* @return array List of user IDs.
[231] Fix | Delete
*/
[232] Fix | Delete
function get_author_user_ids() {
[233] Fix | Delete
_deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
[234] Fix | Delete
[235] Fix | Delete
global $wpdb;
[236] Fix | Delete
if ( !is_multisite() )
[237] Fix | Delete
$level_key = $wpdb->get_blog_prefix() . 'user_level';
[238] Fix | Delete
else
[239] Fix | Delete
$level_key = $wpdb->get_blog_prefix() . 'capabilities'; // WPMU site admins don't have user_levels.
[240] Fix | Delete
[241] Fix | Delete
return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value != '0'", $level_key) );
[242] Fix | Delete
}
[243] Fix | Delete
[244] Fix | Delete
/**
[245] Fix | Delete
* Gets author users who can edit posts.
[246] Fix | Delete
*
[247] Fix | Delete
* @deprecated 3.1.0 Use get_users()
[248] Fix | Delete
*
[249] Fix | Delete
* @global wpdb $wpdb WordPress database abstraction object.
[250] Fix | Delete
*
[251] Fix | Delete
* @param int $user_id User ID.
[252] Fix | Delete
* @return array|false List of editable authors. False if no editable users.
[253] Fix | Delete
*/
[254] Fix | Delete
function get_editable_authors( $user_id ) {
[255] Fix | Delete
_deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
[256] Fix | Delete
[257] Fix | Delete
global $wpdb;
[258] Fix | Delete
[259] Fix | Delete
$editable = get_editable_user_ids( $user_id );
[260] Fix | Delete
[261] Fix | Delete
if ( !$editable ) {
[262] Fix | Delete
return false;
[263] Fix | Delete
} else {
[264] Fix | Delete
$editable = join(',', $editable);
[265] Fix | Delete
$authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" );
[266] Fix | Delete
}
[267] Fix | Delete
[268] Fix | Delete
return apply_filters('get_editable_authors', $authors);
[269] Fix | Delete
}
[270] Fix | Delete
[271] Fix | Delete
/**
[272] Fix | Delete
* Gets the IDs of any users who can edit posts.
[273] Fix | Delete
*
[274] Fix | Delete
* @deprecated 3.1.0 Use get_users()
[275] Fix | Delete
*
[276] Fix | Delete
* @global wpdb $wpdb WordPress database abstraction object.
[277] Fix | Delete
*
[278] Fix | Delete
* @param int $user_id User ID.
[279] Fix | Delete
* @param bool $exclude_zeros Optional. Whether to exclude zeroes. Default true.
[280] Fix | Delete
* @return array Array of editable user IDs, empty array otherwise.
[281] Fix | Delete
*/
[282] Fix | Delete
function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) {
[283] Fix | Delete
_deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
[284] Fix | Delete
[285] Fix | Delete
global $wpdb;
[286] Fix | Delete
[287] Fix | Delete
if ( ! $user = get_userdata( $user_id ) )
[288] Fix | Delete
return array();
[289] Fix | Delete
$post_type_obj = get_post_type_object($post_type);
[290] Fix | Delete
[291] Fix | Delete
if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) {
[292] Fix | Delete
if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros )
[293] Fix | Delete
return array($user->ID);
[294] Fix | Delete
else
[295] Fix | Delete
return array();
[296] Fix | Delete
}
[297] Fix | Delete
[298] Fix | Delete
if ( !is_multisite() )
[299] Fix | Delete
$level_key = $wpdb->get_blog_prefix() . 'user_level';
[300] Fix | Delete
else
[301] Fix | Delete
$level_key = $wpdb->get_blog_prefix() . 'capabilities'; // WPMU site admins don't have user_levels.
[302] Fix | Delete
[303] Fix | Delete
$query = $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s", $level_key);
[304] Fix | Delete
if ( $exclude_zeros )
[305] Fix | Delete
$query .= " AND meta_value != '0'";
[306] Fix | Delete
[307] Fix | Delete
return $wpdb->get_col( $query );
[308] Fix | Delete
}
[309] Fix | Delete
[310] Fix | Delete
/**
[311] Fix | Delete
* Gets all users who are not authors.
[312] Fix | Delete
*
[313] Fix | Delete
* @deprecated 3.1.0 Use get_users()
[314] Fix | Delete
*
[315] Fix | Delete
* @global wpdb $wpdb WordPress database abstraction object.
[316] Fix | Delete
*/
[317] Fix | Delete
function get_nonauthor_user_ids() {
[318] Fix | Delete
_deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
[319] Fix | Delete
[320] Fix | Delete
global $wpdb;
[321] Fix | Delete
[322] Fix | Delete
if ( !is_multisite() )
[323] Fix | Delete
$level_key = $wpdb->get_blog_prefix() . 'user_level';
[324] Fix | Delete
else
[325] Fix | Delete
$level_key = $wpdb->get_blog_prefix() . 'capabilities'; // WPMU site admins don't have user_levels.
[326] Fix | Delete
[327] Fix | Delete
return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = '0'", $level_key) );
[328] Fix | Delete
}
[329] Fix | Delete
[330] Fix | Delete
if ( ! class_exists( 'WP_User_Search', false ) ) :
[331] Fix | Delete
/**
[332] Fix | Delete
* WordPress User Search class.
[333] Fix | Delete
*
[334] Fix | Delete
* @since 2.1.0
[335] Fix | Delete
* @deprecated 3.1.0 Use WP_User_Query
[336] Fix | Delete
*/
[337] Fix | Delete
class WP_User_Search {
[338] Fix | Delete
[339] Fix | Delete
/**
[340] Fix | Delete
* {@internal Missing Description}}
[341] Fix | Delete
*
[342] Fix | Delete
* @since 2.1.0
[343] Fix | Delete
* @access private
[344] Fix | Delete
* @var mixed
[345] Fix | Delete
*/
[346] Fix | Delete
var $results;
[347] Fix | Delete
[348] Fix | Delete
/**
[349] Fix | Delete
* {@internal Missing Description}}
[350] Fix | Delete
*
[351] Fix | Delete
* @since 2.1.0
[352] Fix | Delete
* @access private
[353] Fix | Delete
* @var string
[354] Fix | Delete
*/
[355] Fix | Delete
var $search_term;
[356] Fix | Delete
[357] Fix | Delete
/**
[358] Fix | Delete
* Page number.
[359] Fix | Delete
*
[360] Fix | Delete
* @since 2.1.0
[361] Fix | Delete
* @access private
[362] Fix | Delete
* @var int
[363] Fix | Delete
*/
[364] Fix | Delete
var $page;
[365] Fix | Delete
[366] Fix | Delete
/**
[367] Fix | Delete
* Role name that users have.
[368] Fix | Delete
*
[369] Fix | Delete
* @since 2.5.0
[370] Fix | Delete
* @access private
[371] Fix | Delete
* @var string
[372] Fix | Delete
*/
[373] Fix | Delete
var $role;
[374] Fix | Delete
[375] Fix | Delete
/**
[376] Fix | Delete
* Raw page number.
[377] Fix | Delete
*
[378] Fix | Delete
* @since 2.1.0
[379] Fix | Delete
* @access private
[380] Fix | Delete
* @var int|bool
[381] Fix | Delete
*/
[382] Fix | Delete
var $raw_page;
[383] Fix | Delete
[384] Fix | Delete
/**
[385] Fix | Delete
* Amount of users to display per page.
[386] Fix | Delete
*
[387] Fix | Delete
* @since 2.1.0
[388] Fix | Delete
* @access public
[389] Fix | Delete
* @var int
[390] Fix | Delete
*/
[391] Fix | Delete
var $users_per_page = 50;
[392] Fix | Delete
[393] Fix | Delete
/**
[394] Fix | Delete
* {@internal Missing Description}}
[395] Fix | Delete
*
[396] Fix | Delete
* @since 2.1.0
[397] Fix | Delete
* @access private
[398] Fix | Delete
* @var int
[399] Fix | Delete
*/
[400] Fix | Delete
var $first_user;
[401] Fix | Delete
[402] Fix | Delete
/**
[403] Fix | Delete
* {@internal Missing Description}}
[404] Fix | Delete
*
[405] Fix | Delete
* @since 2.1.0
[406] Fix | Delete
* @access private
[407] Fix | Delete
* @var int
[408] Fix | Delete
*/
[409] Fix | Delete
var $last_user;
[410] Fix | Delete
[411] Fix | Delete
/**
[412] Fix | Delete
* {@internal Missing Description}}
[413] Fix | Delete
*
[414] Fix | Delete
* @since 2.1.0
[415] Fix | Delete
* @access private
[416] Fix | Delete
* @var string
[417] Fix | Delete
*/
[418] Fix | Delete
var $query_limit;
[419] Fix | Delete
[420] Fix | Delete
/**
[421] Fix | Delete
* {@internal Missing Description}}
[422] Fix | Delete
*
[423] Fix | Delete
* @since 3.0.0
[424] Fix | Delete
* @access private
[425] Fix | Delete
* @var string
[426] Fix | Delete
*/
[427] Fix | Delete
var $query_orderby;
[428] Fix | Delete
[429] Fix | Delete
/**
[430] Fix | Delete
* {@internal Missing Description}}
[431] Fix | Delete
*
[432] Fix | Delete
* @since 3.0.0
[433] Fix | Delete
* @access private
[434] Fix | Delete
* @var string
[435] Fix | Delete
*/
[436] Fix | Delete
var $query_from;
[437] Fix | Delete
[438] Fix | Delete
/**
[439] Fix | Delete
* {@internal Missing Description}}
[440] Fix | Delete
*
[441] Fix | Delete
* @since 3.0.0
[442] Fix | Delete
* @access private
[443] Fix | Delete
* @var string
[444] Fix | Delete
*/
[445] Fix | Delete
var $query_where;
[446] Fix | Delete
[447] Fix | Delete
/**
[448] Fix | Delete
* {@internal Missing Description}}
[449] Fix | Delete
*
[450] Fix | Delete
* @since 2.1.0
[451] Fix | Delete
* @access private
[452] Fix | Delete
* @var int
[453] Fix | Delete
*/
[454] Fix | Delete
var $total_users_for_query = 0;
[455] Fix | Delete
[456] Fix | Delete
/**
[457] Fix | Delete
* {@internal Missing Description}}
[458] Fix | Delete
*
[459] Fix | Delete
* @since 2.1.0
[460] Fix | Delete
* @access private
[461] Fix | Delete
* @var bool
[462] Fix | Delete
*/
[463] Fix | Delete
var $too_many_total_users = false;
[464] Fix | Delete
[465] Fix | Delete
/**
[466] Fix | Delete
* {@internal Missing Description}}
[467] Fix | Delete
*
[468] Fix | Delete
* @since 2.1.0
[469] Fix | Delete
* @access private
[470] Fix | Delete
* @var WP_Error
[471] Fix | Delete
*/
[472] Fix | Delete
var $search_errors;
[473] Fix | Delete
[474] Fix | Delete
/**
[475] Fix | Delete
* {@internal Missing Description}}
[476] Fix | Delete
*
[477] Fix | Delete
* @since 2.7.0
[478] Fix | Delete
* @access private
[479] Fix | Delete
* @var string
[480] Fix | Delete
*/
[481] Fix | Delete
var $paging_text;
[482] Fix | Delete
[483] Fix | Delete
/**
[484] Fix | Delete
* PHP5 Constructor - Sets up the object properties.
[485] Fix | Delete
*
[486] Fix | Delete
* @since 2.1.0
[487] Fix | Delete
*
[488] Fix | Delete
* @param string $search_term Search terms string.
[489] Fix | Delete
* @param int $page Optional. Page ID.
[490] Fix | Delete
* @param string $role Role name.
[491] Fix | Delete
* @return WP_User_Search
[492] Fix | Delete
*/
[493] Fix | Delete
function __construct( $search_term = '', $page = '', $role = '' ) {
[494] Fix | Delete
_deprecated_function( __FUNCTION__, '3.1.0', 'WP_User_Query' );
[495] Fix | Delete
[496] Fix | Delete
$this->search_term = wp_unslash( $search_term );
[497] Fix | Delete
$this->raw_page = ( '' == $page ) ? false : (int) $page;
[498] Fix | Delete
$this->page = (int) ( '' == $page ) ? 1 : $page;
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function