Changeset 1470378
- Timestamp:
- 08/08/2016 11:28:39 PM (10 years ago)
- Location:
- my-network-comments/trunk
- Files:
-
- 2 edited
-
ds_wp3_my_network_comments.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
my-network-comments/trunk/ds_wp3_my_network_comments.php
r927568 r1470378 4 4 Plugin URI: http://wordpress.org/extend/plugins/my-network-comments/ 5 5 Description: Tracks logged in network user comments on any site in the network: Dashboard->My Network Comments. Network Activate. 6 Version: 3.9.16 Version: 4.6 7 7 Author: D. Sader 8 8 Author URI: http://dsader.snowotherway.org … … 48 48 var $l10n_prefix; 49 49 50 function My_Network_Comments() {50 function __construct() { 51 51 $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' )); 57 57 } 58 58 function ds_localization_init() { … … 62 62 63 63 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' )); 65 65 } 66 66 function ds_track_user_comment_posting() { … … 377 377 378 378 } 379 if (class_exists("My_Network_Comments")) { 380 $My_Network_Comments = new My_Network_Comments(); 381 } 382 ?> 379 new My_Network_Comments(); 380 ?> -
my-network-comments/trunk/readme.txt
r1470274 r1470378 31 31 == Changelog == 32 32 33 = 3.9.1 = 34 35 * translatiom ready. 33 = 4.6 = 34 * WP 4.6 tests OK, cleanup php notices 36 35 37 36 == Upgrade Notice == 38 37 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.