diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
commit | 0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch) | |
tree | e139a90049b158d4eed892d1662ee7f5c358fa31 /wp-admin/includes/class-language-pack-upgrader-skin.php | |
parent | Adding upstream version 6.5.5+dfsg1. (diff) | |
download | wordpress-0e41b5d52fdc6af6442816b5f465c9db9f84e126.tar.xz wordpress-0e41b5d52fdc6af6442816b5f465c9db9f84e126.zip |
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-admin/includes/class-language-pack-upgrader-skin.php')
-rw-r--r-- | wp-admin/includes/class-language-pack-upgrader-skin.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/wp-admin/includes/class-language-pack-upgrader-skin.php b/wp-admin/includes/class-language-pack-upgrader-skin.php index 57b0a1c..b93ed6c 100644 --- a/wp-admin/includes/class-language-pack-upgrader-skin.php +++ b/wp-admin/includes/class-language-pack-upgrader-skin.php @@ -22,6 +22,12 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { 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 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { } /** + * 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 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { } /** + * 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 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { } /** + * Performs an action following a language pack update. + * + * @since 3.7.0 */ public function after() { echo '</div>'; } /** + * Displays the footer following the bulk update process. + * + * @since 3.7.0 */ public function bulk_footer() { $this->decrement_update_count( 'translation' ); |