Skip to content

Commit

Permalink
Version 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tribalNerd committed Oct 11, 2016
1 parent af76183 commit 5e314b1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down
20 changes: 13 additions & 7 deletions includes/class_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class MsRobotstxtManager_Admin extends MsRobotstxtManager_Helper
// Disable Plugin Features
private $disabler;

// Helper Class
private $helpers;


/**
* Set Class Vars
Expand All @@ -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();
}


Expand All @@ -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') );
Expand All @@ -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') );
Expand Down Expand Up @@ -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 ) {
Expand Down Expand Up @@ -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 ) {
Expand Down
4 changes: 2 additions & 2 deletions multisite-robotstxt-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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__,
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5e314b1

Please sign in to comment.