Changeset 1258857
- Timestamp:
- 10/03/2015 04:08:38 PM (11 years ago)
- Location:
- limit-posts/trunk
- Files:
-
- 2 edited
-
limit-posts.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
limit-posts/trunk/limit-posts.php
r1231986 r1258857 29 29 30 30 //Plugin name 31 if (!defined('CB_LIMIT_POSTS_PLUGIN_NAME')) 31 if (!defined('CB_LIMIT_POSTS_PLUGIN_NAME')) { 32 32 define('CB_LIMIT_POSTS_PLUGIN_NAME', trim(dirname(plugin_basename(__FILE__)), '/')); 33 } 33 34 34 35 // Plugin url 35 if (!defined('CB_LIMIT_POSTS_PLUGIN_URL')) 36 if (!defined('CB_LIMIT_POSTS_PLUGIN_URL')) { 36 37 define('CB_LIMIT_POSTS_PLUGIN_URL', WP_PLUGIN_URL . '/' . CB_LIMIT_POSTS_PLUGIN_NAME); 38 } 37 39 38 40 class CBLimitPosts{ … … 71 73 public function createSettingsMenu(){ 72 74 if($this->multiSite){ 73 add_options_page(__(self::$pageTitle, self::$textDomain), __(self::$menuTitle, self::$textDomain), 'manage_network', 'limit_posts_menu', array($this, 'outputSettingsPage'));75 add_options_page(__(self::$pageTitle, 'limit-posts'), __(self::$menuTitle, 'limit-posts'), 'manage_network', 'limit_posts_menu', array($this, 'outputSettingsPage')); 74 76 } 75 77 else{ 76 add_options_page(__(self::$pageTitle, self::$textDomain), __(self::$menuTitle, self::$textDomain), 'manage_options', 'limit_posts_menu', array($this, 'outputSettingsPage'));78 add_options_page(__(self::$pageTitle, 'limit-posts'), __(self::$menuTitle, 'limit-posts'), 'manage_options', 'limit_posts_menu', array($this, 'outputSettingsPage')); 77 79 } 78 80 } … … 85 87 public function outputSettingsPage(){ 86 88 if($this->multiSite && !current_user_can('manage_network')){ 87 wp_die( __('You do not have sufficient permissions to access this page.' ));89 wp_die( __('You do not have sufficient permissions to access this page.', 'limit-posts')); 88 90 } 89 91 elseif(!current_user_can('manage_options')){ 90 wp_die( __('You do not have sufficient permissions to access this page.' ));92 wp_die( __('You do not have sufficient permissions to access this page.', 'limit-posts')); 91 93 } 92 94 -
limit-posts/trunk/readme.txt
r1231986 r1258857 115 115 Bug fix - Post type not being shown correctly when editing a rule. 116 116 117 = 1.0.8 = 118 Sorted out some issues with the text domain, for translation purposes. 119 117 120 == Upgrade Notice == 118 121
Note: See TracChangeset
for help on using the changeset viewer.