Ticket #25457: 25457.diff
| File 25457.diff, 2.3 KB (added by , 12 years ago) |
|---|
-
wp-admin/admin-header.php
55 55 wp_enqueue_script('utils'); 56 56 wp_enqueue_script( 'svg-painter' ); 57 57 58 if ( current_user_can( 'edit_theme_options' ) ) { 59 wp_enqueue_script( 'customize-loader' ); 60 } 61 58 62 $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); 59 63 ?> 60 64 <script type="text/javascript"> -
wp-admin/menu-header.php
139 139 if ( ! current_user_can( $sub_item[1] ) ) 140 140 continue; 141 141 142 $class = array(); 142 $class = explode( ' ', $sub_item[3] ); 143 // @todo: esc_attr each item 143 144 if ( $first ) { 144 145 $class[] = 'wp-first-item'; 145 146 $first = false; -
wp-admin/menu.php
146 146 147 147 $menu[60] = array( __('Appearance'), $appearance_cap, 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' ); 148 148 $submenu['themes.php'][5] = array( __( 'Themes' ), $appearance_cap, 'themes.php' ); 149 $submenu['themes.php'][6] = array( __( 'Customize' ), 'edit_theme_options', 'customize.php', 'hide-if-no-customize ' );149 $submenu['themes.php'][6] = array( __( 'Customize' ), 'edit_theme_options', 'customize.php', 'hide-if-no-customize load-customize' ); 150 150 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) 151 151 $submenu['themes.php'][10] = array(__( 'Menus' ), 'edit_theme_options', 'nav-menus.php'); 152 152 -
wp-includes/js/customize-loader.js
26 26 this.bind( 'open', this.overlay.show ); 27 27 this.bind( 'close', this.overlay.hide ); 28 28 29 $('#wp body').on( 'click', '.load-customize', function( event ) {29 $('#wpwrap').on( 'click', '.load-customize', function( event ) { 30 30 event.preventDefault(); 31 31 32 32 // Store a reference to the link that opened the customizer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)