From 470c42f77256019294a922cca47c0fb9b89ea679 Mon Sep 17 00:00:00 2001 From: TommusRhodus Date: Mon, 15 Jul 2024 11:23:38 +0100 Subject: [PATCH] Mass update of plugin update URLs --- .utilities/class-wpsp-blocks-self-update.php | 4 ++-- .../classes/class-wpsp-blocks-self-update.php | 4 ++-- dynamic-table-of-contents/dynamic-table-of-contents.php | 2 +- hello-world/classes/class-wpsp-blocks-self-update.php | 4 ++-- hello-world/hello-world.php | 2 +- sibling-pages-list/classes/class-wpsp-blocks-self-update.php | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.utilities/class-wpsp-blocks-self-update.php b/.utilities/class-wpsp-blocks-self-update.php index af0134e..05df386 100644 --- a/.utilities/class-wpsp-blocks-self-update.php +++ b/.utilities/class-wpsp-blocks-self-update.php @@ -31,7 +31,7 @@ public static function get_instance() { * Initialize WordPress hooks */ public function hooks() { - add_filter( 'update_plugins_opsoasis-develop.mystagingwebsite.com', array( $this, 'self_update' ), 10, 3 ); + add_filter( 'update_plugins_opsoasis.wpspecialprojects.com', array( $this, 'self_update' ), 10, 3 ); } /** @@ -53,7 +53,7 @@ public function self_update( $update, array $plugin_data, string $plugin_file ) // Ask opsoasis.mystagingwebsite.com if there's an update. $response = wp_remote_get( - 'https://opsoasis-develop.mystagingwebsite.com/wp-json/opsoasis-blocks-version-manager/v1/update-check', + 'https://opsoasis.wpspecialprojects.com/wp-json/opsoasis-blocks-version-manager/v1/update-check', array( 'body' => array( 'plugin' => $plugin_filename_parts[0], diff --git a/dynamic-table-of-contents/classes/class-wpsp-blocks-self-update.php b/dynamic-table-of-contents/classes/class-wpsp-blocks-self-update.php index af0134e..05df386 100644 --- a/dynamic-table-of-contents/classes/class-wpsp-blocks-self-update.php +++ b/dynamic-table-of-contents/classes/class-wpsp-blocks-self-update.php @@ -31,7 +31,7 @@ public static function get_instance() { * Initialize WordPress hooks */ public function hooks() { - add_filter( 'update_plugins_opsoasis-develop.mystagingwebsite.com', array( $this, 'self_update' ), 10, 3 ); + add_filter( 'update_plugins_opsoasis.wpspecialprojects.com', array( $this, 'self_update' ), 10, 3 ); } /** @@ -53,7 +53,7 @@ public function self_update( $update, array $plugin_data, string $plugin_file ) // Ask opsoasis.mystagingwebsite.com if there's an update. $response = wp_remote_get( - 'https://opsoasis-develop.mystagingwebsite.com/wp-json/opsoasis-blocks-version-manager/v1/update-check', + 'https://opsoasis.wpspecialprojects.com/wp-json/opsoasis-blocks-version-manager/v1/update-check', array( 'body' => array( 'plugin' => $plugin_filename_parts[0], diff --git a/dynamic-table-of-contents/dynamic-table-of-contents.php b/dynamic-table-of-contents/dynamic-table-of-contents.php index 2948b04..cec8d1e 100644 --- a/dynamic-table-of-contents/dynamic-table-of-contents.php +++ b/dynamic-table-of-contents/dynamic-table-of-contents.php @@ -7,7 +7,7 @@ * Version: 0.1.9 * Author: WordPress Special Projects Team * Author URI: https://wpspecialprojects.wordpress.com/ - * Update URI: https://opsoasis-develop.mystagingwebsite.com/dynamic-table-of-contents/ + * Update URI: https://opsoasis.wpspecialprojects.com/dynamic-table-of-contents/ * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: dynamic-table-of-contents diff --git a/hello-world/classes/class-wpsp-blocks-self-update.php b/hello-world/classes/class-wpsp-blocks-self-update.php index af0134e..05df386 100644 --- a/hello-world/classes/class-wpsp-blocks-self-update.php +++ b/hello-world/classes/class-wpsp-blocks-self-update.php @@ -31,7 +31,7 @@ public static function get_instance() { * Initialize WordPress hooks */ public function hooks() { - add_filter( 'update_plugins_opsoasis-develop.mystagingwebsite.com', array( $this, 'self_update' ), 10, 3 ); + add_filter( 'update_plugins_opsoasis.wpspecialprojects.com', array( $this, 'self_update' ), 10, 3 ); } /** @@ -53,7 +53,7 @@ public function self_update( $update, array $plugin_data, string $plugin_file ) // Ask opsoasis.mystagingwebsite.com if there's an update. $response = wp_remote_get( - 'https://opsoasis-develop.mystagingwebsite.com/wp-json/opsoasis-blocks-version-manager/v1/update-check', + 'https://opsoasis.wpspecialprojects.com/wp-json/opsoasis-blocks-version-manager/v1/update-check', array( 'body' => array( 'plugin' => $plugin_filename_parts[0], diff --git a/hello-world/hello-world.php b/hello-world/hello-world.php index a90bab0..daefe3f 100644 --- a/hello-world/hello-world.php +++ b/hello-world/hello-world.php @@ -8,7 +8,7 @@ * Author: The WordPress Contributors * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html - * Update URI: https://opsoasis-develop.mystagingwebsite.com/hello-world/ + * Update URI: https://opsoasis.wpspecialprojects.com/hello-world/ * Text Domain: hello-world * * @package wpsp diff --git a/sibling-pages-list/classes/class-wpsp-blocks-self-update.php b/sibling-pages-list/classes/class-wpsp-blocks-self-update.php index af0134e..05df386 100644 --- a/sibling-pages-list/classes/class-wpsp-blocks-self-update.php +++ b/sibling-pages-list/classes/class-wpsp-blocks-self-update.php @@ -31,7 +31,7 @@ public static function get_instance() { * Initialize WordPress hooks */ public function hooks() { - add_filter( 'update_plugins_opsoasis-develop.mystagingwebsite.com', array( $this, 'self_update' ), 10, 3 ); + add_filter( 'update_plugins_opsoasis.wpspecialprojects.com', array( $this, 'self_update' ), 10, 3 ); } /** @@ -53,7 +53,7 @@ public function self_update( $update, array $plugin_data, string $plugin_file ) // Ask opsoasis.mystagingwebsite.com if there's an update. $response = wp_remote_get( - 'https://opsoasis-develop.mystagingwebsite.com/wp-json/opsoasis-blocks-version-manager/v1/update-check', + 'https://opsoasis.wpspecialprojects.com/wp-json/opsoasis-blocks-version-manager/v1/update-check', array( 'body' => array( 'plugin' => $plugin_filename_parts[0],