Plugin Directory

Changeset 1470378


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

WP 4.6 tests OK, cleanup php notices

Location:
my-network-comments/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • my-network-comments/trunk/ds_wp3_my_network_comments.php

    r927568 r1470378  
    44   Plugin URI: http://wordpress.org/extend/plugins/my-network-comments/
    55   Description: Tracks logged in network user comments on any site in the network: Dashboard->My Network Comments. Network Activate.
    6    Version: 3.9.1
     6   Version: 4.6
    77   Author: D. Sader
    88   Author URI: http://dsader.snowotherway.org
     
    4848            var $l10n_prefix;
    4949 
    50   function My_Network_Comments () {
     50  function __construct() {
    5151    $this->l10n_prefix = 'my-network-comments';   
    52     add_action( 'init', array(&$this, 'ds_localization_init' ));
    53     add_action( 'admin_menu', array(&$this, 'ds_tracked_comments_addmenu' ));
    54     add_action( 'comment_post', array(&$this, 'ds_track_user_comment_posting' ));
    55     add_action( 'trackback_post', array(&$this, 'ds_track_user_comment_posting' ));
    56     add_action( 'admin_init',array(&$this, 'ds_my_comments_update' ));
     52    add_action( 'init', array($this, 'ds_localization_init' ));
     53    add_action( 'admin_menu', array($this, 'ds_tracked_comments_addmenu' ));
     54    add_action( 'comment_post', array($this, 'ds_track_user_comment_posting' ));
     55    add_action( 'trackback_post', array($this, 'ds_track_user_comment_posting' ));
     56    add_action( 'admin_init',array($this, 'ds_my_comments_update' ));
    5757  }
    5858  function ds_localization_init() {
     
    6262
    6363  function ds_tracked_comments_addmenu() {
    64       $page = add_submenu_page('index.php', __('My Network Comments', $this->l10n_prefix), __('My Network Comments', $this->l10n_prefix), 'moderate_comments', 'my_network_comments', array(&$this, 'ds_my_network_comments' ));
     64      $page = add_submenu_page('index.php', __('My Network Comments', $this->l10n_prefix), __('My Network Comments', $this->l10n_prefix), 'moderate_comments', 'my_network_comments', array($this, 'ds_my_network_comments' ));
    6565  }
    6666  function ds_track_user_comment_posting() {
     
    377377 
    378378}
    379 if (class_exists("My_Network_Comments")) {
    380     $My_Network_Comments = new My_Network_Comments();   
    381 }
    382 ?>
     379new My_Network_Comments(); 
     380?>
  • my-network-comments/trunk/readme.txt

    r1470274 r1470378  
    3131== Changelog ==
    3232
    33 = 3.9.1 =
    34 
    35 * translatiom ready.
     33= 4.6 =
     34* WP 4.6 tests OK, cleanup php notices
    3635
    3736== Upgrade Notice ==
    3837
    39 = 3.9.1 =
    40 
    41 * translation ready.
     38= 4.6 =
     39* WP 4.6 tests OK, cleanup php notices
Note: See TracChangeset for help on using the changeset viewer.