Changeset 1470375
- Timestamp:
- 08/08/2016 11:27:47 PM (10 years ago)
- Location:
- limit-post-revisions-network-option/trunk
- Files:
-
- 2 edited
-
ds_wp3_limit_revisions.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
limit-post-revisions-network-option/trunk/ds_wp3_limit_revisions.php
r279841 r1470375 5 5 Description: Adds Network SuperAdmin-->Options to limit, or disable, the number of post revisions and autosave interval. 6 6 Author: D. Sader 7 Version: 3.0.17 Version: 4.6 8 8 Author URI: http://dsader.snowotherway.org 9 9 Network: true … … 20 20 21 21 */ 22 class ds_revisions_limit {22 class DS_Revisions_Limit { 23 23 24 function ds_revisions_limit() { 25 } 24 function __construct() { 25 add_filter( 'plugins_loaded', array($this, 'limit')); 26 add_action( 'update_wpmu_options', array($this, 'update')); 27 add_action( 'wpmu_options', array($this, 'options_page')); } 26 28 27 29 function limit($limit) { … … 73 75 } 74 76 75 if (class_exists("ds_revisions_limit")) { 76 $ds_revisions_limit = new ds_revisions_limit(); 77 } 78 79 if (isset($ds_revisions_limit)) { 80 add_filter( 'plugins_loaded', array(&$ds_revisions_limit, 'limit')); 81 add_action( 'update_wpmu_options', array(&$ds_revisions_limit, 'update')); 82 add_action( 'wpmu_options', array(&$ds_revisions_limit, 'options_page')); 83 } 77 new DS_Revisions_Limit(); 84 78 ?> -
limit-post-revisions-network-option/trunk/readme.txt
r1470270 r1470375 39 39 == Changelog == 40 40 41 = 3.0.1 = 42 43 Initial Release for WP3.x multisite 41 = 4.6 = 42 * WP 4.6 tests OK, cleanup php notices 44 43 45 44 == Upgrade Notice == 46 45 47 = 3.0.1 = 48 49 WPMU2.9.2 version no longer supported. 46 = 4.6 = 47 * WP 4.6 tests OK, cleanup php notices
Note: See TracChangeset
for help on using the changeset viewer.