Plugin Directory

Changeset 334646


Ignore:
Timestamp:
01/19/2011 04:07:21 PM (15 years ago)
Author:
rukbat
Message:

Upgrade to version 1.2.1

Location:
nginx-manager/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nginx-manager/trunk/nginx-manager.php

    r326644 r334646  
    55Description: Manage Nginx cache
    66Author: Simone Fumagalli & Marco Zanzottera
    7 Version: 1.2
     7Version: 1.2.1
    88Author URI: http://www.iliveinperego.com
    99Network: true
     
    4444    class nginxmLoader {
    4545       
    46         var $version            = '1.2'; // Plugin version
     46        var $version            = '1.2.1'; // Plugin version
    4747        var $db_version         = '1.2'; // DB version, change it to show the upgrade page
    4848        var $minium_WP          = '3.0';
     
    112112            add_action( 'edit_attachment',      array(&$nginxmNginx, 'purgeImageOnEdit'), 100, 1 );
    113113           
     114            /* Check new site added, @since Nginx Manager 1.2.1 */
     115            add_action( 'wpmu_new_blog', array(&$this, 'update_new_blog_options'), 10, 1 );
     116           
    114117           
    115118            /* Integrations with other plugins */
     
    249252        }
    250253       
     254        /**
     255         * Set default local options for the new blog
     256         *
     257         * @param $blog_id
     258         * @since Nginx Manager 1.2.1
     259         */
     260        function update_new_blog_options( $blog_id ) {
     261           
     262            global $nginxmNginx;
     263           
     264            include_once (dirname (__FILE__) . '/admin/install.php');
     265           
     266            $nginxmNginx->log( "New site added (id $blog_id)" );
     267           
     268            $nginxm_options = nginxm_get_default_local_options();
     269           
     270            update_blog_option( $blog_id, "nginxm_options", $nginxm_options, true );
     271            $nginxmNginx->log( "Default local options updated for the new blog (id $blog_id)" );
     272           
     273        }
     274       
    251275    }
    252276   
  • nginx-manager/trunk/readme.txt

    r326626 r334646  
    33Tags: cache, nginx, purge, performance
    44Requires at least: 3.0
    5 Tested up to: 3.0.3
     5Tested up to: 3.0.4
    66Stable tag: trunk
    77
     
    6363== Changelog ==
    6464
     65= 1.2.1 (2011 01 19) =
     66* EDIT : Set default options when a new blog is installed
     67
    6568= 1.2 (2010 12 28) =
    6669* NEW : You can now purge custom post types and tag archives
Note: See TracChangeset for help on using the changeset viewer.