--- a/wp/wp-admin/includes/class-wp-theme-install-list-table.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/includes/class-wp-theme-install-list-table.php Wed Sep 21 18:19:35 2022 +0200
@@ -132,8 +132,16 @@
* Filters API request arguments for each Install Themes screen tab.
*
* The dynamic portion of the hook name, `$tab`, refers to the theme install
- * tabs. Default tabs are 'dashboard', 'search', 'upload', 'featured',
- * 'new', and 'updated'.
+ * tab.
+ *
+ * Possible hook names include:
+ *
+ * - `install_themes_table_api_args_dashboard`
+ * - `install_themes_table_api_args_featured`
+ * - `install_themes_table_api_args_new`
+ * - `install_themes_table_api_args_search`
+ * - `install_themes_table_api_args_updated`
+ * - `install_themes_table_api_args_upload`
*
* @since 3.7.0
*
@@ -148,7 +156,7 @@
$api = themes_api( 'query_themes', $args );
if ( is_wp_error( $api ) ) {
- wp_die( $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try Again' ) . '</a>' );
+ wp_die( '<p>' . $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try Again' ) . '</a></p>' );
}
$this->items = $api->themes;
@@ -246,15 +254,15 @@
* @param object $theme {
* An object that contains theme data returned by the WordPress.org API.
*
- * @type string $name Theme name, e.g. 'Twenty Twenty'.
- * @type string $slug Theme slug, e.g. 'twentytwenty'.
+ * @type string $name Theme name, e.g. 'Twenty Twenty-One'.
+ * @type string $slug Theme slug, e.g. 'twentytwentyone'.
* @type string $version Theme version, e.g. '1.1'.
* @type string $author Theme author username, e.g. 'melchoyce'.
- * @type string $preview_url Preview URL, e.g. 'https://2020.wordpress.net/'.
- * @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwenty/'.
+ * @type string $preview_url Preview URL, e.g. 'https://2021.wordpress.net/'.
+ * @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwentyone/'.
* @type float $rating Rating score.
* @type int $num_ratings The number of ratings.
- * @type string $homepage Theme homepage, e.g. 'https://wordpress.org/themes/twentytwenty/'.
+ * @type string $homepage Theme homepage, e.g. 'https://wordpress.org/themes/twentytwentyone/'.
* @type string $description Theme description.
* @type string $download_link Theme ZIP download URL.
* }