Changeset 334646
- Timestamp:
- 01/19/2011 04:07:21 PM (15 years ago)
- Location:
- nginx-manager/trunk
- Files:
-
- 2 edited
-
nginx-manager.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nginx-manager/trunk/nginx-manager.php
r326644 r334646 5 5 Description: Manage Nginx cache 6 6 Author: Simone Fumagalli & Marco Zanzottera 7 Version: 1.2 7 Version: 1.2.1 8 8 Author URI: http://www.iliveinperego.com 9 9 Network: true … … 44 44 class nginxmLoader { 45 45 46 var $version = '1.2 '; // Plugin version46 var $version = '1.2.1'; // Plugin version 47 47 var $db_version = '1.2'; // DB version, change it to show the upgrade page 48 48 var $minium_WP = '3.0'; … … 112 112 add_action( 'edit_attachment', array(&$nginxmNginx, 'purgeImageOnEdit'), 100, 1 ); 113 113 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 114 117 115 118 /* Integrations with other plugins */ … … 249 252 } 250 253 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 251 275 } 252 276 -
nginx-manager/trunk/readme.txt
r326626 r334646 3 3 Tags: cache, nginx, purge, performance 4 4 Requires at least: 3.0 5 Tested up to: 3.0. 35 Tested up to: 3.0.4 6 6 Stable tag: trunk 7 7 … … 63 63 == Changelog == 64 64 65 = 1.2.1 (2011 01 19) = 66 * EDIT : Set default options when a new blog is installed 67 65 68 = 1.2 (2010 12 28) = 66 69 * NEW : You can now purge custom post types and tag archives
Note: See TracChangeset
for help on using the changeset viewer.