diff --git a/README.md b/README.md index 2547491..d3f9bb4 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ * Tags: robotstxt, robots.txt, robots, robot, spiders, virtual, search, google, seo, plugin, network, mu, multisite, technerdia, tribalnerd * Requires at least: 3.8 * Tested up to: 4.6.0 -* Stable tag: 1.0.6 +* Stable tag: 1.0.7 A Simple Multisite Robots.txt Manager - Quickly and easily manage all robots.txt files on a Wordpress Multisite Website Network. @@ -313,6 +313,9 @@ For "real" Multisite HOST Networks, use the Wordpress plugin: BWP Google XML Sit :: Changelog -------- += 1.0.7 = + * Bug: Fixed bad calls from helper class causing options not saving for each site. Thanks https://github.com/benjaminniess + = 1.0.6 = * Bug: Corrected class_helper->getSitemapUrl() - printing "No Sitemap Found" in robots.txt files * Bug: Moved class_admin->updateNetwork()->throwMessage() outside of foreach when updating the network diff --git a/includes/class_admin.php b/includes/class_admin.php index 74a251b..01da164 100644 --- a/includes/class_admin.php +++ b/includes/class_admin.php @@ -34,6 +34,9 @@ class MsRobotstxtManager_Admin extends MsRobotstxtManager_Helper // Disable Plugin Features private $disabler; + // Helper Class + private $helpers; + /** * Set Class Vars @@ -50,6 +53,9 @@ function __construct( array $args = null ) $this->plugin_version = $args['plugin_version']; $this->menu_name = $args['menu_name']; $this->templates = $args['templates']; + + // Call Helper Class + $this->helpers = new MsRobotstxtManager_Helper(); } @@ -67,7 +73,7 @@ final public function initAdmin() add_action( 'network_admin_menu', array( &$this, 'displayMenu' ) ); // Append Website Rules To Robots.txt File - add_filter( 'msrtm_append_rules', array( &$this, 'appendRobotstxt') ); + add_filter( 'msrtm_append_rules', array( $this->helpers, 'appendRobotstxt') ); // Update Website add_filter( 'msrtm_update_website', array( &$this, 'updateWebsite') ); @@ -79,16 +85,16 @@ final public function initAdmin() add_filter( 'msrtm_preset_network', array( &$this, 'presetNetwork') ); // Extended Class: Ge Network Robots.txt File - add_filter( 'msrtm_network_robotstxt', array( &$this, 'getNetworkRobotstxt') ); + add_filter( 'msrtm_network_robotstxt', array( $this->helpers, 'getNetworkRobotstxt') ); // Extended Class: Get Website Robots.txt File - add_filter( 'msrtm_website_robotstxt', array( &$this, 'getWebsiteRobotstxt') ); + add_filter( 'msrtm_website_robotstxt', array( $this->helpers, 'getWebsiteRobotstxt') ); // Extended Class: Get Website Append Data - add_filter( 'msrtm_website_append', array( &$this, 'getWebsiteAppend') ); + add_filter( 'msrtm_website_append', array( $this->helpers, 'getWebsiteAppend') ); // Extended Class: Current Plugin Status - add_filter( 'msrtm_plugin_status', array( &$this, 'getPluginStatus') ); + add_filter( 'msrtm_plugin_status', array( $this->helpers, 'getPluginStatus') ); // Extended Class: Website Uplaod Path add_filter( 'msrtm_upload_path', array( &$this, 'getUploadPath') ); @@ -362,7 +368,7 @@ final private function echoPresets() final private function echoRemoves() { // Get The Plugins Status Based On The Admin Area - $status = $this->getPluginStatus(); + $status = $this->helpers->getPluginStatus(); // Website Disable if ( is_admin() && ! is_network_admin() && $status ) { @@ -407,7 +413,7 @@ final private function echoSettings() final private function statusMessages() { // Get The Plugins Status Based On The Admin Area - $status = $this->getPluginStatus(); + $status = $this->helpers->getPluginStatus(); // Network : Plugin Active if ( is_network_admin() && $status ) { diff --git a/multisite-robotstxt-manager.php b/multisite-robotstxt-manager.php index 8c95d02..9f54d8b 100644 --- a/multisite-robotstxt-manager.php +++ b/multisite-robotstxt-manager.php @@ -4,7 +4,7 @@ * Plugin URI: http://technerdia.com/msrtm/ * Description: A Multisite Network Robots.txt Manager. Quickly manage your Network Websites robots.txt files from a single administration area. * Tags: robotstxt, robots.txt, robots, robot, spiders, virtual, search, google, seo, plugin, network, wpmu, multisite, technerdia, tribalnerd - * Version: 1.0.6 + * Version: 1.0.7 * License: GPL * Copyright (c) 2016, techNerdia LLC. * Author: tribalNerd, Chris Winters @@ -27,7 +27,7 @@ { MsRobotstxtManagerConstants( Array( 'MS_ROBOTSTXT_MANAGER_BASE_URL' => get_bloginfo( 'url' ), - 'MS_ROBOTSTXT_MANAGER_VERSION' => '1.0.6', + 'MS_ROBOTSTXT_MANAGER_VERSION' => '1.0.7', 'MS_ROBOTSTXT_MANAGER_WP_MIN_VERSION' => '3.8', 'MS_ROBOTSTXT_MANAGER_PLUGIN_FILE' => __FILE__, diff --git a/readme.txt b/readme.txt index ff99a16..9497b06 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Donate link: http://technerdia.com/donate.html Tags: robotstxt, robots.txt, robots, robot, spiders, virtual, search, google, seo, plugin, network, mu, multisite, technerdia, tribalnerd Requires at least: 3.8 Tested up to: 4.6.0 -Stable tag: 1.0.6 +Stable tag: 1.0.7 A Simple Multisite Robots.txt Manager - Quickly and easily manage all robots.txt files on a Wordpress Multisite Website Network. @@ -305,6 +305,9 @@ For "real" Multisite HOST Networks, use the Wordpress plugin: BWP Google XML Sit == Changelog == += 1.0.7 = + * Bug: Fixed bad calls from helper class causing options not saving for each site. Thanks Benjamin https://github.com/benjaminniess + = 1.0.6 = * Bug: Corrected class_helper->getSitemapUrl() - printing "No Sitemap Found" in robots.txt files * Bug: Moved class_admin->updateNetwork()->throwMessage() outside of foreach when updating the network