diff --git a/.changeset/three-bats-grab.md b/.changeset/three-bats-grab.md new file mode 100644 index 00000000..6fd7e49b --- /dev/null +++ b/.changeset/three-bats-grab.md @@ -0,0 +1,5 @@ +--- +"@wpengine/wp-graphql-content-blocks": patch +--- + +Fixed issue with updater functionality. diff --git a/includes/updates/update-callbacks.php b/includes/updates/update-callbacks.php index e02f4cd1..91ffcb93 100644 --- a/includes/updates/update-callbacks.php +++ b/includes/updates/update-callbacks.php @@ -35,6 +35,7 @@ function check_for_plugin_updates( $data ) { return $data; } + $response->slug = 'wp-graphql-content-blocks'; $current_plugin_data = \get_plugin_data( WPGRAPHQL_CONTENT_BLOCKS_FILE ); $meets_wp_req = version_compare( get_bloginfo( 'version' ), $response->requires_at_least, '>=' ); @@ -114,7 +115,7 @@ function display_plugin_row_notice() { $error = get_plugin_api_error(); ?> - +

diff --git a/includes/updates/update-functions.php b/includes/updates/update-functions.php index a3ba01a9..7b736349 100644 --- a/includes/updates/update-functions.php +++ b/includes/updates/update-functions.php @@ -39,7 +39,7 @@ function get_plugin_data_from_wpe( $args ) { $api->name = $product_info->name; $api->requires = isset( $product_info->requires_at_least ) ? $product_info->requires_at_least : $current_plugin_data['RequiresWP']; $api->sections['changelog'] = isset( $product_info->sections->changelog ) ? $product_info->sections->changelog : '

1.0

'; - $api->slug = $args->slug; + $api->slug = 'wp-graphql-content-blocks'; // Only pass along the update info if the requirements are met and there's actually a newer version. if ( $meets_wp_req && version_compare( $current_plugin_data['Version'], $product_info->version, '<' ) ) {