summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
commit10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch)
treeb4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/_inc/lib/class.jetpack-automatic-install-skin.php
parentUpdating script for Update (diff)
downloadblogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/_inc/lib/class.jetpack-automatic-install-skin.php')
-rw-r--r--plugins/jetpack/_inc/lib/class.jetpack-automatic-install-skin.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/jetpack/_inc/lib/class.jetpack-automatic-install-skin.php b/plugins/jetpack/_inc/lib/class.jetpack-automatic-install-skin.php
index 228c6b2c..00afeb01 100644
--- a/plugins/jetpack/_inc/lib/class.jetpack-automatic-install-skin.php
+++ b/plugins/jetpack/_inc/lib/class.jetpack-automatic-install-skin.php
@@ -65,8 +65,11 @@ class Jetpack_Automatic_Install_Skin extends Automatic_Upgrader_Skin {
/**
* Overwrites the feedback function
+ *
+ * @param string|array|WP_Error $data Data.
+ * @param mixed ...$args Optional text replacements.
*/
- public function feedback( $data ) {
+ public function feedback( $data, ...$args ) {
$current_error = null;
if ( is_wp_error( $data ) ) {
@@ -86,8 +89,6 @@ class Jetpack_Automatic_Install_Skin extends Automatic_Upgrader_Skin {
}
if ( strpos( $string, '%' ) !== false ) {
- $args = func_get_args();
- $args = array_splice( $args, 1 );
if ( ! empty( $args ) ) {
$string = vsprintf( $string, $args );
}