diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-admin/includes/class-theme-installer-skin.php --- a/wp/wp-admin/includes/class-theme-installer-skin.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-admin/includes/class-theme-installer-skin.php Fri Sep 05 18:40:08 2025 +0200 @@ -24,6 +24,12 @@ private $is_downgrading = false; /** + * Constructor. + * + * Sets up the theme installer skin. + * + * @since 2.8.0 + * * @param array $args */ public function __construct( $args = array() ) { @@ -46,7 +52,7 @@ } /** - * Action to perform before installing a theme. + * Performs an action before installing a theme. * * @since 2.8.0 */ @@ -66,7 +72,7 @@ * @since 5.5.0 * * @param WP_Error $wp_error WP_Error object. - * @return bool + * @return bool True if the error should be hidden, false otherwise. */ public function hide_process_failed( $wp_error ) { if ( @@ -81,7 +87,7 @@ } /** - * Action to perform following a single theme install. + * Performs an action following a single theme install. * * @since 2.8.0 */ @@ -129,7 +135,7 @@ '%s', esc_url( $customize_url ), __( 'Live Preview' ), - /* translators: %s: Theme name. */ + /* translators: Hidden accessibility text. %s: Theme name. */ sprintf( __( 'Live Preview “%s”' ), $name ) ); } @@ -138,8 +144,8 @@ '' . '%s', esc_url( $activate_link ), - __( 'Activate' ), - /* translators: %s: Theme name. */ + _x( 'Activate', 'theme' ), + /* translators: Hidden accessibility text. %s: Theme name. */ sprintf( _x( 'Activate “%s”', 'theme' ), $name ) ); @@ -188,7 +194,7 @@ } /** - * Check if the theme can be overwritten and output the HTML for overwriting a theme on upload. + * Checks if the theme can be overwritten and outputs the HTML for overwriting a theme on upload. * * @since 5.5.0 * @@ -301,7 +307,7 @@ $error = sprintf( /* translators: 1: Current PHP version, 2: Version required by the uploaded theme. */ __( 'The PHP version on your server is %1$s, however the uploaded theme requires %2$s.' ), - phpversion(), + PHP_VERSION, $requires_php ); @@ -328,13 +334,13 @@ $warning = sprintf( /* translators: %s: Documentation URL. */ __( 'You are uploading an older version of the active theme. You can continue to install the older version, but be sure to back up your database and files first.' ), - __( 'https://wordpress.org/support/article/wordpress-backups/' ) + __( 'https://developer.wordpress.org/advanced-administration/security/backup/' ) ); } else { $warning = sprintf( /* translators: %s: Documentation URL. */ __( 'You are updating a theme. Be sure to back up your database and files first.' ), - __( 'https://wordpress.org/support/article/wordpress-backups/' ) + __( 'https://developer.wordpress.org/advanced-administration/security/backup/' ) ); }