Changeset 15019 for trunk/wp-admin/custom-header.php
- Timestamp:
- 05/28/2010 12:27:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r14924 r15019 44 44 45 45 /** 46 * Holds the page menu hook. 47 * 48 * @var string 49 * @since 3.0.0 50 * @access private 51 */ 52 var $page = ''; 53 54 /** 46 55 * PHP4 Constructor - Register administration header callback. 47 56 * … … 65 74 return; 66 75 67 $ page = add_theme_page(__('Header'), __('Header'), 'edit_theme_options', 'custom-header', array(&$this, 'admin_page'));76 $this->page = $page = add_theme_page(__('Header'), __('Header'), 'edit_theme_options', 'custom-header', array(&$this, 'admin_page')); 68 77 69 78 add_action("admin_print_scripts-$page", array(&$this, 'js_includes')); 70 79 add_action("admin_print_styles-$page", array(&$this, 'css_includes')); 80 add_action("admin_head-$page", array(&$this, 'help') ); 71 81 add_action("admin_head-$page", array(&$this, 'take_action'), 50); 72 82 add_action("admin_head-$page", array(&$this, 'js'), 50); 73 83 add_action("admin_head-$page", $this->admin_header_callback, 51); 84 } 85 86 /** 87 * Adds contextual help. 88 * 89 * @since 3.0.0 90 */ 91 function help() { 92 add_contextual_help( $this->page, '<p>' . __( 'You can set a custom image header for your site. Simply upload the image and crop it, and the new header will go live immediately. ' ) . '</p>' . 93 '<p>' . __( 'If you want to discard your custom header and go back to the default included in your theme, click on the buttons to remove the custom image and restore the original header image. ' ) . '</p>' . 94 '<p>' . __( 'Some themes comes with additional header images bundled. If you see multiple images displayed, select the one you’d like and click the Save Changes button. ' ) . '</p>' . 95 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 96 '<p>' . __( '<a href="http://codex.wordpress.org/" target="_blank">Documentation</a>' ) . '</p>' . 97 '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' ); 74 98 } 75 99
Note: See TracChangeset
for help on using the changeset viewer.