$themes = array(
/**
- * Filter the full array of WP_Theme objects to list in the Multisite
+ * Filters the full array of WP_Theme objects to list in the Multisite
* themes list table.
*
* @since 3.1.0
$this->has_items = ! empty( $themes['all'] );
$total_this_page = $totals[ $status ];
+ wp_localize_script( 'updates', '_wpUpdatesItemCounts', array(
+ 'themes' => $totals,
+ 'totals' => wp_get_update_data(),
+ ) );
+
if ( $orderby ) {
$orderby = ucfirst( $orderby );
$order = strtoupper( $order );
), 'themes.php' );
/* translators: %s: theme name */
- $aria_label = sprintf( __( 'Delete %s' ), $theme->display( 'Name' ) );
+ $aria_label = sprintf( _x( 'Delete %s', 'theme' ), $theme->display( 'Name' ) );
$actions['delete'] = sprintf( '<a href="%s" class="delete" aria-label="%s">%s</a>',
esc_url( wp_nonce_url( $url, 'bulk-themes' ) ),
);
}
/**
- * Filter the action links displayed for each theme in the Multisite
+ * Filters the action links displayed for each theme in the Multisite
* themes list table.
*
* The action links displayed are determined by the theme's status, and
$actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme, $context );
/**
- * Filter the action links of a specific theme in the Multisite themes
+ * Filters the action links of a specific theme in the Multisite themes
* list table.
*
* The dynamic portion of the hook name, `$stylesheet`, refers to the
* @param WP_Theme $theme The current WP_Theme object.
* @param string $context Status of the theme.
*/
- $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme, $context );
+ $actions = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, $context );
echo $this->row_actions( $actions, true );
}
);
}
/**
- * Filter the array of row meta for each theme in the Multisite themes
+ * Filters the array of row meta for each theme in the Multisite themes
* list table.
*
* @since 3.1.0
* @param WP_Theme $theme Current WP_Theme object.
* @param string $status Status of the theme.
*/
- do_action( "after_theme_row_$stylesheet", $stylesheet, $theme, $status );
+ do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status );
}
}