Version Description
- Added "Settings" link to plugin actions.
- Introduced
Admin::get_url
method for retrieving URL or tools page. - Fixed title of tools page in browser tab.
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Go Live Update URLS |
Version | 6.3.7 |
Comparing to | |
See all releases |
Code changes from version 6.3.6 to 6.3.7
- go-live-update-urls.php +2 -2
- readme.txt +7 -5
- src/Admin.php +15 -3
- src/Core.php +5 -1
go-live-update-urls.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Updates all the Urls in the database to point to a new URL when making your site live or changing domains.
|
6 |
* Author: OnPoint Plugins
|
7 |
* Author URI: https://onpointplugins.com
|
8 |
-
* Version: 6.3.
|
9 |
* Text Domain: go-live-update-urls
|
10 |
* Domain Path: /languages/
|
11 |
* Network: false
|
@@ -15,7 +15,7 @@
|
|
15 |
* @package go-live-update-urls
|
16 |
*/
|
17 |
|
18 |
-
define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.3.
|
19 |
define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.4.0' );
|
20 |
define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
|
21 |
|
5 |
* Description: Updates all the Urls in the database to point to a new URL when making your site live or changing domains.
|
6 |
* Author: OnPoint Plugins
|
7 |
* Author URI: https://onpointplugins.com
|
8 |
+
* Version: 6.3.7
|
9 |
* Text Domain: go-live-update-urls
|
10 |
* Domain Path: /languages/
|
11 |
* Network: false
|
15 |
* @package go-live-update-urls
|
16 |
*/
|
17 |
|
18 |
+
define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.3.7' );
|
19 |
define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.4.0' );
|
20 |
define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
|
21 |
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: Mat Lipe, onpointplugins
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40onpointplugins%2ecom&lc=US&item_name=Go%20Live%20Update%20Urls&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
|
4 |
Tags: urls, launching, site changes, tools, domain, domains, domain changes, url changes
|
5 |
Requires at least: 5.2.0
|
6 |
-
Tested up to:
|
7 |
Requires PHP: 5.6.0
|
8 |
-
Stable tag: 6.3.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -65,9 +65,6 @@ Troubleshooting information may be found <a target="_blank" href="https://onpoin
|
|
65 |
<h3>Contribute</h3>
|
66 |
Send pull requests via the <a href="https://github.com/lipemat/go-live-update-urls/">Github Repo</a>
|
67 |
|
68 |
-
<h3>Contribute</h3>
|
69 |
-
Send pull requests via the <a href="https://github.com/lipemat/go-live-update-urls/">Github Repo</a>
|
70 |
-
|
71 |
== Installation ==
|
72 |
|
73 |
Use the standard WordPress plugins search and installer.
|
@@ -102,6 +99,11 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
|
|
102 |
3. Update prevented due to incomplete data entered.
|
103 |
|
104 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
105 |
= 6.3.6 =
|
106 |
* Improved internal URL utm structure.
|
107 |
* Tested to WordPress 5.9.0.
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40onpointplugins%2ecom&lc=US&item_name=Go%20Live%20Update%20Urls&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
|
4 |
Tags: urls, launching, site changes, tools, domain, domains, domain changes, url changes
|
5 |
Requires at least: 5.2.0
|
6 |
+
Tested up to: 6.0.0
|
7 |
Requires PHP: 5.6.0
|
8 |
+
Stable tag: 6.3.7
|
9 |
|
10 |
== Description ==
|
11 |
|
65 |
<h3>Contribute</h3>
|
66 |
Send pull requests via the <a href="https://github.com/lipemat/go-live-update-urls/">Github Repo</a>
|
67 |
|
|
|
|
|
|
|
68 |
== Installation ==
|
69 |
|
70 |
Use the standard WordPress plugins search and installer.
|
99 |
3. Update prevented due to incomplete data entered.
|
100 |
|
101 |
== Changelog ==
|
102 |
+
= 6.3.7 =
|
103 |
+
* Added "Settings" link to plugin actions.
|
104 |
+
* Introduced `Admin::get_url` method for retrieving URL or tools page.
|
105 |
+
* Fixed title of tools page in browser tab.
|
106 |
+
|
107 |
= 6.3.6 =
|
108 |
* Improved internal URL utm structure.
|
109 |
* Tested to WordPress 5.9.0.
|
src/Admin.php
CHANGED
@@ -13,6 +13,8 @@ use Go_Live_Update_Urls\Traits\Singleton;
|
|
13 |
class Admin {
|
14 |
use Singleton;
|
15 |
|
|
|
|
|
16 |
const OLD_URL = 'old_url';
|
17 |
const NEW_URL = 'new_url';
|
18 |
const NONCE = 'go-live-update-urls/nonce/update-tables';
|
@@ -92,7 +94,7 @@ class Admin {
|
|
92 |
* @return void
|
93 |
*/
|
94 |
public function failure_message() {
|
95 |
-
add_action( 'admin_notices',
|
96 |
?>
|
97 |
<div id="message" class="error fade">
|
98 |
<p>
|
@@ -112,7 +114,7 @@ class Admin {
|
|
112 |
* @since 5.0.0
|
113 |
*/
|
114 |
public function register_admin_page() {
|
115 |
-
add_management_page( '
|
116 |
$this,
|
117 |
'admin_page',
|
118 |
] );
|
@@ -126,7 +128,7 @@ class Admin {
|
|
126 |
*/
|
127 |
public function admin_page() {
|
128 |
wp_enqueue_script( 'go-live-update-urls/admin/admin-page/js', GO_LIVE_UPDATE_URLS_URL . 'resources/go-live-update-urls.js', [ 'jquery' ], GO_LIVE_UPDATE_URLS_VERSION, true );
|
129 |
-
|
130 |
|
131 |
?>
|
132 |
<div id="go-live-update-urls/admin-page">
|
@@ -306,4 +308,14 @@ class Admin {
|
|
306 |
</ul>
|
307 |
<?php
|
308 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
}
|
13 |
class Admin {
|
14 |
use Singleton;
|
15 |
|
16 |
+
const NAME = 'go-live-update-urls-settings';
|
17 |
+
|
18 |
const OLD_URL = 'old_url';
|
19 |
const NEW_URL = 'new_url';
|
20 |
const NONCE = 'go-live-update-urls/nonce/update-tables';
|
94 |
* @return void
|
95 |
*/
|
96 |
public function failure_message() {
|
97 |
+
add_action( 'admin_notices', function() {
|
98 |
?>
|
99 |
<div id="message" class="error fade">
|
100 |
<p>
|
114 |
* @since 5.0.0
|
115 |
*/
|
116 |
public function register_admin_page() {
|
117 |
+
add_management_page( 'Go Live Update Urls', 'Go Live', 'manage_options', static::NAME, [
|
118 |
$this,
|
119 |
'admin_page',
|
120 |
] );
|
128 |
*/
|
129 |
public function admin_page() {
|
130 |
wp_enqueue_script( 'go-live-update-urls/admin/admin-page/js', GO_LIVE_UPDATE_URLS_URL . 'resources/go-live-update-urls.js', [ 'jquery' ], GO_LIVE_UPDATE_URLS_VERSION, true );
|
131 |
+
wp_enqueue_style( 'go-live-update-urls/admin/admin-page/css', GO_LIVE_UPDATE_URLS_URL . 'resources/go-live-update-urls.css', [], GO_LIVE_UPDATE_URLS_VERSION );
|
132 |
|
133 |
?>
|
134 |
<div id="go-live-update-urls/admin-page">
|
308 |
</ul>
|
309 |
<?php
|
310 |
}
|
311 |
+
|
312 |
+
|
313 |
+
/**
|
314 |
+
* Get the URL of the tools page.
|
315 |
+
*
|
316 |
+
* @return string
|
317 |
+
*/
|
318 |
+
public function get_url() {
|
319 |
+
return admin_url( 'tools.php?page=' . static::NAME );
|
320 |
+
}
|
321 |
}
|
src/Core.php
CHANGED
@@ -121,13 +121,17 @@ class Core {
|
|
121 |
|
122 |
|
123 |
/**
|
124 |
-
* Display
|
|
|
|
|
|
|
125 |
*
|
126 |
* @param array $actions - Array of actions and their link.
|
127 |
*
|
128 |
* @return array
|
129 |
*/
|
130 |
public function plugin_action_link( array $actions ) {
|
|
|
131 |
if ( ! \defined( 'GO_LIVE_UPDATE_URLS_PRO_VERSION' ) ) {
|
132 |
$actions['go-pro'] = sprintf( '<a href="%1$s" target="_blank" style="color:#3db634;font-weight:700;">%2$s</a>', 'https://onpointplugins.com/product/go-live-update-urls-pro/?utm_source=wp-plugins&utm_campaign=gopro&utm_medium=wp-dash', __( 'Go PRO', 'go-live-update-urls' ) );
|
133 |
}
|
121 |
|
122 |
|
123 |
/**
|
124 |
+
* Display custom action links in plugins list.
|
125 |
+
*
|
126 |
+
* 1. Settings.
|
127 |
+
* 2. Go PRO.
|
128 |
*
|
129 |
* @param array $actions - Array of actions and their link.
|
130 |
*
|
131 |
* @return array
|
132 |
*/
|
133 |
public function plugin_action_link( array $actions ) {
|
134 |
+
$actions['settings'] = sprintf( '<a href="%1$s">%2$s</a>', Admin::instance()->get_url(), __( 'Settings', 'go-live-update-urls' ) );
|
135 |
if ( ! \defined( 'GO_LIVE_UPDATE_URLS_PRO_VERSION' ) ) {
|
136 |
$actions['go-pro'] = sprintf( '<a href="%1$s" target="_blank" style="color:#3db634;font-weight:700;">%2$s</a>', 'https://onpointplugins.com/product/go-live-update-urls-pro/?utm_source=wp-plugins&utm_campaign=gopro&utm_medium=wp-dash', __( 'Go PRO', 'go-live-update-urls' ) );
|
137 |
}
|