Version Description
Download this release
Release Info
Developer | barrykooij |
Plugin | Related Posts for WordPress |
Version | 1.7.3 |
Comparing to | |
See all releases |
Code changes from version 1.7.2 to 1.7.3
classes/class-is-installing-notice.php
CHANGED
@@ -38,11 +38,11 @@ if ( ! class_exists( 'RP4WP_Is_Installing_Notice' ) ) {
|
|
38 |
|
39 |
// Check if we need to dismiss the notice
|
40 |
if ( isset( $_GET['rp4wp_hide_is_installing'] ) ) {
|
41 |
-
|
42 |
}
|
43 |
|
44 |
// Check if we are currently installing
|
45 |
-
if ( false !=
|
46 |
$this->display();
|
47 |
}
|
48 |
|
38 |
|
39 |
// Check if we need to dismiss the notice
|
40 |
if ( isset( $_GET['rp4wp_hide_is_installing'] ) ) {
|
41 |
+
delete_option( RP4WP_Constants::OPTION_IS_INSTALLING );
|
42 |
}
|
43 |
|
44 |
// Check if we are currently installing
|
45 |
+
if ( false != get_option( RP4WP_Constants::OPTION_IS_INSTALLING, false ) && ( ! isset( $_GET['page'] ) || 'rp4wp_install' != $_GET['page'] ) ) {
|
46 |
$this->display();
|
47 |
}
|
48 |
|
classes/class-nag-manager.php
CHANGED
@@ -32,7 +32,7 @@ if ( ! class_exists( 'RP4WP_Nag_Manager' ) ) {
|
|
32 |
private function insert_install_date() {
|
33 |
$datetime_now = new DateTime();
|
34 |
$date_string = $datetime_now->format( 'Y-m-d' );
|
35 |
-
|
36 |
|
37 |
return $date_string;
|
38 |
}
|
@@ -46,7 +46,7 @@ if ( ! class_exists( 'RP4WP_Nag_Manager' ) ) {
|
|
46 |
* @return DateTime
|
47 |
*/
|
48 |
private function get_install_date() {
|
49 |
-
$date_string =
|
50 |
if ( $date_string == '' ) {
|
51 |
// There is no install date, plugin was installed before version 1.2.0. Add it now.
|
52 |
$date_string = $this->insert_install_date();
|
32 |
private function insert_install_date() {
|
33 |
$datetime_now = new DateTime();
|
34 |
$date_string = $datetime_now->format( 'Y-m-d' );
|
35 |
+
add_option( RP4WP_Constants::OPTION_INSTALL_DATE, $date_string, '', 'no' );
|
36 |
|
37 |
return $date_string;
|
38 |
}
|
46 |
* @return DateTime
|
47 |
*/
|
48 |
private function get_install_date() {
|
49 |
+
$date_string = get_option( RP4WP_Constants::OPTION_INSTALL_DATE, '' );
|
50 |
if ( $date_string == '' ) {
|
51 |
// There is no install date, plugin was installed before version 1.2.0. Add it now.
|
52 |
$date_string = $this->insert_install_date();
|
classes/class-rp4wp.php
CHANGED
@@ -8,7 +8,7 @@ class RP4WP {
|
|
8 |
|
9 |
private static $instance = null;
|
10 |
|
11 |
-
const VERSION = '1.7.
|
12 |
|
13 |
/**
|
14 |
* @var RP4WP_Settings
|
@@ -70,10 +70,10 @@ class RP4WP {
|
|
70 |
load_plugin_textdomain( 'related-posts-for-wp', false, dirname( plugin_basename( RP4WP_PLUGIN_FILE ) ) . '/languages/' );
|
71 |
|
72 |
// Check if we need to run the installer
|
73 |
-
if ( is_admin() &&
|
74 |
|
75 |
// Delete do install site option
|
76 |
-
|
77 |
|
78 |
// Redirect to installation wizard
|
79 |
wp_redirect( admin_url() . '?page=rp4wp_install', 307 );
|
8 |
|
9 |
private static $instance = null;
|
10 |
|
11 |
+
const VERSION = '1.7.3';
|
12 |
|
13 |
/**
|
14 |
* @var RP4WP_Settings
|
70 |
load_plugin_textdomain( 'related-posts-for-wp', false, dirname( plugin_basename( RP4WP_PLUGIN_FILE ) ) . '/languages/' );
|
71 |
|
72 |
// Check if we need to run the installer
|
73 |
+
if ( is_admin() && get_option( RP4WP_Constants::OPTION_DO_INSTALL, false ) ) {
|
74 |
|
75 |
// Delete do install site option
|
76 |
+
delete_option( RP4WP_Constants::OPTION_DO_INSTALL );
|
77 |
|
78 |
// Redirect to installation wizard
|
79 |
wp_redirect( admin_url() . '?page=rp4wp_install', 307 );
|
classes/hooks/class-hook-page-install.php
CHANGED
@@ -90,10 +90,10 @@ class RP4WP_Hook_Page_Install extends RP4WP_Hook {
|
|
90 |
// Check installer resume options
|
91 |
if ( 1 == $cur_step ) {
|
92 |
// Add is installing site option
|
93 |
-
|
94 |
} elseif ( 3 == $cur_step ) {
|
95 |
// Installer is done, remove the option
|
96 |
-
|
97 |
}
|
98 |
|
99 |
?>
|
90 |
// Check installer resume options
|
91 |
if ( 1 == $cur_step ) {
|
92 |
// Add is installing site option
|
93 |
+
add_option( RP4WP_Constants::OPTION_IS_INSTALLING, true );
|
94 |
} elseif ( 3 == $cur_step ) {
|
95 |
// Installer is done, remove the option
|
96 |
+
delete_option( RP4WP_Constants::OPTION_IS_INSTALLING );
|
97 |
}
|
98 |
|
99 |
?>
|
includes/installer-functions.php
CHANGED
@@ -13,5 +13,5 @@ function rp4wp_activate_plugin() {
|
|
13 |
$wpdb->query( $sql );
|
14 |
|
15 |
// Redirect to installation wizard
|
16 |
-
|
17 |
}
|
13 |
$wpdb->query( $sql );
|
14 |
|
15 |
// Redirect to installation wizard
|
16 |
+
add_option( 'rp4wp_do_install', true );
|
17 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.relatedpostsforwp.com/
|
|
4 |
Tags: related posts for wordpress, related posts for wp, simple related posts, easy related posts, related posts, related, relations, internal links, seo, bounce rate
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -107,6 +107,9 @@ There is one custom table created for the post cache, this table will however no
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
|
|
|
|
|
|
110 |
= 1.7.2: October 27, 2014 =
|
111 |
* Fixed a bug where permission were checked to soon.
|
112 |
* Removed an unused query var.
|
4 |
Tags: related posts for wordpress, related posts for wp, simple related posts, easy related posts, related posts, related, relations, internal links, seo, bounce rate
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 1.7.3
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 1.7.3: November 10, 2014 =
|
111 |
+
* Fixed multisite/network compatibility
|
112 |
+
|
113 |
= 1.7.2: October 27, 2014 =
|
114 |
* Fixed a bug where permission were checked to soon.
|
115 |
* Removed an unused query var.
|
related-posts-for-wp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Related Posts for WordPress
|
4 |
Plugin URI: http://www.relatedpostsforwp.com/
|
5 |
Description: Related Posts for WordPress, the best way to display related posts in WordPress.
|
6 |
-
Version: 1.7.
|
7 |
Author: Barry Kooij
|
8 |
Author URI: http://www.barrykooij.com/
|
9 |
License: GPL v3
|
3 |
Plugin Name: Related Posts for WordPress
|
4 |
Plugin URI: http://www.relatedpostsforwp.com/
|
5 |
Description: Related Posts for WordPress, the best way to display related posts in WordPress.
|
6 |
+
Version: 1.7.3
|
7 |
Author: Barry Kooij
|
8 |
Author URI: http://www.barrykooij.com/
|
9 |
License: GPL v3
|