diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-admin/includes/class-language-pack-upgrader-skin.php --- a/wp/wp-admin/includes/class-language-pack-upgrader-skin.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-admin/includes/class-language-pack-upgrader-skin.php Fri Sep 05 18:40:08 2025 +0200 @@ -22,6 +22,12 @@ public $display_footer_actions = true; /** + * Constructor. + * + * Sets up the language pack upgrader skin. + * + * @since 3.7.0 + * * @param array $args */ public function __construct( $args = array() ) { @@ -41,6 +47,9 @@ } /** + * Performs an action before a language pack update. + * + * @since 3.7.0 */ public function before() { $name = $this->upgrader->get_name_for_update( $this->language_update ); @@ -52,6 +61,9 @@ } /** + * Displays an error message about the update. + * + * @since 3.7.0 * @since 5.9.0 Renamed `$error` to `$errors` for PHP 8 named parameter support. * * @param string|WP_Error $errors Errors. @@ -63,12 +75,18 @@ } /** + * Performs an action following a language pack update. + * + * @since 3.7.0 */ public function after() { echo ''; } /** + * Displays the footer following the bulk update process. + * + * @since 3.7.0 */ public function bulk_footer() { $this->decrement_update_count( 'translation' );