Changeset 13043 for trunk/wp-admin/custom-background.php
- Timestamp:
- 02/10/2010 04:49:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-background.php
r13041 r13043 53 53 */ 54 54 function init() { 55 if ( ! current_user_can('switch_themes') ) 56 return; 57 55 58 $page = add_theme_page(__('Custom Background'), __('Custom Background'), 'switch_themes', 'custom-background', array(&$this, 'admin_page')); 56 59 … … 84 87 */ 85 88 function take_action() { 89 if ( ! current_user_can('switch_themes') ) 90 return; 91 86 92 if ( isset($_POST['reset-background']) ) { 87 93 check_admin_referer('custom-background'); … … 235 241 */ 236 242 function admin_page() { 243 if ( ! current_user_can('switch_themes') ) 244 wp_die(__('You do not have permission to customize the background.')); 237 245 $step = $this->step(); 238 246 if ( 1 == $step )
Note: See TracChangeset
for help on using the changeset viewer.