Skip to content

Commit

Permalink
fix: syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lightningspirit committed Mar 27, 2024
1 parent 2816935 commit 377655e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 ) {
Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit 377655e

Please sign in to comment.