@@ -57,7+74,10 @@ class WP_Themes_List_Table extends WP_List_Table {
) );
}
) );
}
- function no_items() {
+ /**
+ * @access public
+ */
+ public function no_items() {
if ( $this->search_terms || $this->features ) {
_e( 'No items found.' );
return;
if ( $this->search_terms || $this->features ) {
_e( 'No items found.' );
return;
@@ -73,7+93,7 @@ class WP_Themes_List_Table extends WP_List_Table {
return;
}
return;
}
- // else, fallthrough. install_themes doesn't help if you can't enable it.
+ // Else, fallthrough. install_themes doesn't help if you can't enable it.
} else {
if ( current_user_can( 'install_themes' ) ) {
printf( __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress.org Theme Directory at any time: just click on the <a href="%s">Install Themes</a> tab above.' ), admin_url( 'theme-install.php' ) );
} else {
if ( current_user_can( 'install_themes' ) ) {
printf( __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress.org Theme Directory at any time: just click on the <a href="%s">Install Themes</a> tab above.' ), admin_url( 'theme-install.php' ) );
@@ -85,7+105,10 @@ class WP_Themes_List_Table extends WP_List_Table {
printf( __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) );
}
printf( __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) );
}
- function tablenav( $which = 'top' ) {
+ /**
+ * @param string $which
+ */
+ public function tablenav( $which = 'top' ) {
if ( $this->get_pagination_arg( 'total_pages' ) <= 1 )
return;
?>
if ( $this->get_pagination_arg( 'total_pages' ) <= 1 )
return;
?>
@@ -97,7+120,10 @@ class WP_Themes_List_Table extends WP_List_Table {