summaryrefslogtreecommitdiffstats
path: root/wp-admin/includes/class-language-pack-upgrader-skin.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/includes/class-language-pack-upgrader-skin.php')
-rw-r--r--wp-admin/includes/class-language-pack-upgrader-skin.php18
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' );