Plugin Directory

Changeset 1470375


Ignore:
Timestamp:
08/08/2016 11:27:47 PM (10 years ago)
Author:
dsader
Message:

WP 4.6 tests OK, cleanup php notices

Location:
limit-post-revisions-network-option/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • limit-post-revisions-network-option/trunk/ds_wp3_limit_revisions.php

    r279841 r1470375  
    55Description: Adds Network SuperAdmin-->Options to limit, or disable, the number of post revisions and autosave interval.
    66Author: D. Sader
    7 Version: 3.0.1
     7Version: 4.6
    88Author URI: http://dsader.snowotherway.org
    99Network: true
     
    2020
    2121*/
    22 class ds_revisions_limit {
     22class DS_Revisions_Limit {
    2323
    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'));  }
    2628
    2729    function limit($limit) {
     
    7375}
    7476
    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 }
     77new DS_Revisions_Limit();   
    8478?>
  • limit-post-revisions-network-option/trunk/readme.txt

    r1470270 r1470375  
    3939== Changelog ==
    4040
    41 = 3.0.1 =
    42 
    43 Initial Release for WP3.x multisite
     41= 4.6 =
     42* WP 4.6 tests OK, cleanup php notices
    4443
    4544== Upgrade Notice ==
    4645
    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.