Plugin Directory

Changeset 1674788


Ignore:
Timestamp:
06/09/2017 01:38:00 PM (9 years ago)
Author:
tribalNerd
Message:

Version 1.0.12

Location:
multisite-robotstxt-manager
Files:
6 edited
11 copied

Legend:

Unmodified
Added
Removed
  • multisite-robotstxt-manager/tags/1.0.12/classes/class-cleaner.php

    r1643245 r1674788  
    287287                    delete_option( 'rewrite_rules' );
    288288                    update_option( 'rewrite_rules', $rules );
    289 
    290                     // Flush Rules
    291                     flush_rewrite_rules();
    292289                }
    293290
  • multisite-robotstxt-manager/tags/1.0.12/classes/class-extended.php

    r1644353 r1674788  
    165165            }
    166166
    167             // Throw Message
     167            // Set Message
    168168            if ( ! empty( $message ) ) {
    169169                // Set Message Type, Default Error
    170170                $type = ( $notice_type == "updated" ) ? "updated" : "error";
    171171
    172                 // Return Message
    173                 add_settings_error( $slug, $slug, $message, $type );
     172                // Create Message Option
     173                update_option( $this->option_name . 'message', array( 'type' => $type, 'message' => $message ), 'no' );
     174
     175                // Throw Notice
     176                add_action( 'network_admin_notices', array( $this, 'notice' ) );
     177                add_action( 'admin_notices', array( $this, 'notice' ) );
     178            }
     179        }
     180
     181
     182        /**
     183         * @about Display Messages To User
     184         */
     185        final public function notice()
     186        {
     187            // Get Message
     188            $notice = get_option( $this->option_name . 'message' );
     189
     190            if ( $notice && is_array( $notice ) ) {
     191                // Delete Message
     192                delete_option( $this->option_name . 'message' );
     193
     194                // Message HTML
     195                echo '<div class="' . esc_html( $notice['type'] ) . ' notice is-dismissible">';
     196                echo '<p><strong>' . esc_html( $notice['message'] ) . '</strong></p>';
     197                echo '<button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
    174198            }
    175199        }
  • multisite-robotstxt-manager/tags/1.0.12/multisite-robotstxt-manager.php

    r1644353 r1674788  
    55 * Description: A Multisite Network Robots.txt Manager. Quickly manage your Network Websites robots.txt files from a single administration area.
    66 * Tags: robotstxt, robots.txt, robots, robot, spiders, virtual, search, google, seo, plugin, network, wpmu, multisite, technerdia, tribalnerd
    7  * Version: 1.0.11
     7 * Version: 1.0.12
    88 * License: GNU GPLv3
    99 * Copyright (c) 2017 Chris Winters
     
    2424        'MS_ROBOTSTXT_MANAGER'                  => true,
    2525        'MS_ROBOTSTXT_MANAGER_BASE_URL'         => get_bloginfo( 'url' ),
    26         'MS_ROBOTSTXT_MANAGER_VERSION'          => '1.0.11',
     26        'MS_ROBOTSTXT_MANAGER_VERSION'          => '1.0.12',
    2727        'MS_ROBOTSTXT_MANAGER_WP_MIN_VERSION'   => '3.8',
    2828
  • multisite-robotstxt-manager/tags/1.0.12/readme.txt

    r1644353 r1674788  
    44Tags: robotstxt, robots.txt, robots, robot, spiders, virtual, search, google, seo, plugin, network, mu, multisite, technerdia, tribalnerd
    55Requires at least: 3.8
    6 Tested up to: 4.7.4
    7 Stable tag: 1.0.11
     6Tested up to: 4.8
     7Stable tag: 1.0.12
    88License: GNU GPLv3
    99License URI: https://github.com/tribalNerd/ptt-manager/blob/master/LICENSE
     
    259259* Search For Others: http://wordpress.org/extend/plugins/search.php?q=multisite+sitemap
    260260
    261 For "real" Multisite HOST Networks, use the WordPress plugin: BWP Google XML Sitemaps - This plugin will list each Websites Sitemap URL's in the Root Network Website's robots.txt file.
     261Multisite HOST Networks, use the WordPress plugin: BWP Google XML Sitemaps - This plugin will list each Websites Sitemap URL's in the Root Network Website's robots.txt file.
    262262
    263263
    264264== Changelog ==
     265
     266= 1.0.12 2017-9-6 =
     267
     268* Tested: Wordpress Version 4.8
     269* Changed: Network & Admin Area Plugin Update Notice Handler.
     270* Fixed: Remove Rewrite Rule Flush After Correcting Rewrite Rules.
    265271
    266272= 1.0.11 2017-24-4 =
  • multisite-robotstxt-manager/tags/1.0.12/templates/header.php

    r1623330 r1674788  
    44
    55<div class="wrap">
    6 <h2><span class="dashicons dashicons-category"></span> <?php echo MS_ROBOTSTXT_MANAGER_PAGE_NAME;?></h2>
     6<h2><span class="dashicons dashicons-category"></span> <?php echo $this->plugin_name;?></h2>
    77
    88<?php echo $this->tabs();?>
  • multisite-robotstxt-manager/trunk/classes/class-cleaner.php

    r1643245 r1674788  
    287287                    delete_option( 'rewrite_rules' );
    288288                    update_option( 'rewrite_rules', $rules );
    289 
    290                     // Flush Rules
    291                     flush_rewrite_rules();
    292289                }
    293290
  • multisite-robotstxt-manager/trunk/classes/class-extended.php

    r1644353 r1674788  
    165165            }
    166166
    167             // Throw Message
     167            // Set Message
    168168            if ( ! empty( $message ) ) {
    169169                // Set Message Type, Default Error
    170170                $type = ( $notice_type == "updated" ) ? "updated" : "error";
    171171
    172                 // Return Message
    173                 add_settings_error( $slug, $slug, $message, $type );
     172                // Create Message Option
     173                update_option( $this->option_name . 'message', array( 'type' => $type, 'message' => $message ), 'no' );
     174
     175                // Throw Notice
     176                add_action( 'network_admin_notices', array( $this, 'notice' ) );
     177                add_action( 'admin_notices', array( $this, 'notice' ) );
     178            }
     179        }
     180
     181
     182        /**
     183         * @about Display Messages To User
     184         */
     185        final public function notice()
     186        {
     187            // Get Message
     188            $notice = get_option( $this->option_name . 'message' );
     189
     190            if ( $notice && is_array( $notice ) ) {
     191                // Delete Message
     192                delete_option( $this->option_name . 'message' );
     193
     194                // Message HTML
     195                echo '<div class="' . esc_html( $notice['type'] ) . ' notice is-dismissible">';
     196                echo '<p><strong>' . esc_html( $notice['message'] ) . '</strong></p>';
     197                echo '<button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
    174198            }
    175199        }
  • multisite-robotstxt-manager/trunk/multisite-robotstxt-manager.php

    r1644353 r1674788  
    55 * Description: A Multisite Network Robots.txt Manager. Quickly manage your Network Websites robots.txt files from a single administration area.
    66 * Tags: robotstxt, robots.txt, robots, robot, spiders, virtual, search, google, seo, plugin, network, wpmu, multisite, technerdia, tribalnerd
    7  * Version: 1.0.11
     7 * Version: 1.0.12
    88 * License: GNU GPLv3
    99 * Copyright (c) 2017 Chris Winters
     
    2424        'MS_ROBOTSTXT_MANAGER'                  => true,
    2525        'MS_ROBOTSTXT_MANAGER_BASE_URL'         => get_bloginfo( 'url' ),
    26         'MS_ROBOTSTXT_MANAGER_VERSION'          => '1.0.11',
     26        'MS_ROBOTSTXT_MANAGER_VERSION'          => '1.0.12',
    2727        'MS_ROBOTSTXT_MANAGER_WP_MIN_VERSION'   => '3.8',
    2828
  • multisite-robotstxt-manager/trunk/readme.txt

    r1644353 r1674788  
    44Tags: robotstxt, robots.txt, robots, robot, spiders, virtual, search, google, seo, plugin, network, mu, multisite, technerdia, tribalnerd
    55Requires at least: 3.8
    6 Tested up to: 4.7.4
    7 Stable tag: 1.0.11
     6Tested up to: 4.8
     7Stable tag: 1.0.12
    88License: GNU GPLv3
    99License URI: https://github.com/tribalNerd/ptt-manager/blob/master/LICENSE
     
    259259* Search For Others: http://wordpress.org/extend/plugins/search.php?q=multisite+sitemap
    260260
    261 For "real" Multisite HOST Networks, use the WordPress plugin: BWP Google XML Sitemaps - This plugin will list each Websites Sitemap URL's in the Root Network Website's robots.txt file.
     261Multisite HOST Networks, use the WordPress plugin: BWP Google XML Sitemaps - This plugin will list each Websites Sitemap URL's in the Root Network Website's robots.txt file.
    262262
    263263
    264264== Changelog ==
     265
     266= 1.0.12 2017-9-6 =
     267
     268* Tested: Wordpress Version 4.8
     269* Changed: Network & Admin Area Plugin Update Notice Handler.
     270* Fixed: Remove Rewrite Rule Flush After Correcting Rewrite Rules.
    265271
    266272= 1.0.11 2017-24-4 =
  • multisite-robotstxt-manager/trunk/templates/header.php

    r1623330 r1674788  
    44
    55<div class="wrap">
    6 <h2><span class="dashicons dashicons-category"></span> <?php echo MS_ROBOTSTXT_MANAGER_PAGE_NAME;?></h2>
     6<h2><span class="dashicons dashicons-category"></span> <?php echo $this->plugin_name;?></h2>
    77
    88<?php echo $this->tabs();?>
Note: See TracChangeset for help on using the changeset viewer.