@@ -276,6 +318,8 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
}
/**
+ * @global string $tab
+ *
* @param string $which
*/
protected function display_tablenav( $which ) {
@@ -283,7 +327,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
return;
}
- if ( 'top' == $which ) {
+ if ( 'top' === $which ) {
wp_referer_field();
?>
@@ -308,10 +352,16 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
}
}
+ /**
+ * @return array
+ */
protected function get_table_classes() {
return array( 'widefat', $this->_args['plural'] );
}
+ /**
+ * @return array
+ */
public function get_columns() {
return array();
}
@@ -334,13 +384,16 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
return 0;
}
- if ( 'DESC' == $this->order ) {
+ if ( 'DESC' === $this->order ) {
return ( $a < $b ) ? 1 : -1;
} else {
return ( $a < $b ) ? -1 : 1;
}
}
+ /**
+ * @global string $wp_version
+ */
public function display_rows() {
$plugins_allowedtags = array(
'a' => array( 'href' => array(),'title' => array(), 'target' => array() ),
@@ -413,13 +466,13 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
case 'update_available':
if ( $status['url'] ) {
/* translators: 1: Plugin name and version */
- $action_links[] = '
' . __( 'Update Now' ) . '';
+ $action_links[] = '
' . __( 'Update Now' ) . '';
}
break;
case 'latest_installed':
case 'newer_installed':
- $action_links[] = '
' . _x( 'Installed', 'plugin' ) . '';
+ $action_links[] = '
' . _x( 'Installed', 'plugin' ) . '';
break;
}
}
@@ -428,7 +481,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
'&TB_iframe=true&width=600&height=550' );
/* translators: 1: Plugin name and version. */
- $action_links[] = '
' . __( 'More Details' ) . '';
+ $action_links[] = '
' . __( 'More Details' ) . '';
if ( !empty( $plugin['icons']['svg'] ) ) {
$plugin_icon_url = $plugin['icons']['svg'];
@@ -450,14 +503,17 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
*/
$action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );
- $date_format = __( 'M j, Y @ H:i' );
$last_updated_timestamp = strtotime( $plugin['last_updated'] );
?>
-
$plugin['rating'], 'type' => 'percent', 'number' => $plugin['num_ratings'] ) ); ?>
- ()
+ ()
-
-
-
+