diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-admin/includes/class-plugin-installer-skin.php --- a/wp/wp-admin/includes/class-plugin-installer-skin.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-admin/includes/class-plugin-installer-skin.php Fri Sep 05 18:40:08 2025 +0200 @@ -24,6 +24,12 @@ private $is_downgrading = false; /** + * Constructor. + * + * Sets up the plugin installer skin. + * + * @since 2.8.0 + * * @param array $args */ public function __construct( $args = array() ) { @@ -46,7 +52,7 @@ } /** - * Action to perform before installing a plugin. + * Performs an action before installing a plugin. * * @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 plugin install. + * Performs an action following a plugin install. * * @since 2.8.0 */ @@ -121,7 +127,7 @@ $install_actions['network_activate'] = sprintf( '%s', wp_nonce_url( 'plugins.php?action=activate&networkwide=1&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ), - __( 'Network Activate' ) + _x( 'Network Activate', 'plugin' ) ); unset( $install_actions['activate_plugin'] ); } @@ -177,7 +183,7 @@ } /** - * Check if the plugin can be overwritten and output the HTML for overwriting a plugin on upload. + * Checks if the plugin can be overwritten and outputs the HTML for overwriting a plugin on upload. * * @since 5.5.0 * @@ -266,7 +272,7 @@ $error = sprintf( /* translators: 1: Current PHP version, 2: Version required by the uploaded plugin. */ __( 'The PHP version on your server is %1$s, however the uploaded plugin requires %2$s.' ), - phpversion(), + PHP_VERSION, $requires_php ); @@ -293,13 +299,13 @@ $warning = sprintf( /* translators: %s: Documentation URL. */ __( 'You are uploading an older version of a current plugin. 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 plugin. 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/' ) ); }