Skip to content

Commit

Permalink
Mass update of plugin update URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
tommusrhodus committed Jul 15, 2024
1 parent 876f9c5 commit 470c42f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .utilities/class-wpsp-blocks-self-update.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand All @@ -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],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand All @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion dynamic-table-of-contents/dynamic-table-of-contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions hello-world/classes/class-wpsp-blocks-self-update.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand All @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion hello-world/hello-world.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sibling-pages-list/classes/class-wpsp-blocks-self-update.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand All @@ -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],
Expand Down

0 comments on commit 470c42f

Please sign in to comment.