diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index cdd1b5373a..4b381c858d 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -151,6 +151,11 @@ class WP_Comments_List_Table extends WP_List_Table { ) ); } + /** + * + * @param string $comment_status + * @return int + */ public function get_per_page( $comment_status = 'all' ) { $comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' ); /** @@ -381,6 +386,9 @@ class WP_Comments_List_Table extends WP_List_Table { return 'comment'; } + /** + * @access public + */ public function display() { wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); @@ -660,6 +668,9 @@ class WP_Comments_List_Table extends WP_List_Table { return get_comment_date( __( 'Y/m/d \a\t g:i a' ) ); } + /** + * @access public + */ public function column_response() { $post = get_post(); diff --git a/src/wp-admin/includes/class-wp-filesystem-ftpext.php b/src/wp-admin/includes/class-wp-filesystem-ftpext.php index 8493cbd1dd..d58da3aec7 100644 --- a/src/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/src/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -514,6 +514,9 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base { return $ret; } + /** + * @access public + */ public function __destruct() { if ( $this->link ) ftp_close($this->link); diff --git a/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php b/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php index b89b36c161..a0acdebf39 100644 --- a/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php +++ b/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php @@ -171,6 +171,10 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base { return $ret; } + /** + * + * @return string + */ public function cwd() { $cwd = $this->ftp->pwd(); if ( $cwd ) @@ -178,6 +182,11 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base { return $cwd; } + /** + * + * @param string $file + * @return bool + */ public function chdir($file) { return $this->ftp->chdir($file); } @@ -448,6 +457,9 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base { return $ret; } + /** + * @access public + */ public function __destruct() { $this->ftp->quit(); } diff --git a/src/wp-admin/includes/class-wp-links-list-table.php b/src/wp-admin/includes/class-wp-links-list-table.php index 5499a4448f..922b3fe399 100644 --- a/src/wp-admin/includes/class-wp-links-list-table.php +++ b/src/wp-admin/includes/class-wp-links-list-table.php @@ -60,6 +60,9 @@ class WP_Links_List_Table extends WP_List_Table { $this->items = get_bookmarks( $args ); } + /** + * @access public + */ public function no_items() { _e( 'No links found.' ); } diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php index 4151427ca6..41fb52a131 100644 --- a/src/wp-admin/includes/class-wp-media-list-table.php +++ b/src/wp-admin/includes/class-wp-media-list-table.php @@ -184,6 +184,9 @@ class WP_Media_List_Table extends WP_List_Table { return have_posts(); } + /** + * @access public + */ public function no_items() { _e( 'No media attachments found.' ); } diff --git a/src/wp-admin/includes/class-wp-ms-sites-list-table.php b/src/wp-admin/includes/class-wp-ms-sites-list-table.php index 0fa3c12693..6c585e3b8a 100644 --- a/src/wp-admin/includes/class-wp-ms-sites-list-table.php +++ b/src/wp-admin/includes/class-wp-ms-sites-list-table.php @@ -142,6 +142,9 @@ class WP_MS_Sites_List_Table extends WP_List_Table { ) ); } + /** + * @access public + */ public function no_items() { _e( 'No sites found.' ); } diff --git a/src/wp-admin/includes/class-wp-ms-themes-list-table.php b/src/wp-admin/includes/class-wp-ms-themes-list-table.php index 9f8eddc6e1..8df7c6c05e 100644 --- a/src/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/src/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -212,6 +212,9 @@ class WP_MS_Themes_List_Table extends WP_List_Table { return ( $a < $b ) ? -1 : 1; } + /** + * @access public + */ public function no_items() { if ( ! $this->has_items ) _e( 'No themes found.' ); @@ -324,6 +327,9 @@ class WP_MS_Themes_List_Table extends WP_List_Table { return $actions; } + /** + * @access public + */ public function display_rows() { foreach ( $this->items as $theme ) $this->single_row( $theme ); @@ -334,7 +340,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { * @global int $page * @global string $s * @global array $totals - * + * * @param WP_Theme $theme */ public function single_row( $theme ) { diff --git a/src/wp-admin/includes/class-wp-ms-users-list-table.php b/src/wp-admin/includes/class-wp-ms-users-list-table.php index 7fa75891ca..d7b7145fca 100644 --- a/src/wp-admin/includes/class-wp-ms-users-list-table.php +++ b/src/wp-admin/includes/class-wp-ms-users-list-table.php @@ -96,6 +96,9 @@ class WP_MS_Users_List_Table extends WP_List_Table { return $actions; } + /** + * @access public + */ public function no_items() { _e( 'No users found.' ); } diff --git a/src/wp-admin/includes/class-wp-plugin-install-list-table.php b/src/wp-admin/includes/class-wp-plugin-install-list-table.php index 8a09cd2e71..45a5251285 100644 --- a/src/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/src/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -214,6 +214,9 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { } } + /** + * @access public + */ public function no_items() { if ( isset( $this->error ) ) { $message = $this->error->get_error_message() . '
'; @@ -338,7 +341,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { protected function get_table_classes() { return array( 'widefat', $this->_args['plural'] ); } - + /** * @return array */ diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index 19a357e042..59ef296b72 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -159,6 +159,9 @@ class WP_Posts_List_Table extends WP_List_Table { return have_posts(); } + /** + * @access public + */ public function no_items() { if ( isset( $_REQUEST['post_status'] ) && 'trash' == $_REQUEST['post_status'] ) echo get_post_type_object( $this->screen->post_type )->labels->not_found_in_trash; diff --git a/src/wp-admin/includes/class-wp-terms-list-table.php b/src/wp-admin/includes/class-wp-terms-list-table.php index 24700767dc..7e42d5a628 100644 --- a/src/wp-admin/includes/class-wp-terms-list-table.php +++ b/src/wp-admin/includes/class-wp-terms-list-table.php @@ -63,6 +63,9 @@ class WP_Terms_List_Table extends WP_List_Table { return current_user_can( get_taxonomy( $this->screen->taxonomy )->cap->manage_terms ); } + /** + * @access public + */ public function prepare_items() { $tags_per_page = $this->get_items_per_page( 'edit_' . $this->screen->taxonomy . '_per_page' ); @@ -127,6 +130,9 @@ class WP_Terms_List_Table extends WP_List_Table { return true; } + /** + * @access public + */ public function no_items() { echo get_taxonomy( $this->screen->taxonomy )->labels->not_found; } @@ -188,6 +194,9 @@ class WP_Terms_List_Table extends WP_List_Table { ); } + /** + * @access public + */ public function display_rows_or_placeholder() { $taxonomy = $this->screen->taxonomy; diff --git a/src/wp-admin/includes/class-wp-theme-install-list-table.php b/src/wp-admin/includes/class-wp-theme-install-list-table.php index e0d2de27b1..da4ed275d9 100644 --- a/src/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/src/wp-admin/includes/class-wp-theme-install-list-table.php @@ -145,6 +145,9 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { ) ); } + /** + * @access public + */ public function no_items() { _e( 'No themes match your request.' ); } @@ -168,6 +171,9 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { return $display_tabs; } + /** + * @access public + */ public function display() { wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); ?> @@ -194,6 +200,9 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { $this->tablenav( 'bottom' ); } + /** + * @access public + */ public function display_rows() { $themes = $this->items; foreach ( $themes as $theme ) { diff --git a/src/wp-admin/includes/class-wp-themes-list-table.php b/src/wp-admin/includes/class-wp-themes-list-table.php index 72c7ef83b0..0d804aeb54 100644 --- a/src/wp-admin/includes/class-wp-themes-list-table.php +++ b/src/wp-admin/includes/class-wp-themes-list-table.php @@ -38,6 +38,9 @@ class WP_Themes_List_Table extends WP_List_Table { return current_user_can( 'switch_themes' ); } + /** + * @access public + */ public function prepare_items() { $themes = wp_get_themes( array( 'allowed' => true ) ); @@ -71,6 +74,9 @@ class WP_Themes_List_Table extends WP_List_Table { ) ); } + /** + * @access public + */ public function no_items() { if ( $this->search_terms || $this->features ) { _e( 'No items found.' ); @@ -114,6 +120,9 @@ class WP_Themes_List_Table extends WP_List_Table { @@ -135,6 +144,9 @@ class WP_Themes_List_Table extends WP_List_Table { return array(); } + /** + * @access public + */ public function display_rows_or_placeholder() { if ( $this->has_items() ) { $this->display_rows(); @@ -145,6 +157,9 @@ class WP_Themes_List_Table extends WP_List_Table { } } + /** + * @access public + */ public function display_rows() { $themes = $this->items; diff --git a/src/wp-admin/includes/class-wp-upgrader-skins.php b/src/wp-admin/includes/class-wp-upgrader-skins.php index 0c6426c230..851da072b3 100644 --- a/src/wp-admin/includes/class-wp-upgrader-skins.php +++ b/src/wp-admin/includes/class-wp-upgrader-skins.php @@ -40,9 +40,16 @@ class WP_Upgrader_Skin { $this->add_strings(); } + /** + * @access public + */ public function add_strings() { } + /** + * + * @param string|false|WP_Error $result + */ public function set_result($result) { $this->result = $result; } @@ -68,6 +75,9 @@ class WP_Upgrader_Skin { return request_filesystem_credentials( $url, '', $error, $context, $extra_fields, $allow_relaxed_file_ownership ); } + /** + * @access public + */ public function header() { if ( $this->done_header ) { return; @@ -76,6 +86,10 @@ class WP_Upgrader_Skin { echo '$string
\n"; } + /** + * @access public + */ public function header() { // Nothing, This will be displayed within a iframe. } + /** + * @access public + */ public function footer() { // Nothing, This will be displayed within a iframe. } @@ -305,10 +346,16 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { echo ''; } + /** + * @access public + */ public function bulk_header() { $this->feedback('skin_upgrade_start'); } + /** + * @access public + */ public function bulk_footer() { $this->feedback('skin_upgrade_end'); } @@ -349,11 +396,17 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { $this->flush_output(); } + /** + * @access public + */ public function reset() { $this->in_loop = false; $this->error = false; } + /** + * @access public + */ public function flush_output() { wp_ob_end_flush_all(); flush(); @@ -384,6 +437,10 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin { parent::after($this->plugin_info['Title']); $this->decrement_update_count( 'plugin' ); } + + /** + * @access public + */ public function bulk_footer() { parent::bulk_footer(); $update_actions = array( @@ -433,6 +490,9 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin { $this->decrement_update_count( 'theme' ); } + /** + * @access public + */ public function bulk_footer() { parent::bulk_footer(); $update_actions = array( @@ -482,13 +542,18 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin { parent::__construct($args); } + /** + * @access public + */ public function before() { if ( !empty($this->api) ) $this->upgrader->strings['process_success'] = sprintf( __('Successfully installed the plugin %s %s.'), $this->api->name, $this->api->version); } + /** + * @access public + */ public function after() { - $plugin_file = $this->upgrader->plugin_info(); $install_actions = array(); @@ -562,11 +627,17 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin { parent::__construct($args); } + /** + * @access public + */ public function before() { if ( !empty($this->api) ) $this->upgrader->strings['process_success'] = sprintf( $this->upgrader->strings['process_success_specific'], $this->api->name, $this->api->version); } + /** + * @access public + */ public function after() { if ( empty($this->upgrader->result['destination_name']) ) return; @@ -649,6 +720,9 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin { parent::__construct($args); } + /** + * @access public + */ public function after() { $this->decrement_update_count( 'theme' ); @@ -732,6 +806,9 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { parent::__construct( $args ); } + /** + * @access public + */ public function before() { $name = $this->upgrader->get_name_for_update( $this->language_update ); @@ -750,10 +827,16 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { echo '