WP Hide Post - Version 2.0.2

Version Description

Release Date - 12 August 2016

  • Fixed an issue which was displaying error when activating the plugin
Download this release

Release Info

Developer rmahfoud
Plugin Icon wp plugin WP Hide Post
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

includes/class-wp-hide-post-activator.php CHANGED
@@ -30,16 +30,16 @@ class wp_hide_post_Activator
30
  *
31
  * @since 1.2.2
32
  */
33
- public static function activate()
34
  {
35
  $this->migrate();
36
  update_option('wphp_version', wp_hide_post()->info('version'));
37
  }
38
 
39
- public function migrate()
40
  {
41
  wphp_init();
42
- $this->wphp_migrate_db(); // in case any tables were created, clean them up
43
  $this->remove_wp_low_profiler(); // remove the files of the plugin
44
  }
45
  /**
30
  *
31
  * @since 1.2.2
32
  */
33
+ public function activate()
34
  {
35
  $this->migrate();
36
  update_option('wphp_version', wp_hide_post()->info('version'));
37
  }
38
 
39
+ public function migrate()
40
  {
41
  wphp_init();
42
+ $this->migrate_db(); // in case any tables were created, clean them up
43
  $this->remove_wp_low_profiler(); // remove the files of the plugin
44
  }
45
  /**
includes/class-wp-hide-post-deactivator.php CHANGED
@@ -29,7 +29,7 @@ class wp_hide_post_Deactivator {
29
  *
30
  * @since 1.2.2
31
  */
32
- public static function deactivate() {
33
 
34
  }
35
 
29
  *
30
  * @since 1.2.2
31
  */
32
+ public function deactivate() {
33
 
34
  }
35
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://scriptburn.com/wp-hide-post/
4
  Tags: SEO,hide,show,visbility,privacy,customization,sitemap,filter
5
  Requires at least: 2.6
6
  Tested up to: 4.5.3
7
- Stable tag: 2.0.1
8
  License: GPLv2
9
 
10
  Control the visibility of items on your blog by making posts/pages hidden on some parts , while still visible in other parts and search engines.
@@ -111,6 +111,11 @@ Ditto. It will be deleted. If you had any existing data (if you had it active be
111
 
112
  == Changelog ==
113
 
 
 
 
 
 
114
  = 2.0 =
115
  *Release Date - 11 August 2016*
116
 
4
  Tags: SEO,hide,show,visbility,privacy,customization,sitemap,filter
5
  Requires at least: 2.6
6
  Tested up to: 4.5.3
7
+ Stable tag: 2.0.2
8
  License: GPLv2
9
 
10
  Control the visibility of items on your blog by making posts/pages hidden on some parts , while still visible in other parts and search engines.
111
 
112
  == Changelog ==
113
 
114
+ = 2.0.2 =
115
+ *Release Date - 12 August 2016*
116
+
117
+ * Fixed an issue which was displaying error when activating the plugin
118
+
119
  = 2.0 =
120
  *Release Date - 11 August 2016*
121
 
wp-hide-post.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WP Hide Post
17
  * Plugin URI: http://scriptburn.com/wp-hide-post
18
  * Description: Control the visibility of items on your blog by making posts/pages hidden on some parts , while still visible in other parts and search engines.
19
- * Version: 2.0.1
20
  * Author: scriptburn.com
21
  * Author URI: http://www.scriptburn.com
22
  * License: GPL-2.0+
@@ -38,7 +38,8 @@ define('WPHP_PLUGIN_DIR', __DIR__ . "/");
38
  function activate_wp_hide_post()
39
  {
40
  require_once plugin_dir_path(__FILE__) . 'includes/class-wp-hide-post-activator.php';
41
- wp_hide_post_Activator::activate();
 
42
  }
43
 
44
  /**
@@ -48,7 +49,8 @@ function activate_wp_hide_post()
48
  function deactivate_wp_hide_post()
49
  {
50
  require_once plugin_dir_path(__FILE__) . 'includes/class-wp-hide-post-deactivator.php';
51
- wp_hide_post_Deactivator::deactivate();
 
52
  }
53
 
54
  register_activation_hook(__FILE__, 'activate_wp_hide_post');
16
  * Plugin Name: WP Hide Post
17
  * Plugin URI: http://scriptburn.com/wp-hide-post
18
  * Description: Control the visibility of items on your blog by making posts/pages hidden on some parts , while still visible in other parts and search engines.
19
+ * Version: 2.0.2
20
  * Author: scriptburn.com
21
  * Author URI: http://www.scriptburn.com
22
  * License: GPL-2.0+
38
  function activate_wp_hide_post()
39
  {
40
  require_once plugin_dir_path(__FILE__) . 'includes/class-wp-hide-post-activator.php';
41
+ $wphp=new wp_hide_post_Activator();
42
+ $wphp->activate();
43
  }
44
 
45
  /**
49
  function deactivate_wp_hide_post()
50
  {
51
  require_once plugin_dir_path(__FILE__) . 'includes/class-wp-hide-post-deactivator.php';
52
+ $wphp=new wp_hide_post_Deactivator();
53
+ $wphp->deactivate();
54
  }
55
 
56
  register_activation_hook(__FILE__, 'activate_wp_hide_post');