From 377655eb2ee9dbdd5fe9251b716d25ae233642e7 Mon Sep 17 00:00:00 2001 From: Vitor Carvalho Date: Wed, 27 Mar 2024 18:48:47 +0000 Subject: [PATCH] fix: syntax errors --- updater.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/updater.php b/updater.php index 38a3c75..2930c3e 100644 --- a/updater.php +++ b/updater.php @@ -64,7 +64,7 @@ function ( $result, $action, $args ) { return $result; } - $result = apply_filter( 'plugin_update_remote_data_' . plugin_basename( __DIR__ ), $result ); + $result = apply_filters( 'plugin_update_remote_data_' . plugin_basename( __DIR__ ), $result ); $result->slug = plugin_basename( __DIR__ ); $result->trunk = $remote->download_url; @@ -84,7 +84,7 @@ function ( $result, $action, $args ) { add_action( 'init', function () { - $basename_file = apply_filters( 'plugin_basename_file_' . plugin_basename( __DIR__ ) ); + $basename_file = apply_filters( 'plugin_basename_file_' . plugin_basename( __DIR__ ), '' ); $update_uri = get_option( 'plugin_update_uri_' . plugin_basename( __DIR__ ) ); if ( ! $update_uri ) { @@ -163,7 +163,7 @@ function ( $update, $plugin_data, $plugin_file ) { add_action( 'upgrader_process_complete', function ( $upgrader_object, $options ) { - $basename_file = apply_filters( 'plugin_basename_file_' . plugin_basename( __DIR__ ) ); + $basename_file = apply_filters( 'plugin_basename_file_' . plugin_basename( __DIR__ ), '' ); if ( 'update' === $options['action'] && 'plugin' === $options['type'] ) { foreach ( $options['plugins'] as $each_plugin ) {