Docs: Remove `@access` notations from method DocBlocks in wp-admin/* classes.
Prior to about 2013, many class methods lacked even access modifiers which made the `@access` notations that much more useful. Now that we've gotten to a point where the codebase is more mature from a maintenance perspective and we can finally remove these notations. Notable exceptions to this change include standalone functions notated as private as well as some classes still considered to represent "private" APIs. See #41452. Built from https://develop.svn.wordpress.org/trunk@41161 git-svn-id: http://core.svn.wordpress.org/trunk@41001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
32128ffd45
commit
1a28ec87e1
|
@ -18,7 +18,6 @@ class Custom_Background {
|
||||||
*
|
*
|
||||||
* @var callable
|
* @var callable
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $admin_header_callback;
|
public $admin_header_callback;
|
||||||
|
|
||||||
|
@ -27,7 +26,6 @@ class Custom_Background {
|
||||||
*
|
*
|
||||||
* @var callable
|
* @var callable
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $admin_image_div_callback;
|
public $admin_image_div_callback;
|
||||||
|
|
||||||
|
@ -35,7 +33,6 @@ class Custom_Background {
|
||||||
* Used to trigger a success message when settings updated and set to true.
|
* Used to trigger a success message when settings updated and set to true.
|
||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @access private
|
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
private $updated;
|
private $updated;
|
||||||
|
|
|
@ -18,7 +18,6 @@ class Custom_Image_Header {
|
||||||
*
|
*
|
||||||
* @var callable
|
* @var callable
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $admin_header_callback;
|
public $admin_header_callback;
|
||||||
|
|
||||||
|
@ -27,7 +26,6 @@ class Custom_Image_Header {
|
||||||
*
|
*
|
||||||
* @var callable
|
* @var callable
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $admin_image_div_callback;
|
public $admin_image_div_callback;
|
||||||
|
|
||||||
|
@ -36,7 +34,6 @@ class Custom_Image_Header {
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $default_headers = array();
|
public $default_headers = array();
|
||||||
|
|
||||||
|
@ -44,7 +41,6 @@ class Custom_Image_Header {
|
||||||
* Used to trigger a success message when settings updated and set to true.
|
* Used to trigger a success message when settings updated and set to true.
|
||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @access private
|
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
private $updated;
|
private $updated;
|
||||||
|
|
|
@ -27,7 +27,6 @@ class Automatic_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
|
* @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see request_filesystem_credentials()
|
* @see request_filesystem_credentials()
|
||||||
*
|
*
|
||||||
|
@ -51,7 +50,6 @@ class Automatic_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -60,7 +58,6 @@ class Automatic_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string|array|WP_Error $data
|
* @param string|array|WP_Error $data
|
||||||
*/
|
*/
|
||||||
|
@ -101,14 +98,12 @@ class Automatic_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function header() {
|
public function header() {
|
||||||
ob_start();
|
ob_start();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function footer() {
|
public function footer() {
|
||||||
$output = ob_get_clean();
|
$output = ob_get_clean();
|
||||||
|
|
|
@ -24,7 +24,6 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $title
|
* @param string $title
|
||||||
*/
|
*/
|
||||||
|
@ -33,7 +32,6 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $title
|
* @param string $title
|
||||||
*/
|
*/
|
||||||
|
@ -43,7 +41,6 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function bulk_footer() {
|
public function bulk_footer() {
|
||||||
parent::bulk_footer();
|
parent::bulk_footer();
|
||||||
|
|
|
@ -24,7 +24,6 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $title
|
* @param string $title
|
||||||
*/
|
*/
|
||||||
|
@ -33,7 +32,6 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $title
|
* @param string $title
|
||||||
*/
|
*/
|
||||||
|
@ -43,7 +41,6 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function bulk_footer() {
|
public function bulk_footer() {
|
||||||
parent::bulk_footer();
|
parent::bulk_footer();
|
||||||
|
|
|
@ -23,7 +23,6 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
public $error = false;
|
public $error = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $args
|
* @param array $args
|
||||||
*/
|
*/
|
||||||
|
@ -35,7 +34,6 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function add_strings() {
|
public function add_strings() {
|
||||||
$this->upgrader->strings['skin_upgrade_start'] = __('The update process is starting. This process may take a while on some hosts, so please be patient.');
|
$this->upgrader->strings['skin_upgrade_start'] = __('The update process is starting. This process may take a while on some hosts, so please be patient.');
|
||||||
|
@ -49,7 +47,6 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $string
|
* @param string $string
|
||||||
*/
|
*/
|
||||||
|
@ -75,21 +72,18 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function header() {
|
public function header() {
|
||||||
// Nothing, This will be displayed within a iframe.
|
// Nothing, This will be displayed within a iframe.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function footer() {
|
public function footer() {
|
||||||
// Nothing, This will be displayed within a iframe.
|
// Nothing, This will be displayed within a iframe.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string|WP_Error $error
|
* @param string|WP_Error $error
|
||||||
*/
|
*/
|
||||||
|
@ -111,21 +105,18 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function bulk_header() {
|
public function bulk_header() {
|
||||||
$this->feedback('skin_upgrade_start');
|
$this->feedback('skin_upgrade_start');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function bulk_footer() {
|
public function bulk_footer() {
|
||||||
$this->feedback('skin_upgrade_end');
|
$this->feedback('skin_upgrade_end');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $title
|
* @param string $title
|
||||||
*/
|
*/
|
||||||
|
@ -139,7 +130,6 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $title
|
* @param string $title
|
||||||
*/
|
*/
|
||||||
|
@ -170,7 +160,6 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function reset() {
|
public function reset() {
|
||||||
$this->in_loop = false;
|
$this->in_loop = false;
|
||||||
|
@ -178,7 +167,6 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function flush_output() {
|
public function flush_output() {
|
||||||
wp_ob_end_flush_all();
|
wp_ob_end_flush_all();
|
||||||
|
|
|
@ -24,7 +24,6 @@ class Core_Upgrader extends WP_Upgrader {
|
||||||
* Initialize the upgrade strings.
|
* Initialize the upgrade strings.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function upgrade_strings() {
|
public function upgrade_strings() {
|
||||||
$this->strings['up_to_date'] = __('WordPress is at the latest version.');
|
$this->strings['up_to_date'] = __('WordPress is at the latest version.');
|
||||||
|
@ -42,7 +41,6 @@ class Core_Upgrader extends WP_Upgrader {
|
||||||
* Upgrade WordPress core.
|
* Upgrade WordPress core.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
* @global callable $_wp_filesystem_direct_method
|
* @global callable $_wp_filesystem_direct_method
|
||||||
|
@ -228,7 +226,6 @@ class Core_Upgrader extends WP_Upgrader {
|
||||||
* Determines if this WordPress Core version should update to an offered version or not.
|
* Determines if this WordPress Core version should update to an offered version or not.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
*
|
*
|
||||||
|
@ -337,7 +334,6 @@ class Core_Upgrader extends WP_Upgrader {
|
||||||
* Compare the disk file checksums against the expected checksums.
|
* Compare the disk file checksums against the expected checksums.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
* @global string $wp_local_package
|
* @global string $wp_local_package
|
||||||
|
|
|
@ -22,7 +22,6 @@ class File_Upload_Upgrader {
|
||||||
* The full path to the file package.
|
* The full path to the file package.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
* @var string $package
|
* @var string $package
|
||||||
*/
|
*/
|
||||||
public $package;
|
public $package;
|
||||||
|
@ -31,7 +30,6 @@ class File_Upload_Upgrader {
|
||||||
* The name of the file.
|
* The name of the file.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
* @var string $filename
|
* @var string $filename
|
||||||
*/
|
*/
|
||||||
public $filename;
|
public $filename;
|
||||||
|
@ -40,7 +38,6 @@ class File_Upload_Upgrader {
|
||||||
* The ID of the attachment post for this file.
|
* The ID of the attachment post for this file.
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @access public
|
|
||||||
* @var int $id
|
* @var int $id
|
||||||
*/
|
*/
|
||||||
public $id = 0;
|
public $id = 0;
|
||||||
|
@ -49,7 +46,6 @@ class File_Upload_Upgrader {
|
||||||
* Construct the upgrader for a form.
|
* Construct the upgrader for a form.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $form The name of the form the file was uploaded from.
|
* @param string $form The name of the form the file was uploaded from.
|
||||||
* @param string $urlholder The name of the `GET` parameter that holds the filename.
|
* @param string $urlholder The name of the `GET` parameter that holds the filename.
|
||||||
|
@ -113,7 +109,6 @@ class File_Upload_Upgrader {
|
||||||
* Delete the attachment/uploaded file.
|
* Delete the attachment/uploaded file.
|
||||||
*
|
*
|
||||||
* @since 3.2.2
|
* @since 3.2.2
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return bool Whether the cleanup was successful.
|
* @return bool Whether the cleanup was successful.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -22,7 +22,6 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
public $display_footer_actions = true;
|
public $display_footer_actions = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $args
|
* @param array $args
|
||||||
*/
|
*/
|
||||||
|
@ -38,7 +37,6 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function before() {
|
public function before() {
|
||||||
$name = $this->upgrader->get_name_for_update( $this->language_update );
|
$name = $this->upgrader->get_name_for_update( $this->language_update );
|
||||||
|
@ -49,7 +47,6 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string|WP_Error $error
|
* @param string|WP_Error $error
|
||||||
*/
|
*/
|
||||||
|
@ -60,14 +57,12 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function after() {
|
public function after() {
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function bulk_footer() {
|
public function bulk_footer() {
|
||||||
$this->decrement_update_count( 'translation' );
|
$this->decrement_update_count( 'translation' );
|
||||||
|
|
|
@ -22,7 +22,6 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||||
* Result of the language pack upgrade.
|
* Result of the language pack upgrade.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
* @var array|WP_Error $result
|
* @var array|WP_Error $result
|
||||||
* @see WP_Upgrader::$result
|
* @see WP_Upgrader::$result
|
||||||
*/
|
*/
|
||||||
|
@ -32,7 +31,6 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||||
* Whether a bulk upgrade/install is being performed.
|
* Whether a bulk upgrade/install is being performed.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
* @var bool $bulk
|
* @var bool $bulk
|
||||||
*/
|
*/
|
||||||
public $bulk = true;
|
public $bulk = true;
|
||||||
|
@ -43,7 +41,6 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||||
* Hooked to the {@see 'upgrader_process_complete'} action by default.
|
* Hooked to the {@see 'upgrader_process_complete'} action by default.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
* @static
|
* @static
|
||||||
*
|
*
|
||||||
* @param false|WP_Upgrader $upgrader Optional. WP_Upgrader instance or false. If `$upgrader` is
|
* @param false|WP_Upgrader $upgrader Optional. WP_Upgrader instance or false. If `$upgrader` is
|
||||||
|
@ -110,7 +107,6 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||||
* Initialize the upgrade strings.
|
* Initialize the upgrade strings.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function upgrade_strings() {
|
public function upgrade_strings() {
|
||||||
$this->strings['starting_upgrade'] = __( 'Some of your translations need updating. Sit tight for a few more seconds while we update them as well.' );
|
$this->strings['starting_upgrade'] = __( 'Some of your translations need updating. Sit tight for a few more seconds while we update them as well.' );
|
||||||
|
@ -126,7 +122,6 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||||
* Upgrade a language pack.
|
* Upgrade a language pack.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string|false $update Optional. Whether an update offer is available. Default false.
|
* @param string|false $update Optional. Whether an update offer is available. Default false.
|
||||||
* @param array $args Optional. Other optional arguments, see
|
* @param array $args Optional. Other optional arguments, see
|
||||||
|
@ -151,7 +146,6 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||||
* Bulk upgrade language packs.
|
* Bulk upgrade language packs.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
*
|
*
|
||||||
|
@ -307,7 +301,6 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||||
* Language_Pack_Upgrader::bulk_upgrade().
|
* Language_Pack_Upgrader::bulk_upgrade().
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
*
|
*
|
||||||
|
@ -349,7 +342,6 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||||
* Get the name of an item being updated.
|
* Get the name of an item being updated.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param object $update The data for an update.
|
* @param object $update The data for an update.
|
||||||
* @return string The name of the item being updated.
|
* @return string The name of the item being updated.
|
||||||
|
|
|
@ -34,7 +34,6 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function before() {
|
public function before() {
|
||||||
if ( !empty($this->api) )
|
if ( !empty($this->api) )
|
||||||
|
@ -42,7 +41,6 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function after() {
|
public function after() {
|
||||||
$plugin_file = $this->upgrader->plugin_info();
|
$plugin_file = $this->upgrader->plugin_info();
|
||||||
|
|
|
@ -21,7 +21,6 @@ class Plugin_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
public $plugin_network_active = false;
|
public $plugin_network_active = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $args
|
* @param array $args
|
||||||
*/
|
*/
|
||||||
|
@ -38,7 +37,6 @@ class Plugin_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function after() {
|
public function after() {
|
||||||
$this->plugin = $this->upgrader->plugin_info();
|
$this->plugin = $this->upgrader->plugin_info();
|
||||||
|
|
|
@ -24,7 +24,6 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
* Plugin upgrade result.
|
* Plugin upgrade result.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
* @var array|WP_Error $result
|
* @var array|WP_Error $result
|
||||||
*
|
*
|
||||||
* @see WP_Upgrader::$result
|
* @see WP_Upgrader::$result
|
||||||
|
@ -35,7 +34,6 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
* Whether a bulk upgrade/install is being performed.
|
* Whether a bulk upgrade/install is being performed.
|
||||||
*
|
*
|
||||||
* @since 2.9.0
|
* @since 2.9.0
|
||||||
* @access public
|
|
||||||
* @var bool $bulk
|
* @var bool $bulk
|
||||||
*/
|
*/
|
||||||
public $bulk = false;
|
public $bulk = false;
|
||||||
|
@ -44,7 +42,6 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
* Initialize the upgrade strings.
|
* Initialize the upgrade strings.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function upgrade_strings() {
|
public function upgrade_strings() {
|
||||||
$this->strings['up_to_date'] = __('The plugin is at the latest version.');
|
$this->strings['up_to_date'] = __('The plugin is at the latest version.');
|
||||||
|
@ -62,7 +59,6 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
* Initialize the install strings.
|
* Initialize the install strings.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function install_strings() {
|
public function install_strings() {
|
||||||
$this->strings['no_package'] = __('Install package not available.');
|
$this->strings['no_package'] = __('Install package not available.');
|
||||||
|
@ -79,7 +75,6 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
|
* @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $package The full local path or URI of the package.
|
* @param string $package The full local path or URI of the package.
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
|
@ -134,7 +129,6 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
|
* @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $plugin The basename path to the main plugin file.
|
* @param string $plugin The basename path to the main plugin file.
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
|
@ -206,7 +200,6 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
|
* @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $plugins Array of the basename paths of the plugins' main files.
|
* @param array $plugins Array of the basename paths of the plugins' main files.
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
|
@ -325,7 +318,6 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
* Plugin_Upgrader::install().
|
* Plugin_Upgrader::install().
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
*
|
*
|
||||||
|
@ -368,7 +360,6 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
* This isn't used internally in the class, but is called by the skins.
|
* This isn't used internally in the class, but is called by the skins.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return string|false The full path to the main plugin file, or false.
|
* @return string|false The full path to the main plugin file, or false.
|
||||||
*/
|
*/
|
||||||
|
@ -394,7 +385,6 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @since 4.1.0 Added a return value.
|
* @since 4.1.0 Added a return value.
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param bool|WP_Error $return Upgrade offer return.
|
* @param bool|WP_Error $return Upgrade offer return.
|
||||||
* @param array $plugin Plugin package arguments.
|
* @param array $plugin Plugin package arguments.
|
||||||
|
@ -428,7 +418,6 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
* Plugin_Upgrader::upgrade() and Plugin_Upgrader::bulk_upgrade().
|
* Plugin_Upgrader::upgrade() and Plugin_Upgrader::bulk_upgrade().
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
*
|
*
|
||||||
|
|
|
@ -34,7 +34,6 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function before() {
|
public function before() {
|
||||||
if ( !empty($this->api) )
|
if ( !empty($this->api) )
|
||||||
|
@ -42,7 +41,6 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function after() {
|
public function after() {
|
||||||
if ( empty($this->upgrader->result['destination_name']) )
|
if ( empty($this->upgrader->result['destination_name']) )
|
||||||
|
|
|
@ -19,7 +19,6 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
public $theme = '';
|
public $theme = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $args
|
* @param array $args
|
||||||
*/
|
*/
|
||||||
|
@ -33,7 +32,6 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function after() {
|
public function after() {
|
||||||
$this->decrement_update_count( 'theme' );
|
$this->decrement_update_count( 'theme' );
|
||||||
|
|
|
@ -24,7 +24,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
* Result of the theme upgrade offer.
|
* Result of the theme upgrade offer.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
* @var array|WP_Error $result
|
* @var array|WP_Error $result
|
||||||
* @see WP_Upgrader::$result
|
* @see WP_Upgrader::$result
|
||||||
*/
|
*/
|
||||||
|
@ -34,7 +33,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
* Whether multiple themes are being upgraded/installed in bulk.
|
* Whether multiple themes are being upgraded/installed in bulk.
|
||||||
*
|
*
|
||||||
* @since 2.9.0
|
* @since 2.9.0
|
||||||
* @access public
|
|
||||||
* @var bool $bulk
|
* @var bool $bulk
|
||||||
*/
|
*/
|
||||||
public $bulk = false;
|
public $bulk = false;
|
||||||
|
@ -43,7 +41,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
* Initialize the upgrade strings.
|
* Initialize the upgrade strings.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function upgrade_strings() {
|
public function upgrade_strings() {
|
||||||
$this->strings['up_to_date'] = __('The theme is at the latest version.');
|
$this->strings['up_to_date'] = __('The theme is at the latest version.');
|
||||||
|
@ -60,7 +57,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
* Initialize the install strings.
|
* Initialize the install strings.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function install_strings() {
|
public function install_strings() {
|
||||||
$this->strings['no_package'] = __('Install package not available.');
|
$this->strings['no_package'] = __('Install package not available.');
|
||||||
|
@ -88,7 +84,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
* Hooked to the {@see 'upgrader_post_install'} filter by Theme_Upgrader::install().
|
* Hooked to the {@see 'upgrader_post_install'} filter by Theme_Upgrader::install().
|
||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param bool $install_result
|
* @param bool $install_result
|
||||||
* @param array $hook_extra
|
* @param array $hook_extra
|
||||||
|
@ -162,7 +157,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
* a child theme and installing the parent theme fails.
|
* a child theme and installing the parent theme fails.
|
||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $actions Preview actions.
|
* @param array $actions Preview actions.
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -177,7 +171,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
|
* @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $package The full local path or URI of the package.
|
* @param string $package The full local path or URI of the package.
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
|
@ -235,7 +228,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
|
* @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $theme The theme slug.
|
* @param string $theme The theme slug.
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
|
@ -306,7 +298,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
|
* @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $themes The theme slugs.
|
* @param array $themes The theme slugs.
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
|
@ -427,7 +418,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
* files.
|
* files.
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
*
|
*
|
||||||
|
@ -486,7 +476,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
* Theme_Upgrader::bulk_upgrade().
|
* Theme_Upgrader::bulk_upgrade().
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param bool|WP_Error $return
|
* @param bool|WP_Error $return
|
||||||
* @param array $theme
|
* @param array $theme
|
||||||
|
@ -514,7 +503,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
* and Theme_Upgrader::bulk_upgrade().
|
* and Theme_Upgrader::bulk_upgrade().
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param bool|WP_Error $return
|
* @param bool|WP_Error $return
|
||||||
* @param array $theme
|
* @param array $theme
|
||||||
|
@ -549,7 +537,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
* and Theme_Upgrader::bulk_upgrade().
|
* and Theme_Upgrader::bulk_upgrade().
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
*
|
*
|
||||||
|
@ -583,7 +570,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @since 3.0.0 The `$theme` argument was added.
|
* @since 3.0.0 The `$theme` argument was added.
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $theme The directory name of the theme. This is optional, and if not supplied,
|
* @param string $theme The directory name of the theme. This is optional, and if not supplied,
|
||||||
* the directory name from the last result will be used.
|
* the directory name from the last result will be used.
|
||||||
|
|
|
@ -22,7 +22,6 @@ class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin {
|
||||||
* Holds the WP_Error object.
|
* Holds the WP_Error object.
|
||||||
*
|
*
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
* @access protected
|
|
||||||
* @var null|WP_Error
|
* @var null|WP_Error
|
||||||
*/
|
*/
|
||||||
protected $errors = null;
|
protected $errors = null;
|
||||||
|
@ -31,7 +30,6 @@ class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $args Options for the upgrader, see WP_Upgrader_Skin::__construct().
|
* @param array $args Options for the upgrader, see WP_Upgrader_Skin::__construct().
|
||||||
*/
|
*/
|
||||||
|
@ -45,7 +43,6 @@ class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin {
|
||||||
* Retrieves the list of errors.
|
* Retrieves the list of errors.
|
||||||
*
|
*
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return WP_Error Errors during an upgrade.
|
* @return WP_Error Errors during an upgrade.
|
||||||
*/
|
*/
|
||||||
|
@ -57,7 +54,6 @@ class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin {
|
||||||
* Retrieves a string for error messages.
|
* Retrieves a string for error messages.
|
||||||
*
|
*
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return string Error messages during an upgrade.
|
* @return string Error messages during an upgrade.
|
||||||
*/
|
*/
|
||||||
|
@ -79,7 +75,6 @@ class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin {
|
||||||
* Stores a log entry for an error.
|
* Stores a log entry for an error.
|
||||||
*
|
*
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string|WP_Error $errors Errors.
|
* @param string|WP_Error $errors Errors.
|
||||||
*/
|
*/
|
||||||
|
@ -115,7 +110,6 @@ class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin {
|
||||||
* Stores a log entry.
|
* Stores a log entry.
|
||||||
*
|
*
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string|array|WP_Error $data Log entry data.
|
* @param string|array|WP_Error $data Log entry data.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -19,7 +19,6 @@ class WP_Automatic_Updater {
|
||||||
* Tracks update results during processing.
|
* Tracks update results during processing.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
* @access protected
|
|
||||||
*/
|
*/
|
||||||
protected $update_results = array();
|
protected $update_results = array();
|
||||||
|
|
||||||
|
@ -27,7 +26,6 @@ class WP_Automatic_Updater {
|
||||||
* Whether the entire automatic updater is disabled.
|
* Whether the entire automatic updater is disabled.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function is_disabled() {
|
public function is_disabled() {
|
||||||
// Background updates are disabled if you don't want file changes.
|
// Background updates are disabled if you don't want file changes.
|
||||||
|
@ -68,7 +66,6 @@ class WP_Automatic_Updater {
|
||||||
* how things get updated.
|
* how things get updated.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $context The filesystem path to check, in addition to ABSPATH.
|
* @param string $context The filesystem path to check, in addition to ABSPATH.
|
||||||
*/
|
*/
|
||||||
|
@ -121,7 +118,6 @@ class WP_Automatic_Updater {
|
||||||
* Tests to see if we can and should update a specific item.
|
* Tests to see if we can and should update a specific item.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb WordPress database abstraction object.
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
|
@ -205,7 +201,6 @@ class WP_Automatic_Updater {
|
||||||
* Notifies an administrator of a core update.
|
* Notifies an administrator of a core update.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param object $item The update offer.
|
* @param object $item The update offer.
|
||||||
*/
|
*/
|
||||||
|
@ -249,7 +244,6 @@ class WP_Automatic_Updater {
|
||||||
* Update an item, if appropriate.
|
* Update an item, if appropriate.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'.
|
* @param string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'.
|
||||||
* @param object $item The update offer.
|
* @param object $item The update offer.
|
||||||
|
@ -370,7 +364,6 @@ class WP_Automatic_Updater {
|
||||||
* Kicks off the background update process, looping through all pending updates.
|
* Kicks off the background update process, looping through all pending updates.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function run() {
|
public function run() {
|
||||||
if ( $this->is_disabled() )
|
if ( $this->is_disabled() )
|
||||||
|
@ -487,7 +480,6 @@ class WP_Automatic_Updater {
|
||||||
* and if we need to avoid processing future updates.
|
* and if we need to avoid processing future updates.
|
||||||
*
|
*
|
||||||
* @since Unknown
|
* @since Unknown
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param object $update_result The result of the core update. Includes the update offer and result.
|
* @param object $update_result The result of the core update. Includes the update offer and result.
|
||||||
*/
|
*/
|
||||||
|
@ -575,7 +567,6 @@ class WP_Automatic_Updater {
|
||||||
* Sends an email upon the completion or failure of a background core update.
|
* Sends an email upon the completion or failure of a background core update.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param string $type The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'.
|
* @param string $type The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'.
|
||||||
* @param object $core_update The update offer that was attempted.
|
* @param object $core_update The update offer that was attempted.
|
||||||
|
@ -773,7 +764,6 @@ class WP_Automatic_Updater {
|
||||||
* Prepares and sends an email of a full log of background update results, useful for debugging and geekery.
|
* Prepares and sends an email of a full log of background update results, useful for debugging and geekery.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access protected
|
|
||||||
*/
|
*/
|
||||||
protected function send_debug_email() {
|
protected function send_debug_email() {
|
||||||
$update_count = 0;
|
$update_count = 0;
|
||||||
|
|
|
@ -29,7 +29,6 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
|
@ -428,7 +427,6 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||||
* Get the name of the default primary column.
|
* Get the name of the default primary column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string Name of the default primary column, in this case, 'comment'.
|
* @return string Name of the default primary column, in this case, 'comment'.
|
||||||
*/
|
*/
|
||||||
|
@ -437,7 +435,6 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display() {
|
public function display() {
|
||||||
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
||||||
|
@ -715,7 +712,6 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Comment $comment The comment object.
|
* @param WP_Comment $comment The comment object.
|
||||||
*/
|
*/
|
||||||
|
@ -741,7 +737,6 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Comment $comment The comment object.
|
* @param WP_Comment $comment The comment object.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -18,7 +18,6 @@ class WP_Community_Events {
|
||||||
/**
|
/**
|
||||||
* ID for a WordPress user account.
|
* ID for a WordPress user account.
|
||||||
*
|
*
|
||||||
* @access protected
|
|
||||||
* @since 4.8.0
|
* @since 4.8.0
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
|
@ -28,7 +27,6 @@ class WP_Community_Events {
|
||||||
/**
|
/**
|
||||||
* Stores location data for the user.
|
* Stores location data for the user.
|
||||||
*
|
*
|
||||||
* @access protected
|
|
||||||
* @since 4.8.0
|
* @since 4.8.0
|
||||||
*
|
*
|
||||||
* @var bool|array
|
* @var bool|array
|
||||||
|
@ -171,7 +169,6 @@ class WP_Community_Events {
|
||||||
/**
|
/**
|
||||||
* Builds an array of args to use in an HTTP request to the w.org Events API.
|
* Builds an array of args to use in an HTTP request to the w.org Events API.
|
||||||
*
|
*
|
||||||
* @access protected
|
|
||||||
* @since 4.8.0
|
* @since 4.8.0
|
||||||
*
|
*
|
||||||
* @param string $search Optional. City search string. Default empty string.
|
* @param string $search Optional. City search string. Default empty string.
|
||||||
|
@ -229,7 +226,6 @@ class WP_Community_Events {
|
||||||
* _NOT_ guarantee that the returned address is valid or accurate, and it can
|
* _NOT_ guarantee that the returned address is valid or accurate, and it can
|
||||||
* be easily spoofed.
|
* be easily spoofed.
|
||||||
*
|
*
|
||||||
* @access protected
|
|
||||||
* @since 4.8.0
|
* @since 4.8.0
|
||||||
*
|
*
|
||||||
* @return false|string The anonymized address on success; the given address
|
* @return false|string The anonymized address on success; the given address
|
||||||
|
@ -281,7 +277,6 @@ class WP_Community_Events {
|
||||||
* Test if two pairs of latitude/longitude coordinates match each other.
|
* Test if two pairs of latitude/longitude coordinates match each other.
|
||||||
*
|
*
|
||||||
* @since 4.8.0
|
* @since 4.8.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param array $a The first pair, with indexes 'latitude' and 'longitude'.
|
* @param array $a The first pair, with indexes 'latitude' and 'longitude'.
|
||||||
* @param array $b The second pair, with indexes 'latitude' and 'longitude'.
|
* @param array $b The second pair, with indexes 'latitude' and 'longitude'.
|
||||||
|
@ -303,7 +298,6 @@ class WP_Community_Events {
|
||||||
* functions, and having it abstracted keeps the logic consistent and DRY,
|
* functions, and having it abstracted keeps the logic consistent and DRY,
|
||||||
* which is less prone to errors.
|
* which is less prone to errors.
|
||||||
*
|
*
|
||||||
* @access protected
|
|
||||||
* @since 4.8.0
|
* @since 4.8.0
|
||||||
*
|
*
|
||||||
* @param array $location Should contain 'latitude' and 'longitude' indexes.
|
* @param array $location Should contain 'latitude' and 'longitude' indexes.
|
||||||
|
@ -324,7 +318,6 @@ class WP_Community_Events {
|
||||||
/**
|
/**
|
||||||
* Caches an array of events data from the Events API.
|
* Caches an array of events data from the Events API.
|
||||||
*
|
*
|
||||||
* @access protected
|
|
||||||
* @since 4.8.0
|
* @since 4.8.0
|
||||||
*
|
*
|
||||||
* @param array $events Response body from the API request.
|
* @param array $events Response body from the API request.
|
||||||
|
@ -366,7 +359,6 @@ class WP_Community_Events {
|
||||||
* the cache, then all users would see the events in the localized data/time
|
* the cache, then all users would see the events in the localized data/time
|
||||||
* of the user who triggered the cache refresh, rather than their own.
|
* of the user who triggered the cache refresh, rather than their own.
|
||||||
*
|
*
|
||||||
* @access protected
|
|
||||||
* @since 4.8.0
|
* @since 4.8.0
|
||||||
*
|
*
|
||||||
* @param array $response_body The response which contains the events.
|
* @param array $response_body The response which contains the events.
|
||||||
|
@ -395,7 +387,6 @@ class WP_Community_Events {
|
||||||
/**
|
/**
|
||||||
* Discards expired events, and reduces the remaining list.
|
* Discards expired events, and reduces the remaining list.
|
||||||
*
|
*
|
||||||
* @access protected
|
|
||||||
* @since 4.8.0
|
* @since 4.8.0
|
||||||
*
|
*
|
||||||
* @param array $response_body The response body which contains the events.
|
* @param array $response_body The response body which contains the events.
|
||||||
|
@ -436,7 +427,6 @@ class WP_Community_Events {
|
||||||
* Errors are logged instead of being triggered, to avoid breaking the JSON
|
* Errors are logged instead of being triggered, to avoid breaking the JSON
|
||||||
* response when called from AJAX handlers and `display_errors` is enabled.
|
* response when called from AJAX handlers and `display_errors` is enabled.
|
||||||
*
|
*
|
||||||
* @access protected
|
|
||||||
* @since 4.8.0
|
* @since 4.8.0
|
||||||
*
|
*
|
||||||
* @param string $message A description of what occurred.
|
* @param string $message A description of what occurred.
|
||||||
|
|
|
@ -15,7 +15,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Whether to display debug data for the connection.
|
* Whether to display debug data for the connection.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
|
@ -24,7 +23,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Cached list of local filepaths to mapped remote filepaths.
|
* Cached list of local filepaths to mapped remote filepaths.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
|
@ -33,27 +31,23 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* The Access method of the current connection, Set automatically.
|
* The Access method of the current connection, Set automatically.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $method = '';
|
public $method = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
* @var WP_Error
|
* @var WP_Error
|
||||||
*/
|
*/
|
||||||
public $errors = null;
|
public $errors = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $options = array();
|
public $options = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the path on the remote filesystem of ABSPATH.
|
* Return the path on the remote filesystem of ABSPATH.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @return string The location of the remote path.
|
* @return string The location of the remote path.
|
||||||
|
@ -69,7 +63,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Return the path on the remote filesystem of WP_CONTENT_DIR.
|
* Return the path on the remote filesystem of WP_CONTENT_DIR.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @return string The location of the remote path.
|
* @return string The location of the remote path.
|
||||||
|
@ -81,7 +74,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Return the path on the remote filesystem of WP_PLUGIN_DIR.
|
* Return the path on the remote filesystem of WP_PLUGIN_DIR.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @return string The location of the remote path.
|
* @return string The location of the remote path.
|
||||||
|
@ -93,7 +85,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Return the path on the remote filesystem of the Themes Directory.
|
* Return the path on the remote filesystem of the Themes Directory.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @param string $theme The Theme stylesheet or template for the directory.
|
* @param string $theme The Theme stylesheet or template for the directory.
|
||||||
|
@ -112,7 +103,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Return the path on the remote filesystem of WP_LANG_DIR.
|
* Return the path on the remote filesystem of WP_LANG_DIR.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*
|
*
|
||||||
* @return string The location of the remote path.
|
* @return string The location of the remote path.
|
||||||
|
@ -124,7 +114,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Locate a folder on the remote filesystem.
|
* Locate a folder on the remote filesystem.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() instead.
|
* @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() instead.
|
||||||
* @see WP_Filesystem::abspath()
|
* @see WP_Filesystem::abspath()
|
||||||
|
@ -147,7 +136,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Locate a folder on the remote filesystem.
|
* Locate a folder on the remote filesystem.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() methods instead.
|
* @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() methods instead.
|
||||||
* @see WP_Filesystem::abspath()
|
* @see WP_Filesystem::abspath()
|
||||||
|
@ -172,7 +160,6 @@ class WP_Filesystem_Base {
|
||||||
* Assumes that on Windows systems, Stripping off the Drive
|
* Assumes that on Windows systems, Stripping off the Drive
|
||||||
* letter is OK Sanitizes \\ to / in windows filepaths.
|
* letter is OK Sanitizes \\ to / in windows filepaths.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @param string $folder the folder to locate.
|
* @param string $folder the folder to locate.
|
||||||
|
@ -238,7 +225,6 @@ class WP_Filesystem_Base {
|
||||||
*
|
*
|
||||||
* Expects Windows sanitized path.
|
* Expects Windows sanitized path.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @param string $folder The folder to locate.
|
* @param string $folder The folder to locate.
|
||||||
|
@ -319,7 +305,6 @@ class WP_Filesystem_Base {
|
||||||
*
|
*
|
||||||
* @link https://secure.php.net/manual/en/function.fileperms.php
|
* @link https://secure.php.net/manual/en/function.fileperms.php
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*
|
*
|
||||||
* @param string $file String filename.
|
* @param string $file String filename.
|
||||||
|
@ -370,7 +355,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Gets the permissions of the specified file or filepath in their octal format
|
* Gets the permissions of the specified file or filepath in their octal format
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string the last 3 characters of the octal number
|
* @return string the last 3 characters of the octal number
|
||||||
|
@ -387,7 +371,6 @@ class WP_Filesystem_Base {
|
||||||
*
|
*
|
||||||
* @link https://secure.php.net/manual/en/function.chmod.php#49614
|
* @link https://secure.php.net/manual/en/function.chmod.php#49614
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*
|
*
|
||||||
* @param string $mode string The *nix-style file permission.
|
* @param string $mode string The *nix-style file permission.
|
||||||
|
@ -418,7 +401,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Determine if the string provided contains binary characters.
|
* Determine if the string provided contains binary characters.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @param string $text String to test against.
|
* @param string $text String to test against.
|
||||||
|
@ -433,7 +415,6 @@ class WP_Filesystem_Base {
|
||||||
*
|
*
|
||||||
* Default behavior is to do nothing, override this in your subclass, if desired.
|
* Default behavior is to do nothing, override this in your subclass, if desired.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*
|
*
|
||||||
* @param string $file Path to the file.
|
* @param string $file Path to the file.
|
||||||
|
@ -448,7 +429,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Connect filesystem.
|
* Connect filesystem.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -461,7 +441,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Read entire file into a string.
|
* Read entire file into a string.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -475,7 +454,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Read entire file into an array.
|
* Read entire file into an array.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -489,7 +467,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Write a string to a file.
|
* Write a string to a file.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -505,7 +482,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Get the current working directory.
|
* Get the current working directory.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -518,7 +494,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Change current directory.
|
* Change current directory.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -532,7 +507,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Change the file group.
|
* Change the file group.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -548,7 +522,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Change filesystem permissions.
|
* Change filesystem permissions.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -564,7 +537,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Get the file owner.
|
* Get the file owner.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -578,7 +550,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Get the file's group.
|
* Get the file's group.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -592,7 +563,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Copy a file.
|
* Copy a file.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -611,7 +581,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Move a file.
|
* Move a file.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -628,7 +597,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Delete a file or directory.
|
* Delete a file or directory.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -646,7 +614,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Check if a file or directory exists.
|
* Check if a file or directory exists.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -660,7 +627,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Check if resource is a file.
|
* Check if resource is a file.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -674,7 +640,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Check if resource is a directory.
|
* Check if resource is a directory.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -688,7 +653,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Check if a file is readable.
|
* Check if a file is readable.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -702,7 +666,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Check if a file or directory is writable.
|
* Check if a file or directory is writable.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -716,7 +679,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Gets the file's last access time.
|
* Gets the file's last access time.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -730,7 +692,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Gets the file modification time.
|
* Gets the file modification time.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -744,7 +705,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Gets the file size (in bytes).
|
* Gets the file size (in bytes).
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -760,7 +720,6 @@ class WP_Filesystem_Base {
|
||||||
*
|
*
|
||||||
* Note: If $file doesn't exist, it will be created.
|
* Note: If $file doesn't exist, it will be created.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -778,7 +737,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Create a directory.
|
* Create a directory.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -798,7 +756,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Delete a directory.
|
* Delete a directory.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
@ -814,7 +771,6 @@ class WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Get details for files in a directory or a specific file.
|
* Get details for files in a directory or a specific file.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
|
|
|
@ -18,7 +18,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param mixed $arg ignored argument
|
* @param mixed $arg ignored argument
|
||||||
*/
|
*/
|
||||||
|
@ -30,7 +29,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Reads entire file into a string
|
* Reads entire file into a string
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file Name of the file to read.
|
* @param string $file Name of the file to read.
|
||||||
* @return string|bool The function returns the read data or false on failure.
|
* @return string|bool The function returns the read data or false on failure.
|
||||||
|
@ -42,7 +40,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Reads entire file into an array
|
* Reads entire file into an array
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file Path to the file.
|
* @param string $file Path to the file.
|
||||||
* @return array|bool the file contents in an array or false on failure.
|
* @return array|bool the file contents in an array or false on failure.
|
||||||
|
@ -54,7 +51,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Write a string to a file
|
* Write a string to a file
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file Remote path to the file where to write the data.
|
* @param string $file Remote path to the file where to write the data.
|
||||||
* @param string $contents The data to write.
|
* @param string $contents The data to write.
|
||||||
|
@ -88,7 +84,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Gets the current working directory
|
* Gets the current working directory
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return string|bool the current working directory on success, or false on failure.
|
* @return string|bool the current working directory on success, or false on failure.
|
||||||
*/
|
*/
|
||||||
|
@ -99,7 +94,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Change directory
|
* Change directory
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $dir The new current directory.
|
* @param string $dir The new current directory.
|
||||||
* @return bool Returns true on success or false on failure.
|
* @return bool Returns true on success or false on failure.
|
||||||
|
@ -111,7 +105,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Changes file group
|
* Changes file group
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file Path to the file.
|
* @param string $file Path to the file.
|
||||||
* @param mixed $group A group name or number.
|
* @param mixed $group A group name or number.
|
||||||
|
@ -137,7 +130,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Changes filesystem permissions
|
* Changes filesystem permissions
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file Path to the file.
|
* @param string $file Path to the file.
|
||||||
* @param int $mode Optional. The permissions as octal number, usually 0644 for files,
|
* @param int $mode Optional. The permissions as octal number, usually 0644 for files,
|
||||||
|
@ -169,7 +161,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Changes file owner
|
* Changes file owner
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file Path to the file.
|
* @param string $file Path to the file.
|
||||||
* @param mixed $owner A user name or number.
|
* @param mixed $owner A user name or number.
|
||||||
|
@ -195,7 +186,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Gets file owner
|
* Gets file owner
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file Path to the file.
|
* @param string $file Path to the file.
|
||||||
* @return string|bool Username of the user or false on error.
|
* @return string|bool Username of the user or false on error.
|
||||||
|
@ -215,7 +205,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
*
|
*
|
||||||
* FIXME does not handle errors in fileperms()
|
* FIXME does not handle errors in fileperms()
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file Path to the file.
|
* @param string $file Path to the file.
|
||||||
* @return string Mode of the file (last 3 digits).
|
* @return string Mode of the file (last 3 digits).
|
||||||
|
@ -225,7 +214,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string|false
|
* @return string|false
|
||||||
|
@ -241,7 +229,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $source
|
* @param string $source
|
||||||
* @param string $destination
|
* @param string $destination
|
||||||
|
@ -260,7 +247,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $source
|
* @param string $source
|
||||||
* @param string $destination
|
* @param string $destination
|
||||||
|
@ -284,7 +270,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param bool $recursive
|
* @param bool $recursive
|
||||||
|
@ -319,7 +304,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
return $retval;
|
return $retval;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -328,7 +312,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
return @file_exists($file);
|
return @file_exists($file);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -337,7 +320,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
return @is_file($file);
|
return @is_file($file);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -347,7 +329,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -357,7 +338,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -367,7 +347,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return int
|
* @return int
|
||||||
|
@ -377,7 +356,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return int
|
* @return int
|
||||||
|
@ -387,7 +365,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return int
|
* @return int
|
||||||
|
@ -397,7 +374,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param int $time
|
* @param int $time
|
||||||
|
@ -413,7 +389,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param mixed $chmod
|
* @param mixed $chmod
|
||||||
|
@ -441,7 +416,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param bool $recursive
|
* @param bool $recursive
|
||||||
|
@ -452,7 +426,6 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param bool $include_hidden
|
* @param bool $include_hidden
|
||||||
|
|
|
@ -17,7 +17,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
public $link;
|
public $link;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $opt
|
* @param array $opt
|
||||||
*/
|
*/
|
||||||
|
@ -63,7 +62,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
@ -105,7 +103,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
* Retrieves the file contents.
|
* Retrieves the file contents.
|
||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file Filename.
|
* @param string $file Filename.
|
||||||
* @return string|false File contents on success, false if no temp file could be opened,
|
* @return string|false File contents on success, false if no temp file could be opened,
|
||||||
|
@ -138,7 +135,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -148,7 +144,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param string $contents
|
* @param string $contents
|
||||||
|
@ -190,7 +185,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
@ -202,7 +196,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $dir
|
* @param string $dir
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -212,7 +205,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param int $mode
|
* @param int $mode
|
||||||
|
@ -243,7 +235,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -253,7 +244,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
return $dir[$file]['owner'];
|
return $dir[$file]['owner'];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -264,7 +254,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -275,7 +264,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $source
|
* @param string $source
|
||||||
* @param string $destination
|
* @param string $destination
|
||||||
|
@ -293,7 +281,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $source
|
* @param string $source
|
||||||
* @param string $destination
|
* @param string $destination
|
||||||
|
@ -305,7 +292,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param bool $recursive
|
* @param bool $recursive
|
||||||
|
@ -328,7 +314,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -344,7 +329,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -354,7 +338,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -370,7 +353,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -380,7 +362,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -390,7 +371,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -400,7 +380,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return int
|
* @return int
|
||||||
|
@ -410,7 +389,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return int
|
* @return int
|
||||||
|
@ -420,7 +398,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -430,7 +407,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param mixed $chmod
|
* @param mixed $chmod
|
||||||
|
@ -450,7 +426,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param bool $recursive
|
* @param bool $recursive
|
||||||
|
@ -461,7 +436,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @staticvar bool $is_windows
|
* @staticvar bool $is_windows
|
||||||
* @param string $line
|
* @param string $line
|
||||||
|
@ -543,7 +517,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param bool $include_hidden
|
* @param bool $include_hidden
|
||||||
|
@ -600,7 +573,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function __destruct() {
|
public function __destruct() {
|
||||||
if ( $this->link )
|
if ( $this->link )
|
||||||
|
|
|
@ -15,13 +15,11 @@
|
||||||
*/
|
*/
|
||||||
class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
* @var ftp
|
* @var ftp
|
||||||
*/
|
*/
|
||||||
public $ftp;
|
public $ftp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $opt
|
* @param array $opt
|
||||||
*/
|
*/
|
||||||
|
@ -58,7 +56,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
@ -108,7 +105,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
* Retrieves the file contents.
|
* Retrieves the file contents.
|
||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file Filename.
|
* @param string $file Filename.
|
||||||
* @return string|false File contents on success, false if no temp file could be opened,
|
* @return string|false File contents on success, false if no temp file could be opened,
|
||||||
|
@ -150,7 +146,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -160,7 +155,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param string $contents
|
* @param string $contents
|
||||||
|
@ -202,7 +196,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
@ -214,7 +207,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -224,7 +216,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param int|bool $mode
|
* @param int|bool $mode
|
||||||
|
@ -253,7 +244,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -264,7 +254,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -275,7 +264,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -286,7 +274,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $source
|
* @param string $source
|
||||||
* @param string $destination
|
* @param string $destination
|
||||||
|
@ -306,7 +293,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $source
|
* @param string $source
|
||||||
* @param string $destination
|
* @param string $destination
|
||||||
|
@ -318,7 +304,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param bool $recursive
|
* @param bool $recursive
|
||||||
|
@ -337,7 +322,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -354,7 +338,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -368,7 +351,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -383,7 +365,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -393,7 +374,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -403,7 +383,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -413,7 +392,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return int
|
* @return int
|
||||||
|
@ -431,7 +409,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param int $time
|
* @param int $time
|
||||||
|
@ -443,7 +420,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param mixed $chmod
|
* @param mixed $chmod
|
||||||
|
@ -465,7 +441,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param bool $recursive
|
* @param bool $recursive
|
||||||
|
@ -476,7 +451,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param bool $include_hidden
|
* @param bool $include_hidden
|
||||||
|
@ -536,7 +510,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function __destruct() {
|
public function __destruct() {
|
||||||
$this->ftp->quit();
|
$this->ftp->quit();
|
||||||
|
|
|
@ -36,19 +36,16 @@
|
||||||
class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $link = false;
|
public $link = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
* @var resource
|
* @var resource
|
||||||
*/
|
*/
|
||||||
public $sftp_link;
|
public $sftp_link;
|
||||||
public $keys = false;
|
public $keys = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $opt
|
* @param array $opt
|
||||||
*/
|
*/
|
||||||
|
@ -109,7 +106,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
@ -174,7 +170,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
* this, the path is converted to /./ which is semantically the same as /
|
* this, the path is converted to /./ which is semantically the same as /
|
||||||
* See https://bugs.php.net/bug.php?id=64169 for more details.
|
* See https://bugs.php.net/bug.php?id=64169 for more details.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
*
|
*
|
||||||
|
@ -189,7 +184,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $command
|
* @param string $command
|
||||||
* @param bool $returnbool
|
* @param bool $returnbool
|
||||||
|
@ -222,7 +216,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string|false
|
* @return string|false
|
||||||
|
@ -232,7 +225,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -242,7 +234,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param string $contents
|
* @param string $contents
|
||||||
|
@ -261,7 +252,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
@ -274,7 +264,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $dir
|
* @param string $dir
|
||||||
* @return bool|string
|
* @return bool|string
|
||||||
|
@ -284,7 +273,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param string $group
|
* @param string $group
|
||||||
|
@ -301,7 +289,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param int $mode
|
* @param int $mode
|
||||||
|
@ -329,7 +316,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* Change the ownership of a file / folder.
|
* Change the ownership of a file / folder.
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file Path to the file.
|
* @param string $file Path to the file.
|
||||||
* @param string|int $owner A user name or number.
|
* @param string|int $owner A user name or number.
|
||||||
|
@ -345,7 +331,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string|false
|
* @return string|false
|
||||||
|
@ -361,7 +346,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -371,7 +355,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return string|false
|
* @return string|false
|
||||||
|
@ -387,7 +370,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $source
|
* @param string $source
|
||||||
* @param string $destination
|
* @param string $destination
|
||||||
|
@ -405,7 +387,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $source
|
* @param string $source
|
||||||
* @param string $destination
|
* @param string $destination
|
||||||
|
@ -417,7 +398,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param bool $recursive
|
* @param bool $recursive
|
||||||
|
@ -439,7 +419,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -449,7 +428,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -459,7 +437,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -469,7 +446,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -479,7 +455,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -490,7 +465,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return int
|
* @return int
|
||||||
|
@ -500,7 +474,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return int
|
* @return int
|
||||||
|
@ -510,7 +483,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return int
|
* @return int
|
||||||
|
@ -520,7 +492,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @param int $time
|
* @param int $time
|
||||||
|
@ -531,7 +502,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param mixed $chmod
|
* @param mixed $chmod
|
||||||
|
@ -556,7 +526,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param bool $recursive
|
* @param bool $recursive
|
||||||
|
@ -567,7 +536,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param bool $include_hidden
|
* @param bool $include_hidden
|
||||||
|
|
|
@ -21,7 +21,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
|
@ -69,7 +68,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
_e( 'No links found.' );
|
_e( 'No links found.' );
|
||||||
|
@ -151,7 +149,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
* Get the name of the default primary column.
|
* Get the name of the default primary column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string Name of the default primary column, in this case, 'name'.
|
* @return string Name of the default primary column, in this case, 'name'.
|
||||||
*/
|
*/
|
||||||
|
@ -163,7 +160,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
* Handles the checkbox column output.
|
* Handles the checkbox column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param object $link The current link object.
|
* @param object $link The current link object.
|
||||||
*/
|
*/
|
||||||
|
@ -178,7 +174,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
* Handles the link name column output.
|
* Handles the link name column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param object $link The current link object.
|
* @param object $link The current link object.
|
||||||
*/
|
*/
|
||||||
|
@ -196,7 +191,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
* Handles the link URL column output.
|
* Handles the link URL column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param object $link The current link object.
|
* @param object $link The current link object.
|
||||||
*/
|
*/
|
||||||
|
@ -209,7 +203,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
* Handles the link categories column output.
|
* Handles the link categories column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global int $cat_id
|
* @global int $cat_id
|
||||||
*
|
*
|
||||||
|
@ -237,7 +230,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
* Handles the link relation column output.
|
* Handles the link relation column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param object $link The current link object.
|
* @param object $link The current link object.
|
||||||
*/
|
*/
|
||||||
|
@ -249,7 +241,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
* Handles the link visibility column output.
|
* Handles the link visibility column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param object $link The current link object.
|
* @param object $link The current link object.
|
||||||
*/
|
*/
|
||||||
|
@ -265,7 +256,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
* Handles the link rating column output.
|
* Handles the link rating column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param object $link The current link object.
|
* @param object $link The current link object.
|
||||||
*/
|
*/
|
||||||
|
@ -277,7 +267,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
* Handles the default column output.
|
* Handles the default column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param object $link Link object.
|
* @param object $link Link object.
|
||||||
* @param string $column_name Current column name.
|
* @param string $column_name Current column name.
|
||||||
|
@ -311,7 +300,6 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
* Generates and displays row action links.
|
* Generates and displays row action links.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param object $link Link being acted upon.
|
* @param object $link Link being acted upon.
|
||||||
* @param string $column_name Current column name.
|
* @param string $column_name Current column name.
|
||||||
|
|
|
@ -29,7 +29,6 @@ class _WP_List_Table_Compat extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -43,7 +42,6 @@ class _WP_List_Table_Compat extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -19,7 +19,6 @@ class WP_List_Table {
|
||||||
* The current list of items.
|
* The current list of items.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
public $items;
|
public $items;
|
||||||
|
@ -28,7 +27,6 @@ class WP_List_Table {
|
||||||
* Various information about the current table.
|
* Various information about the current table.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $_args;
|
protected $_args;
|
||||||
|
@ -37,7 +35,6 @@ class WP_List_Table {
|
||||||
* Various information needed for displaying the pagination.
|
* Various information needed for displaying the pagination.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $_pagination_args = array();
|
protected $_pagination_args = array();
|
||||||
|
@ -46,7 +43,6 @@ class WP_List_Table {
|
||||||
* The current screen.
|
* The current screen.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
* @var object
|
* @var object
|
||||||
*/
|
*/
|
||||||
protected $screen;
|
protected $screen;
|
||||||
|
@ -55,7 +51,6 @@ class WP_List_Table {
|
||||||
* Cached bulk actions.
|
* Cached bulk actions.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access private
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private $_actions;
|
private $_actions;
|
||||||
|
@ -64,7 +59,6 @@ class WP_List_Table {
|
||||||
* Cached pagination output.
|
* Cached pagination output.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access private
|
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $_pagination;
|
private $_pagination;
|
||||||
|
@ -73,7 +67,6 @@ class WP_List_Table {
|
||||||
* The view switcher modes.
|
* The view switcher modes.
|
||||||
*
|
*
|
||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
* @access protected
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $modes = array();
|
protected $modes = array();
|
||||||
|
@ -82,7 +75,6 @@ class WP_List_Table {
|
||||||
* Stores the value returned by ->get_column_info().
|
* Stores the value returned by ->get_column_info().
|
||||||
*
|
*
|
||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
* @access protected
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $_column_headers;
|
protected $_column_headers;
|
||||||
|
@ -90,7 +82,6 @@ class WP_List_Table {
|
||||||
/**
|
/**
|
||||||
* {@internal Missing Summary}
|
* {@internal Missing Summary}
|
||||||
*
|
*
|
||||||
* @access protected
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $compat_fields = array( '_args', '_pagination_args', 'screen', '_actions', '_pagination' );
|
protected $compat_fields = array( '_args', '_pagination_args', 'screen', '_actions', '_pagination' );
|
||||||
|
@ -98,7 +89,6 @@ class WP_List_Table {
|
||||||
/**
|
/**
|
||||||
* {@internal Missing Summary}
|
* {@internal Missing Summary}
|
||||||
*
|
*
|
||||||
* @access protected
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $compat_methods = array( 'set_pagination_args', 'get_views', 'get_bulk_actions', 'bulk_actions',
|
protected $compat_methods = array( 'set_pagination_args', 'get_views', 'get_bulk_actions', 'bulk_actions',
|
||||||
|
@ -113,7 +103,6 @@ class WP_List_Table {
|
||||||
* the default $args.
|
* the default $args.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array|string $args {
|
* @param array|string $args {
|
||||||
* Array or string of arguments.
|
* Array or string of arguments.
|
||||||
|
@ -169,7 +158,6 @@ class WP_List_Table {
|
||||||
* Make private properties readable for backward compatibility.
|
* Make private properties readable for backward compatibility.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $name Property to get.
|
* @param string $name Property to get.
|
||||||
* @return mixed Property.
|
* @return mixed Property.
|
||||||
|
@ -184,7 +172,6 @@ class WP_List_Table {
|
||||||
* Make private properties settable for backward compatibility.
|
* Make private properties settable for backward compatibility.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $name Property to check if set.
|
* @param string $name Property to check if set.
|
||||||
* @param mixed $value Property value.
|
* @param mixed $value Property value.
|
||||||
|
@ -200,7 +187,6 @@ class WP_List_Table {
|
||||||
* Make private properties checkable for backward compatibility.
|
* Make private properties checkable for backward compatibility.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $name Property to check if set.
|
* @param string $name Property to check if set.
|
||||||
* @return bool Whether the property is set.
|
* @return bool Whether the property is set.
|
||||||
|
@ -215,7 +201,6 @@ class WP_List_Table {
|
||||||
* Make private properties un-settable for backward compatibility.
|
* Make private properties un-settable for backward compatibility.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $name Property to unset.
|
* @param string $name Property to unset.
|
||||||
*/
|
*/
|
||||||
|
@ -229,7 +214,6 @@ class WP_List_Table {
|
||||||
* Make private/protected methods readable for backward compatibility.
|
* Make private/protected methods readable for backward compatibility.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param callable $name Method to call.
|
* @param callable $name Method to call.
|
||||||
* @param array $arguments Arguments to pass when calling.
|
* @param array $arguments Arguments to pass when calling.
|
||||||
|
@ -246,7 +230,6 @@ class WP_List_Table {
|
||||||
* Checks the current user's permissions
|
* Checks the current user's permissions
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
* @abstract
|
* @abstract
|
||||||
*/
|
*/
|
||||||
public function ajax_user_can() {
|
public function ajax_user_can() {
|
||||||
|
@ -258,7 +241,6 @@ class WP_List_Table {
|
||||||
* @uses WP_List_Table::set_pagination_args()
|
* @uses WP_List_Table::set_pagination_args()
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
* @abstract
|
* @abstract
|
||||||
*/
|
*/
|
||||||
public function prepare_items() {
|
public function prepare_items() {
|
||||||
|
@ -269,7 +251,6 @@ class WP_List_Table {
|
||||||
* An internal method that sets all the necessary pagination arguments
|
* An internal method that sets all the necessary pagination arguments
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param array|string $args Array or string of arguments with information about the pagination.
|
* @param array|string $args Array or string of arguments with information about the pagination.
|
||||||
*/
|
*/
|
||||||
|
@ -296,7 +277,6 @@ class WP_List_Table {
|
||||||
* Access the pagination args.
|
* Access the pagination args.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $key Pagination argument to retrieve. Common values include 'total_items',
|
* @param string $key Pagination argument to retrieve. Common values include 'total_items',
|
||||||
* 'total_pages', 'per_page', or 'infinite_scroll'.
|
* 'total_pages', 'per_page', or 'infinite_scroll'.
|
||||||
|
@ -316,7 +296,6 @@ class WP_List_Table {
|
||||||
* Whether the table has items to display or not
|
* Whether the table has items to display or not
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
@ -328,7 +307,6 @@ class WP_List_Table {
|
||||||
* Message to be displayed when there are no items
|
* Message to be displayed when there are no items
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
_e( 'No items found.' );
|
_e( 'No items found.' );
|
||||||
|
@ -338,7 +316,6 @@ class WP_List_Table {
|
||||||
* Displays the search box.
|
* Displays the search box.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $text The 'submit' button label.
|
* @param string $text The 'submit' button label.
|
||||||
* @param string $input_id ID attribute value for the search input field.
|
* @param string $input_id ID attribute value for the search input field.
|
||||||
|
@ -371,7 +348,6 @@ class WP_List_Table {
|
||||||
* of views available on this table.
|
* of views available on this table.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -383,7 +359,6 @@ class WP_List_Table {
|
||||||
* Display the list of views available on this table.
|
* Display the list of views available on this table.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function views() {
|
public function views() {
|
||||||
$views = $this->get_views();
|
$views = $this->get_views();
|
||||||
|
@ -417,7 +392,6 @@ class WP_List_Table {
|
||||||
* of bulk actions available on this table.
|
* of bulk actions available on this table.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -429,7 +403,6 @@ class WP_List_Table {
|
||||||
* Display the bulk actions dropdown.
|
* Display the bulk actions dropdown.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param string $which The location of the bulk actions: 'top' or 'bottom'.
|
* @param string $which The location of the bulk actions: 'top' or 'bottom'.
|
||||||
* This is designated as optional for backward compatibility.
|
* This is designated as optional for backward compatibility.
|
||||||
|
@ -478,7 +451,6 @@ class WP_List_Table {
|
||||||
* Get the current action selected from the bulk actions dropdown.
|
* Get the current action selected from the bulk actions dropdown.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return string|false The action name or False if no action was selected
|
* @return string|false The action name or False if no action was selected
|
||||||
*/
|
*/
|
||||||
|
@ -499,7 +471,6 @@ class WP_List_Table {
|
||||||
* Generate row actions div
|
* Generate row actions div
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param array $actions The list of actions
|
* @param array $actions The list of actions
|
||||||
* @param bool $always_visible Whether the actions should be always visible
|
* @param bool $always_visible Whether the actions should be always visible
|
||||||
|
@ -529,7 +500,6 @@ class WP_List_Table {
|
||||||
* Display a monthly dropdown for filtering items
|
* Display a monthly dropdown for filtering items
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb
|
||||||
* @global WP_Locale $wp_locale
|
* @global WP_Locale $wp_locale
|
||||||
|
@ -610,7 +580,6 @@ class WP_List_Table {
|
||||||
* Display a view switcher
|
* Display a view switcher
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param string $current_mode
|
* @param string $current_mode
|
||||||
*/
|
*/
|
||||||
|
@ -639,7 +608,6 @@ class WP_List_Table {
|
||||||
* Display a comment count bubble
|
* Display a comment count bubble
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param int $post_id The post ID.
|
* @param int $post_id The post ID.
|
||||||
* @param int $pending_comments Number of pending comments.
|
* @param int $pending_comments Number of pending comments.
|
||||||
|
@ -691,7 +659,6 @@ class WP_List_Table {
|
||||||
* Get the current page number
|
* Get the current page number
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
|
@ -708,7 +675,6 @@ class WP_List_Table {
|
||||||
* Get number of items to display on a single page
|
* Get number of items to display on a single page
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param string $option
|
* @param string $option
|
||||||
* @param int $default
|
* @param int $default
|
||||||
|
@ -739,7 +705,6 @@ class WP_List_Table {
|
||||||
* Display the pagination.
|
* Display the pagination.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param string $which
|
* @param string $which
|
||||||
*/
|
*/
|
||||||
|
@ -864,7 +829,6 @@ class WP_List_Table {
|
||||||
* 'internal-name' => 'Title'
|
* 'internal-name' => 'Title'
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
* @abstract
|
* @abstract
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -882,7 +846,6 @@ class WP_List_Table {
|
||||||
* The second format will make the initial sorting order be descending
|
* The second format will make the initial sorting order be descending
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -894,7 +857,6 @@ class WP_List_Table {
|
||||||
* Gets the name of the default primary column.
|
* Gets the name of the default primary column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string Name of the default primary column, in this case, an empty string.
|
* @return string Name of the default primary column, in this case, an empty string.
|
||||||
*/
|
*/
|
||||||
|
@ -924,7 +886,6 @@ class WP_List_Table {
|
||||||
* Public wrapper for WP_List_Table::get_default_primary_column_name().
|
* Public wrapper for WP_List_Table::get_default_primary_column_name().
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return string Name of the default primary column.
|
* @return string Name of the default primary column.
|
||||||
*/
|
*/
|
||||||
|
@ -936,7 +897,6 @@ class WP_List_Table {
|
||||||
* Gets the name of the primary column.
|
* Gets the name of the primary column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string The name of the primary column.
|
* @return string The name of the primary column.
|
||||||
*/
|
*/
|
||||||
|
@ -971,7 +931,6 @@ class WP_List_Table {
|
||||||
* Get a list of all, hidden and sortable columns, with filter applied
|
* Get a list of all, hidden and sortable columns, with filter applied
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -1026,7 +985,6 @@ class WP_List_Table {
|
||||||
* Return number of visible columns
|
* Return number of visible columns
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
|
@ -1040,7 +998,6 @@ class WP_List_Table {
|
||||||
* Print column headers, accounting for hidden and sortable columns.
|
* Print column headers, accounting for hidden and sortable columns.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @staticvar int $cb_counter
|
* @staticvar int $cb_counter
|
||||||
*
|
*
|
||||||
|
@ -1118,7 +1075,6 @@ class WP_List_Table {
|
||||||
* Display the table
|
* Display the table
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display() {
|
public function display() {
|
||||||
$singular = $this->_args['singular'];
|
$singular = $this->_args['singular'];
|
||||||
|
@ -1156,7 +1112,6 @@ class WP_List_Table {
|
||||||
* Get a list of CSS classes for the WP_List_Table table tag.
|
* Get a list of CSS classes for the WP_List_Table table tag.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return array List of CSS classes for the table tag.
|
* @return array List of CSS classes for the table tag.
|
||||||
*/
|
*/
|
||||||
|
@ -1168,7 +1123,6 @@ class WP_List_Table {
|
||||||
* Generate the table navigation above or below the table
|
* Generate the table navigation above or below the table
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
* @param string $which
|
* @param string $which
|
||||||
*/
|
*/
|
||||||
protected function display_tablenav( $which ) {
|
protected function display_tablenav( $which ) {
|
||||||
|
@ -1196,7 +1150,6 @@ class WP_List_Table {
|
||||||
* Extra controls to be displayed between bulk actions and pagination
|
* Extra controls to be displayed between bulk actions and pagination
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param string $which
|
* @param string $which
|
||||||
*/
|
*/
|
||||||
|
@ -1206,7 +1159,6 @@ class WP_List_Table {
|
||||||
* Generate the tbody element for the list table.
|
* Generate the tbody element for the list table.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display_rows_or_placeholder() {
|
public function display_rows_or_placeholder() {
|
||||||
if ( $this->has_items() ) {
|
if ( $this->has_items() ) {
|
||||||
|
@ -1222,7 +1174,6 @@ class WP_List_Table {
|
||||||
* Generate the table rows
|
* Generate the table rows
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display_rows() {
|
public function display_rows() {
|
||||||
foreach ( $this->items as $item )
|
foreach ( $this->items as $item )
|
||||||
|
@ -1233,7 +1184,6 @@ class WP_List_Table {
|
||||||
* Generates content for a single row of the table
|
* Generates content for a single row of the table
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param object $item The current item
|
* @param object $item The current item
|
||||||
*/
|
*/
|
||||||
|
@ -1260,7 +1210,6 @@ class WP_List_Table {
|
||||||
* Generates the columns for a single row of the table
|
* Generates the columns for a single row of the table
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param object $item The current item
|
* @param object $item The current item
|
||||||
*/
|
*/
|
||||||
|
@ -1313,7 +1262,6 @@ class WP_List_Table {
|
||||||
* Generates and display row actions links for the list table.
|
* Generates and display row actions links for the list table.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param object $item The item being acted upon.
|
* @param object $item The item being acted upon.
|
||||||
* @param string $column_name Current column name.
|
* @param string $column_name Current column name.
|
||||||
|
@ -1328,7 +1276,6 @@ class WP_List_Table {
|
||||||
* Handle an incoming ajax request (called from admin-ajax.php)
|
* Handle an incoming ajax request (called from admin-ajax.php)
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function ajax_response() {
|
public function ajax_response() {
|
||||||
$this->prepare_items();
|
$this->prepare_items();
|
||||||
|
@ -1361,7 +1308,6 @@ class WP_List_Table {
|
||||||
/**
|
/**
|
||||||
* Send required variables to JavaScript land
|
* Send required variables to JavaScript land
|
||||||
*
|
*
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function _js_vars() {
|
public function _js_vars() {
|
||||||
$args = array(
|
$args = array(
|
||||||
|
|
|
@ -21,7 +21,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @var array
|
* @var array
|
||||||
* @access protected
|
|
||||||
*/
|
*/
|
||||||
protected $comment_pending_count = array();
|
protected $comment_pending_count = array();
|
||||||
|
|
||||||
|
@ -33,7 +32,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
|
@ -210,7 +208,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
_e( 'No media files found.' );
|
_e( 'No media files found.' );
|
||||||
|
@ -341,7 +338,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
* Handles the checkbox column output.
|
* Handles the checkbox column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -358,7 +354,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
* Handles the title column output.
|
* Handles the title column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -405,7 +400,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
* Handles the author column output.
|
* Handles the author column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -420,7 +414,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
* Handles the description column output.
|
* Handles the description column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -432,7 +425,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
* Handles the date column output.
|
* Handles the date column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -460,7 +452,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
* Handles the parent column output.
|
* Handles the parent column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -521,7 +512,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
* Handles the comments column output.
|
* Handles the comments column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -543,7 +533,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
* Handles output for the default column.
|
* Handles output for the default column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
* @param string $column_name Current column name.
|
* @param string $column_name Current column name.
|
||||||
|
@ -629,7 +618,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
* Gets the name of the default primary column.
|
* Gets the name of the default primary column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string Name of the default primary column, in this case, 'title'.
|
* @return string Name of the default primary column, in this case, 'title'.
|
||||||
*/
|
*/
|
||||||
|
@ -764,7 +752,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
* Generates and displays row action links.
|
* Generates and displays row action links.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param object $post Attachment being acted upon.
|
* @param object $post Attachment being acted upon.
|
||||||
* @param string $column_name Current column name.
|
* @param string $column_name Current column name.
|
||||||
|
|
|
@ -21,7 +21,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Site status list.
|
* Site status list.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
public $status_list;
|
public $status_list;
|
||||||
|
@ -30,7 +29,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
|
@ -186,7 +184,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
_e( 'No sites found.' );
|
_e( 'No sites found.' );
|
||||||
|
@ -262,7 +259,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Handles the checkbox column output.
|
* Handles the checkbox column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $blog Current site.
|
* @param array $blog Current site.
|
||||||
*/
|
*/
|
||||||
|
@ -281,7 +277,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Handles the ID column output.
|
* Handles the ID column output.
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $blog Current site.
|
* @param array $blog Current site.
|
||||||
*/
|
*/
|
||||||
|
@ -293,7 +288,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Handles the site name column output.
|
* Handles the site name column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global string $mode List table view mode.
|
* @global string $mode List table view mode.
|
||||||
*
|
*
|
||||||
|
@ -347,7 +341,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Handles the lastupdated column output.
|
* Handles the lastupdated column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global string $mode List table view mode.
|
* @global string $mode List table view mode.
|
||||||
*
|
*
|
||||||
|
@ -369,7 +362,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Handles the registered column output.
|
* Handles the registered column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global string $mode List table view mode.
|
* @global string $mode List table view mode.
|
||||||
*
|
*
|
||||||
|
@ -395,7 +387,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Handles the users column output.
|
* Handles the users column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $blog Current site.
|
* @param array $blog Current site.
|
||||||
*/
|
*/
|
||||||
|
@ -419,7 +410,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Handles the plugins column output.
|
* Handles the plugins column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $blog Current site.
|
* @param array $blog Current site.
|
||||||
*/
|
*/
|
||||||
|
@ -442,7 +432,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Handles output for the default column.
|
* Handles output for the default column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $blog Current site.
|
* @param array $blog Current site.
|
||||||
* @param string $column_name Current column name.
|
* @param string $column_name Current column name.
|
||||||
|
@ -487,7 +476,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Gets the name of the default primary column.
|
* Gets the name of the default primary column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string Name of the default primary column, in this case, 'blogname'.
|
* @return string Name of the default primary column, in this case, 'blogname'.
|
||||||
*/
|
*/
|
||||||
|
@ -499,7 +487,6 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
* Generates and displays row action links.
|
* Generates and displays row action links.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param object $blog Site being acted upon.
|
* @param object $blog Site being acted upon.
|
||||||
* @param string $column_name Current column name.
|
* @param string $column_name Current column name.
|
||||||
|
|
|
@ -26,7 +26,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
|
@ -227,7 +226,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
if ( $this->has_items ) {
|
if ( $this->has_items ) {
|
||||||
|
@ -263,7 +261,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||||
* Gets the name of the primary column.
|
* Gets the name of the primary column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string Unalterable name of the primary column name, in this case, 'name'.
|
* @return string Unalterable name of the primary column name, in this case, 'name'.
|
||||||
*/
|
*/
|
||||||
|
@ -343,7 +340,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display_rows() {
|
public function display_rows() {
|
||||||
foreach ( $this->items as $theme )
|
foreach ( $this->items as $theme )
|
||||||
|
@ -354,7 +350,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||||
* Handles the checkbox column output.
|
* Handles the checkbox column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Theme $theme The current WP_Theme object.
|
* @param WP_Theme $theme The current WP_Theme object.
|
||||||
*/
|
*/
|
||||||
|
@ -370,7 +365,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||||
* Handles the name column output.
|
* Handles the name column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global string $status
|
* @global string $status
|
||||||
* @global int $page
|
* @global int $page
|
||||||
|
@ -512,7 +506,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||||
* Handles the description column output.
|
* Handles the description column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global string $status
|
* @global string $status
|
||||||
* @global array $totals
|
* @global array $totals
|
||||||
|
@ -580,7 +573,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||||
* Handles default column output.
|
* Handles default column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Theme $theme The current WP_Theme object.
|
* @param WP_Theme $theme The current WP_Theme object.
|
||||||
* @param string $column_name The current column name.
|
* @param string $column_name The current column name.
|
||||||
|
@ -604,7 +596,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||||
* Handles the output for a single table row.
|
* Handles the output for a single table row.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Theme $item The current WP_Theme object.
|
* @param WP_Theme $item The current WP_Theme object.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -117,7 +117,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
_e( 'No users found.' );
|
_e( 'No users found.' );
|
||||||
|
@ -200,7 +199,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
* Handles the checkbox column output.
|
* Handles the checkbox column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_User $user The current WP_User object.
|
* @param WP_User $user The current WP_User object.
|
||||||
*/
|
*/
|
||||||
|
@ -218,7 +216,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
* Handles the ID column output.
|
* Handles the ID column output.
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_User $user The current WP_User object.
|
* @param WP_User $user The current WP_User object.
|
||||||
*/
|
*/
|
||||||
|
@ -230,7 +227,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
* Handles the username column output.
|
* Handles the username column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_User $user The current WP_User object.
|
* @param WP_User $user The current WP_User object.
|
||||||
*/
|
*/
|
||||||
|
@ -253,7 +249,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
* Handles the name column output.
|
* Handles the name column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_User $user The current WP_User object.
|
* @param WP_User $user The current WP_User object.
|
||||||
*/
|
*/
|
||||||
|
@ -269,7 +264,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
* Handles the email column output.
|
* Handles the email column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_User $user The current WP_User object.
|
* @param WP_User $user The current WP_User object.
|
||||||
*/
|
*/
|
||||||
|
@ -281,7 +275,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
* Handles the registered date column output.
|
* Handles the registered date column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global string $mode List table view mode.
|
* @global string $mode List table view mode.
|
||||||
*
|
*
|
||||||
|
@ -299,7 +292,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param WP_User $user
|
* @param WP_User $user
|
||||||
* @param string $classes
|
* @param string $classes
|
||||||
|
@ -317,7 +309,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
* Handles the sites column output.
|
* Handles the sites column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_User $user The current WP_User object.
|
* @param WP_User $user The current WP_User object.
|
||||||
*/
|
*/
|
||||||
|
@ -382,7 +373,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
* Handles the default column output.
|
* Handles the default column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_User $user The current WP_User object.
|
* @param WP_User $user The current WP_User object.
|
||||||
* @param string $column_name The current column name.
|
* @param string $column_name The current column name.
|
||||||
|
@ -416,7 +406,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
* Gets the name of the default primary column.
|
* Gets the name of the default primary column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string Name of the default primary column, in this case, 'username'.
|
* @return string Name of the default primary column, in this case, 'username'.
|
||||||
*/
|
*/
|
||||||
|
@ -428,7 +417,6 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
* Generates and displays row action links.
|
* Generates and displays row action links.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param object $user User being acted upon.
|
* @param object $user User being acted upon.
|
||||||
* @param string $column_name Current column name.
|
* @param string $column_name Current column name.
|
||||||
|
|
|
@ -39,7 +39,6 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||||
* within get_plugins().
|
* within get_plugins().
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -228,7 +227,6 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
if ( isset( $this->error ) ) {
|
if ( isset( $this->error ) ) {
|
||||||
|
|
|
@ -21,7 +21,6 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
|
@ -346,7 +345,6 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||||
* Displays the search box.
|
* Displays the search box.
|
||||||
*
|
*
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $text The 'submit' button label.
|
* @param string $text The 'submit' button label.
|
||||||
* @param string $input_id ID attribute value for the search input field.
|
* @param string $input_id ID attribute value for the search input field.
|
||||||
|
@ -864,7 +862,6 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||||
* Gets the name of the primary column for this specific list table.
|
* Gets the name of the primary column for this specific list table.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string Unalterable name for the primary column, in this case, 'name'.
|
* @return string Unalterable name for the primary column, in this case, 'name'.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -22,7 +22,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @var bool
|
* @var bool
|
||||||
* @access protected
|
|
||||||
*/
|
*/
|
||||||
protected $hierarchical_display;
|
protected $hierarchical_display;
|
||||||
|
|
||||||
|
@ -31,7 +30,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @var array
|
* @var array
|
||||||
* @access protected
|
|
||||||
*/
|
*/
|
||||||
protected $comment_pending_count;
|
protected $comment_pending_count;
|
||||||
|
|
||||||
|
@ -40,7 +38,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @var int
|
* @var int
|
||||||
* @access private
|
|
||||||
*/
|
*/
|
||||||
private $user_posts_count;
|
private $user_posts_count;
|
||||||
|
|
||||||
|
@ -49,7 +46,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @var int
|
* @var int
|
||||||
* @access private
|
|
||||||
*/
|
*/
|
||||||
private $sticky_posts_count = 0;
|
private $sticky_posts_count = 0;
|
||||||
|
|
||||||
|
@ -59,7 +55,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Current level for output.
|
* Current level for output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $current_level = 0;
|
protected $current_level = 0;
|
||||||
|
@ -68,7 +63,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
|
@ -196,7 +190,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
if ( isset( $_REQUEST['post_status'] ) && 'trash' === $_REQUEST['post_status'] )
|
if ( isset( $_REQUEST['post_status'] ) && 'trash' === $_REQUEST['post_status'] )
|
||||||
|
@ -229,7 +222,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Helper to create links to edit.php with params.
|
* Helper to create links to edit.php with params.
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param array $args URL parameters for the link.
|
* @param array $args URL parameters for the link.
|
||||||
* @param string $label Link text.
|
* @param string $label Link text.
|
||||||
|
@ -415,7 +407,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Displays a categories drop-down for filtering on the Posts list table.
|
* Displays a categories drop-down for filtering on the Posts list table.
|
||||||
*
|
*
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @global int $cat Currently selected category.
|
* @global int $cat Currently selected category.
|
||||||
*
|
*
|
||||||
|
@ -826,7 +817,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Handles the checkbox column output.
|
* Handles the checkbox column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -851,7 +841,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post
|
* @param WP_Post $post
|
||||||
* @param string $classes
|
* @param string $classes
|
||||||
|
@ -869,7 +858,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Handles the title column output.
|
* Handles the title column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global string $mode List table view mode.
|
* @global string $mode List table view mode.
|
||||||
*
|
*
|
||||||
|
@ -966,7 +954,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Handles the post date column output.
|
* Handles the post date column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global string $mode List table view mode.
|
* @global string $mode List table view mode.
|
||||||
*
|
*
|
||||||
|
@ -1047,7 +1034,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Handles the comments column output.
|
* Handles the comments column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -1067,7 +1053,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Handles the post author column output.
|
* Handles the post author column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -1083,7 +1068,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Handles the default column output.
|
* Handles the default column output.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post The current WP_Post object.
|
* @param WP_Post $post The current WP_Post object.
|
||||||
* @param string $column_name The current column name.
|
* @param string $column_name The current column name.
|
||||||
|
@ -1209,7 +1193,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Gets the name of the default primary column.
|
* Gets the name of the default primary column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string Name of the default primary column, in this case, 'title'.
|
* @return string Name of the default primary column, in this case, 'title'.
|
||||||
*/
|
*/
|
||||||
|
@ -1221,7 +1204,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
* Generates and displays row action links.
|
* Generates and displays row action links.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param object $post Post being acted upon.
|
* @param object $post Post being acted upon.
|
||||||
* @param string $column_name Current column name.
|
* @param string $column_name Current column name.
|
||||||
|
|
|
@ -27,7 +27,6 @@ class WP_Press_This {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function __construct() {}
|
public function __construct() {}
|
||||||
|
|
||||||
|
@ -35,7 +34,6 @@ class WP_Press_This {
|
||||||
* App and site settings data, including i18n strings for the client-side.
|
* App and site settings data, including i18n strings for the client-side.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return array Site settings.
|
* @return array Site settings.
|
||||||
*/
|
*/
|
||||||
|
@ -56,7 +54,6 @@ class WP_Press_This {
|
||||||
* Get the source's images and save them locally, for posterity, unless we can't.
|
* Get the source's images and save them locally, for posterity, unless we can't.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param int $post_id Post ID.
|
* @param int $post_id Post ID.
|
||||||
* @param string $content Optional. Current expected markup for Press This. Expects slashed. Default empty.
|
* @param string $content Optional. Current expected markup for Press This. Expects slashed. Default empty.
|
||||||
|
@ -99,7 +96,6 @@ class WP_Press_This {
|
||||||
* Ajax handler for saving the post as draft or published.
|
* Ajax handler for saving the post as draft or published.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function save_post() {
|
public function save_post() {
|
||||||
if ( empty( $_POST['post_ID'] ) || ! $post_id = (int) $_POST['post_ID'] ) {
|
if ( empty( $_POST['post_ID'] ) || ! $post_id = (int) $_POST['post_ID'] ) {
|
||||||
|
@ -210,7 +206,6 @@ class WP_Press_This {
|
||||||
* Ajax handler for adding a new category.
|
* Ajax handler for adding a new category.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function add_category() {
|
public function add_category() {
|
||||||
if ( false === wp_verify_nonce( $_POST['new_cat_nonce'], 'add-category' ) ) {
|
if ( false === wp_verify_nonce( $_POST['new_cat_nonce'], 'add-category' ) ) {
|
||||||
|
@ -279,7 +274,6 @@ class WP_Press_This {
|
||||||
* Downloads the source's HTML via server-side call for the given URL.
|
* Downloads the source's HTML via server-side call for the given URL.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $url URL to scan.
|
* @param string $url URL to scan.
|
||||||
* @return string Source's HTML sanitized markup
|
* @return string Source's HTML sanitized markup
|
||||||
|
@ -562,7 +556,6 @@ class WP_Press_This {
|
||||||
* Fetches and parses _meta, _images, and _links data from the source.
|
* Fetches and parses _meta, _images, and _links data from the source.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $url URL to scan.
|
* @param string $url URL to scan.
|
||||||
* @param array $data Optional. Existing data array if you have one. Default empty array.
|
* @param array $data Optional. Existing data array if you have one. Default empty array.
|
||||||
|
@ -672,7 +665,6 @@ class WP_Press_This {
|
||||||
* Handles backward-compat with the legacy version of Press This by supporting its query string params.
|
* Handles backward-compat with the legacy version of Press This by supporting its query string params.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -798,7 +790,6 @@ class WP_Press_This {
|
||||||
* Adds another stylesheet inside TinyMCE.
|
* Adds another stylesheet inside TinyMCE.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $styles URL to editor stylesheet.
|
* @param string $styles URL to editor stylesheet.
|
||||||
* @return string Possibly modified stylesheets list.
|
* @return string Possibly modified stylesheets list.
|
||||||
|
@ -820,7 +811,6 @@ class WP_Press_This {
|
||||||
* Outputs the post format selection HTML.
|
* Outputs the post format selection HTML.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post Post object.
|
* @param WP_Post $post Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -868,7 +858,6 @@ class WP_Press_This {
|
||||||
* Outputs the categories HTML.
|
* Outputs the categories HTML.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post Post object.
|
* @param WP_Post $post Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -926,7 +915,6 @@ class WP_Press_This {
|
||||||
* Outputs the tags HTML.
|
* Outputs the tags HTML.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Post $post Post object.
|
* @param WP_Post $post Post object.
|
||||||
*/
|
*/
|
||||||
|
@ -977,7 +965,6 @@ class WP_Press_This {
|
||||||
* Get a list of embeds with no duplicates.
|
* Get a list of embeds with no duplicates.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $data The site's data.
|
* @param array $data The site's data.
|
||||||
* @return array Embeds selected to be available.
|
* @return array Embeds selected to be available.
|
||||||
|
@ -1010,7 +997,6 @@ class WP_Press_This {
|
||||||
* Get a list of images with no duplicates.
|
* Get a list of images with no duplicates.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $data The site's data.
|
* @param array $data The site's data.
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -1044,7 +1030,6 @@ class WP_Press_This {
|
||||||
* Gets the source page's canonical link, based on passed location and meta data.
|
* Gets the source page's canonical link, based on passed location and meta data.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $data The site's data.
|
* @param array $data The site's data.
|
||||||
* @return string Discovered canonical URL, or empty
|
* @return string Discovered canonical URL, or empty
|
||||||
|
@ -1075,7 +1060,6 @@ class WP_Press_This {
|
||||||
* Gets the source page's site name, based on passed meta data.
|
* Gets the source page's site name, based on passed meta data.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $data The site's data.
|
* @param array $data The site's data.
|
||||||
* @return string Discovered site name, or empty
|
* @return string Discovered site name, or empty
|
||||||
|
@ -1098,7 +1082,6 @@ class WP_Press_This {
|
||||||
* Gets the source page's title, based on passed title and meta data.
|
* Gets the source page's title, based on passed title and meta data.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $data The site's data.
|
* @param array $data The site's data.
|
||||||
* @return string Discovered page title, or empty
|
* @return string Discovered page title, or empty
|
||||||
|
@ -1127,7 +1110,6 @@ class WP_Press_This {
|
||||||
* Features a blockquoted excerpt, as well as content attribution, if any.
|
* Features a blockquoted excerpt, as well as content attribution, if any.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $data The site's data.
|
* @param array $data The site's data.
|
||||||
* @return string Discovered content, or empty
|
* @return string Discovered content, or empty
|
||||||
|
@ -1212,7 +1194,6 @@ class WP_Press_This {
|
||||||
* Serves the app's base HTML, which in turns calls the load script.
|
* Serves the app's base HTML, which in turns calls the load script.
|
||||||
*
|
*
|
||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Locale $wp_locale
|
* @global WP_Locale $wp_locale
|
||||||
* @global bool $is_IE
|
* @global bool $is_IE
|
||||||
|
|
|
@ -18,7 +18,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var string
|
* @var string
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $action;
|
public $action;
|
||||||
|
|
||||||
|
@ -28,7 +27,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var string
|
* @var string
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $base;
|
public $base;
|
||||||
|
|
||||||
|
@ -37,7 +35,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
* @var int
|
* @var int
|
||||||
* @access private
|
|
||||||
*/
|
*/
|
||||||
private $columns = 0;
|
private $columns = 0;
|
||||||
|
|
||||||
|
@ -46,7 +43,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var string
|
* @var string
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
|
@ -55,7 +51,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.5.0
|
* @since 3.5.0
|
||||||
* @var string
|
* @var string
|
||||||
* @access protected
|
|
||||||
*/
|
*/
|
||||||
protected $in_admin;
|
protected $in_admin;
|
||||||
|
|
||||||
|
@ -67,7 +62,6 @@ final class WP_Screen {
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @deprecated 3.5.0
|
* @deprecated 3.5.0
|
||||||
* @var bool
|
* @var bool
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $is_network;
|
public $is_network;
|
||||||
|
|
||||||
|
@ -79,7 +73,6 @@ final class WP_Screen {
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @deprecated 3.5.0
|
* @deprecated 3.5.0
|
||||||
* @var bool
|
* @var bool
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $is_user;
|
public $is_user;
|
||||||
|
|
||||||
|
@ -90,7 +83,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var string
|
* @var string
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $parent_base;
|
public $parent_base;
|
||||||
|
|
||||||
|
@ -100,7 +92,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var string
|
* @var string
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $parent_file;
|
public $parent_file;
|
||||||
|
|
||||||
|
@ -111,7 +102,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var string
|
* @var string
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $post_type;
|
public $post_type;
|
||||||
|
|
||||||
|
@ -120,7 +110,6 @@ final class WP_Screen {
|
||||||
* The 'edit-tags.php?taxonomy=category' screen has a taxonomy of 'category'.
|
* The 'edit-tags.php?taxonomy=category' screen has a taxonomy of 'category'.
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var string
|
* @var string
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public $taxonomy;
|
public $taxonomy;
|
||||||
|
|
||||||
|
@ -129,7 +118,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var array
|
* @var array
|
||||||
* @access private
|
|
||||||
*/
|
*/
|
||||||
private $_help_tabs = array();
|
private $_help_tabs = array();
|
||||||
|
|
||||||
|
@ -138,7 +126,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var string
|
* @var string
|
||||||
* @access private
|
|
||||||
*/
|
*/
|
||||||
private $_help_sidebar = '';
|
private $_help_sidebar = '';
|
||||||
|
|
||||||
|
@ -146,7 +133,6 @@ final class WP_Screen {
|
||||||
* The accessible hidden headings and text associated with the screen, if any.
|
* The accessible hidden headings and text associated with the screen, if any.
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @access private
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private $_screen_reader_content = array();
|
private $_screen_reader_content = array();
|
||||||
|
@ -155,7 +141,6 @@ final class WP_Screen {
|
||||||
* Stores old string-based help.
|
* Stores old string-based help.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @access private
|
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
|
@ -166,7 +151,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var array
|
* @var array
|
||||||
* @access private
|
|
||||||
*/
|
*/
|
||||||
private $_options = array();
|
private $_options = array();
|
||||||
|
|
||||||
|
@ -176,7 +160,6 @@ final class WP_Screen {
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @access private
|
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
|
@ -187,7 +170,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var bool
|
* @var bool
|
||||||
* @access private
|
|
||||||
*/
|
*/
|
||||||
private $_show_screen_options;
|
private $_show_screen_options;
|
||||||
|
|
||||||
|
@ -196,7 +178,6 @@ final class WP_Screen {
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @var string
|
* @var string
|
||||||
* @access private
|
|
||||||
*/
|
*/
|
||||||
private $_screen_settings;
|
private $_screen_settings;
|
||||||
|
|
||||||
|
@ -204,7 +185,6 @@ final class WP_Screen {
|
||||||
* Fetches a screen object.
|
* Fetches a screen object.
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
*
|
*
|
||||||
|
@ -400,7 +380,6 @@ final class WP_Screen {
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
* @access private
|
|
||||||
*/
|
*/
|
||||||
private function __construct() {}
|
private function __construct() {}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ class WP_Site_Icon {
|
||||||
* The minimum size of the site icon.
|
* The minimum size of the site icon.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
public $min_size = 512;
|
public $min_size = 512;
|
||||||
|
@ -27,7 +26,6 @@ class WP_Site_Icon {
|
||||||
* The size to which to crop the image so that we can display it in the UI nicely.
|
* The size to which to crop the image so that we can display it in the UI nicely.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
public $page_crop = 512;
|
public $page_crop = 512;
|
||||||
|
@ -36,7 +34,6 @@ class WP_Site_Icon {
|
||||||
* List of site icon sizes.
|
* List of site icon sizes.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
public $site_icon_sizes = array(
|
public $site_icon_sizes = array(
|
||||||
|
@ -70,7 +67,6 @@ class WP_Site_Icon {
|
||||||
* Registers actions and filters.
|
* Registers actions and filters.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
add_action( 'delete_attachment', array( $this, 'delete_attachment_data' ) );
|
add_action( 'delete_attachment', array( $this, 'delete_attachment_data' ) );
|
||||||
|
@ -110,7 +106,6 @@ class WP_Site_Icon {
|
||||||
* Inserts an attachment.
|
* Inserts an attachment.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $object Attachment object.
|
* @param array $object Attachment object.
|
||||||
* @param string $file File path of the attached image.
|
* @param string $file File path of the attached image.
|
||||||
|
@ -139,7 +134,6 @@ class WP_Site_Icon {
|
||||||
* Adds additional sizes to be made when creating the site_icon images.
|
* Adds additional sizes to be made when creating the site_icon images.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $sizes List of additional sizes.
|
* @param array $sizes List of additional sizes.
|
||||||
* @return array Additional image sizes.
|
* @return array Additional image sizes.
|
||||||
|
@ -184,7 +178,6 @@ class WP_Site_Icon {
|
||||||
* Adds Site Icon sizes to the array of image sizes on demand.
|
* Adds Site Icon sizes to the array of image sizes on demand.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $sizes List of image sizes.
|
* @param array $sizes List of image sizes.
|
||||||
* @return array List of intermediate image sizes.
|
* @return array List of intermediate image sizes.
|
||||||
|
@ -203,7 +196,6 @@ class WP_Site_Icon {
|
||||||
* Deletes the Site Icon when the image file is deleted.
|
* Deletes the Site Icon when the image file is deleted.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param int $post_id Attachment ID.
|
* @param int $post_id Attachment ID.
|
||||||
*/
|
*/
|
||||||
|
@ -219,7 +211,6 @@ class WP_Site_Icon {
|
||||||
* Adds custom image sizes when meta data for an image is requested, that happens to be used as Site Icon.
|
* Adds custom image sizes when meta data for an image is requested, that happens to be used as Site Icon.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param null|array|string $value The value get_metadata() should return a single metadata value, or an
|
* @param null|array|string $value The value get_metadata() should return a single metadata value, or an
|
||||||
* array of values.
|
* array of values.
|
||||||
|
|
|
@ -25,7 +25,6 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
|
@ -72,7 +71,6 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function prepare_items() {
|
public function prepare_items() {
|
||||||
$tags_per_page = $this->get_items_per_page( 'edit_' . $this->screen->taxonomy . '_per_page' );
|
$tags_per_page = $this->get_items_per_page( 'edit_' . $this->screen->taxonomy . '_per_page' );
|
||||||
|
@ -139,7 +137,6 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
echo get_taxonomy( $this->screen->taxonomy )->labels->not_found;
|
echo get_taxonomy( $this->screen->taxonomy )->labels->not_found;
|
||||||
|
@ -206,7 +203,6 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display_rows_or_placeholder() {
|
public function display_rows_or_placeholder() {
|
||||||
$taxonomy = $this->screen->taxonomy;
|
$taxonomy = $this->screen->taxonomy;
|
||||||
|
@ -399,7 +395,6 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||||
* Gets the name of the default primary column.
|
* Gets the name of the default primary column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string Name of the default primary column, in this case, 'name'.
|
* @return string Name of the default primary column, in this case, 'name'.
|
||||||
*/
|
*/
|
||||||
|
@ -411,7 +406,6 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||||
* Generates and displays row action links.
|
* Generates and displays row action links.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param WP_Term $tag Tag being acted upon.
|
* @param WP_Term $tag Tag being acted upon.
|
||||||
* @param string $column_name Current column name.
|
* @param string $column_name Current column name.
|
||||||
|
|
|
@ -154,7 +154,6 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
_e( 'No themes match your request.' );
|
_e( 'No themes match your request.' );
|
||||||
|
@ -180,7 +179,6 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display() {
|
public function display() {
|
||||||
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
||||||
|
@ -209,7 +207,6 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display_rows() {
|
public function display_rows() {
|
||||||
$themes = $this->items;
|
$themes = $this->items;
|
||||||
|
@ -227,7 +224,6 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
|
||||||
* Prints a theme from the WordPress.org API.
|
* Prints a theme from the WordPress.org API.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global array $themes_allowedtags
|
* @global array $themes_allowedtags
|
||||||
*
|
*
|
||||||
|
@ -436,7 +432,6 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
|
||||||
* Send required variables to JavaScript land
|
* Send required variables to JavaScript land
|
||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global string $tab Current tab within Themes->Install screen
|
* @global string $tab Current tab within Themes->Install screen
|
||||||
* @global string $type Type of search.
|
* @global string $type Type of search.
|
||||||
|
@ -452,7 +447,6 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
|
||||||
* Check to see if the theme is already installed.
|
* Check to see if the theme is already installed.
|
||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
* @access private
|
|
||||||
*
|
*
|
||||||
* @param object $theme - A WordPress.org Theme API object.
|
* @param object $theme - A WordPress.org Theme API object.
|
||||||
* @return string Theme status.
|
* @return string Theme status.
|
||||||
|
|
|
@ -24,7 +24,6 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
|
@ -47,7 +46,6 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function prepare_items() {
|
public function prepare_items() {
|
||||||
$themes = wp_get_themes( array( 'allowed' => true ) );
|
$themes = wp_get_themes( array( 'allowed' => true ) );
|
||||||
|
@ -83,7 +81,6 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
if ( $this->search_terms || $this->features ) {
|
if ( $this->search_terms || $this->features ) {
|
||||||
|
@ -130,7 +127,6 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display() {
|
public function display() {
|
||||||
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
||||||
|
@ -154,7 +150,6 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display_rows_or_placeholder() {
|
public function display_rows_or_placeholder() {
|
||||||
if ( $this->has_items() ) {
|
if ( $this->has_items() ) {
|
||||||
|
@ -167,7 +162,6 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display_rows() {
|
public function display_rows() {
|
||||||
$themes = $this->items;
|
$themes = $this->items;
|
||||||
|
@ -286,7 +280,6 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||||
* Send required variables to JavaScript land
|
* Send required variables to JavaScript land
|
||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $extra_args
|
* @param array $extra_args
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -23,14 +23,12 @@ class WP_Upgrader_Skin {
|
||||||
* Holds the result of an upgrade.
|
* Holds the result of an upgrade.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
* @var string|bool|WP_Error
|
* @var string|bool|WP_Error
|
||||||
*/
|
*/
|
||||||
public $result = false;
|
public $result = false;
|
||||||
public $options = array();
|
public $options = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $args
|
* @param array $args
|
||||||
*/
|
*/
|
||||||
|
@ -40,7 +38,6 @@ class WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Upgrader $upgrader
|
* @param WP_Upgrader $upgrader
|
||||||
*/
|
*/
|
||||||
|
@ -51,7 +48,6 @@ class WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function add_strings() {
|
public function add_strings() {
|
||||||
}
|
}
|
||||||
|
@ -60,7 +56,6 @@ class WP_Upgrader_Skin {
|
||||||
* Sets the result of an upgrade.
|
* Sets the result of an upgrade.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string|bool|WP_Error $result The result of an upgrade.
|
* @param string|bool|WP_Error $result The result of an upgrade.
|
||||||
*/
|
*/
|
||||||
|
@ -74,7 +69,6 @@ class WP_Upgrader_Skin {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
|
* @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see request_filesystem_credentials()
|
* @see request_filesystem_credentials()
|
||||||
*
|
*
|
||||||
|
@ -100,7 +94,6 @@ class WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function header() {
|
public function header() {
|
||||||
if ( $this->done_header ) {
|
if ( $this->done_header ) {
|
||||||
|
@ -112,7 +105,6 @@ class WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function footer() {
|
public function footer() {
|
||||||
if ( $this->done_footer ) {
|
if ( $this->done_footer ) {
|
||||||
|
@ -123,7 +115,6 @@ class WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string|WP_Error $errors
|
* @param string|WP_Error $errors
|
||||||
*/
|
*/
|
||||||
|
@ -143,7 +134,6 @@ class WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $string
|
* @param string $string
|
||||||
*/
|
*/
|
||||||
|
@ -166,12 +156,10 @@ class WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function before() {}
|
public function before() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function after() {}
|
public function after() {}
|
||||||
|
|
||||||
|
@ -179,7 +167,6 @@ class WP_Upgrader_Skin {
|
||||||
* Output JavaScript that calls function to decrement the update counts.
|
* Output JavaScript that calls function to decrement the update counts.
|
||||||
*
|
*
|
||||||
* @since 3.9.0
|
* @since 3.9.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param string $type Type of update count to decrement. Likely values include 'plugin',
|
* @param string $type Type of update count to decrement. Likely values include 'plugin',
|
||||||
* 'theme', 'translation', etc.
|
* 'theme', 'translation', etc.
|
||||||
|
@ -207,12 +194,10 @@ class WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function bulk_header() {}
|
public function bulk_header() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function bulk_footer() {}
|
public function bulk_footer() {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,6 @@ class WP_Upgrader {
|
||||||
* The error/notification strings used to update the user on the progress.
|
* The error/notification strings used to update the user on the progress.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
* @var array $strings
|
* @var array $strings
|
||||||
*/
|
*/
|
||||||
public $strings = array();
|
public $strings = array();
|
||||||
|
@ -63,7 +62,6 @@ class WP_Upgrader {
|
||||||
* The upgrader skin being used.
|
* The upgrader skin being used.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
* @var Automatic_Upgrader_Skin|WP_Upgrader_Skin $skin
|
* @var Automatic_Upgrader_Skin|WP_Upgrader_Skin $skin
|
||||||
*/
|
*/
|
||||||
public $skin = null;
|
public $skin = null;
|
||||||
|
@ -77,7 +75,6 @@ class WP_Upgrader {
|
||||||
* it.
|
* it.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @var WP_Error|array $result {
|
* @var WP_Error|array $result {
|
||||||
* @type string $source The full path to the source the files were installed from.
|
* @type string $source The full path to the source the files were installed from.
|
||||||
|
@ -100,7 +97,6 @@ class WP_Upgrader {
|
||||||
* Set by the bulk update methods.
|
* Set by the bulk update methods.
|
||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @access public
|
|
||||||
* @var int $update_count
|
* @var int $update_count
|
||||||
*/
|
*/
|
||||||
public $update_count = 0;
|
public $update_count = 0;
|
||||||
|
@ -111,7 +107,6 @@ class WP_Upgrader {
|
||||||
* Used by the bulk update methods, and incremented for each update.
|
* Used by the bulk update methods, and incremented for each update.
|
||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @access public
|
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
public $update_current = 0;
|
public $update_current = 0;
|
||||||
|
@ -120,7 +115,6 @@ class WP_Upgrader {
|
||||||
* Construct the upgrader with a skin.
|
* Construct the upgrader with a skin.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_Upgrader_Skin $skin The upgrader skin to use. Default is a WP_Upgrader_Skin.
|
* @param WP_Upgrader_Skin $skin The upgrader skin to use. Default is a WP_Upgrader_Skin.
|
||||||
* instance.
|
* instance.
|
||||||
|
@ -139,7 +133,6 @@ class WP_Upgrader {
|
||||||
* and also add the generic strings to `WP_Upgrader::$strings`.
|
* and also add the generic strings to `WP_Upgrader::$strings`.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function init() {
|
public function init() {
|
||||||
$this->skin->set_upgrader($this);
|
$this->skin->set_upgrader($this);
|
||||||
|
@ -150,7 +143,6 @@ class WP_Upgrader {
|
||||||
* Add the generic strings to WP_Upgrader::$strings.
|
* Add the generic strings to WP_Upgrader::$strings.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function generic_strings() {
|
public function generic_strings() {
|
||||||
$this->strings['bad_request'] = __('Invalid data provided.');
|
$this->strings['bad_request'] = __('Invalid data provided.');
|
||||||
|
@ -179,7 +171,6 @@ class WP_Upgrader {
|
||||||
* Connect to the filesystem.
|
* Connect to the filesystem.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
*
|
*
|
||||||
|
@ -243,7 +234,6 @@ class WP_Upgrader {
|
||||||
* Download a package.
|
* Download a package.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param string $package The URI of the package. If this is the full path to an
|
* @param string $package The URI of the package. If this is the full path to an
|
||||||
* existing local file, it will be returned untouched.
|
* existing local file, it will be returned untouched.
|
||||||
|
@ -286,7 +276,6 @@ class WP_Upgrader {
|
||||||
* Unpack a compressed package file.
|
* Unpack a compressed package file.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
*
|
*
|
||||||
|
@ -338,7 +327,6 @@ class WP_Upgrader {
|
||||||
* Clears the directory where this item is going to be installed into.
|
* Clears the directory where this item is going to be installed into.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
*
|
*
|
||||||
|
@ -402,7 +390,6 @@ class WP_Upgrader {
|
||||||
* clear out the destination folder if it already exists.
|
* clear out the destination folder if it already exists.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
* @global array $wp_theme_directories
|
* @global array $wp_theme_directories
|
||||||
|
@ -610,7 +597,6 @@ class WP_Upgrader {
|
||||||
* install it in the destination folder.
|
* install it in the destination folder.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param array $options {
|
* @param array $options {
|
||||||
* Array or string of arguments for upgrading/installing a package.
|
* Array or string of arguments for upgrading/installing a package.
|
||||||
|
@ -802,7 +788,6 @@ class WP_Upgrader {
|
||||||
* Creates/deletes the maintenance file to enable/disable maintenance mode.
|
* Creates/deletes the maintenance file to enable/disable maintenance mode.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||||
*
|
*
|
||||||
|
|
|
@ -21,7 +21,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Site ID to generate the Users list table for.
|
* Site ID to generate the Users list table for.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
public $site_id;
|
public $site_id;
|
||||||
|
@ -30,7 +29,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Whether or not the current Users list table is for Multisite.
|
* Whether or not the current Users list table is for Multisite.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
public $is_site_users;
|
public $is_site_users;
|
||||||
|
@ -39,7 +37,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
|
@ -62,7 +59,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Check the current user's permissions.
|
* Check the current user's permissions.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
@ -77,7 +73,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Prepare the users list for display.
|
* Prepare the users list for display.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @global string $role
|
* @global string $role
|
||||||
* @global string $usersearch
|
* @global string $usersearch
|
||||||
|
@ -149,7 +144,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Output 'no users' message.
|
* Output 'no users' message.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function no_items() {
|
public function no_items() {
|
||||||
_e( 'No users found.' );
|
_e( 'No users found.' );
|
||||||
|
@ -163,7 +157,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Filtersing of the user table.
|
* Filtersing of the user table.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @global string $role
|
* @global string $role
|
||||||
*
|
*
|
||||||
|
@ -229,7 +222,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Retrieve an associative array of bulk actions available on this table.
|
* Retrieve an associative array of bulk actions available on this table.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return array Array of bulk actions.
|
* @return array Array of bulk actions.
|
||||||
*/
|
*/
|
||||||
|
@ -251,7 +243,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Output the controls to allow user roles to be changed in bulk.
|
* Output the controls to allow user roles to be changed in bulk.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param string $which Whether this is being invoked above ("top")
|
* @param string $which Whether this is being invoked above ("top")
|
||||||
* or below the table ("bottom").
|
* or below the table ("bottom").
|
||||||
|
@ -302,7 +293,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* the role change drop-down.
|
* the role change drop-down.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return string The bulk action required.
|
* @return string The bulk action required.
|
||||||
*/
|
*/
|
||||||
|
@ -319,7 +309,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Get a list of columns for the list table.
|
* Get a list of columns for the list table.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @return array Array in which the key is the ID of the column,
|
* @return array Array in which the key is the ID of the column,
|
||||||
* and the value is the description.
|
* and the value is the description.
|
||||||
|
@ -344,7 +333,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Get a list of sortable columns for the list table.
|
* Get a list of sortable columns for the list table.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return array Array of sortable columns.
|
* @return array Array of sortable columns.
|
||||||
*/
|
*/
|
||||||
|
@ -361,7 +349,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Generate the list table rows.
|
* Generate the list table rows.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
public function display_rows() {
|
public function display_rows() {
|
||||||
// Query the post counts for this page
|
// Query the post counts for this page
|
||||||
|
@ -379,7 +366,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @since 4.2.0 The `$style` parameter was deprecated.
|
* @since 4.2.0 The `$style` parameter was deprecated.
|
||||||
* @since 4.4.0 The `$role` parameter was deprecated.
|
* @since 4.4.0 The `$role` parameter was deprecated.
|
||||||
* @access public
|
|
||||||
*
|
*
|
||||||
* @param WP_User $user_object The current user object.
|
* @param WP_User $user_object The current user object.
|
||||||
* @param string $style Deprecated. Not used.
|
* @param string $style Deprecated. Not used.
|
||||||
|
@ -548,7 +534,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Gets the name of the default primary column.
|
* Gets the name of the default primary column.
|
||||||
*
|
*
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @return string Name of the default primary column, in this case, 'username'.
|
* @return string Name of the default primary column, in this case, 'username'.
|
||||||
*/
|
*/
|
||||||
|
@ -560,7 +545,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
* Returns an array of user roles for a given user object.
|
* Returns an array of user roles for a given user object.
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @access protected
|
|
||||||
*
|
*
|
||||||
* @param WP_User $user_object The WP_User object.
|
* @param WP_User $user_object The WP_User object.
|
||||||
* @return array An array of user roles.
|
* @return array An array of user roles.
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41160';
|
$wp_version = '4.9-alpha-41161';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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