Changeset 15019 for trunk/wp-admin/custom-background.php
- Timestamp:
- 05/28/2010 12:27:53 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-background.php
r15016 r15019 35 35 36 36 /** 37 * Holds the page menu hook. 38 * 39 * @var string 40 * @since 3.0.0 41 * @access private 42 */ 43 var $page = ''; 44 45 /** 37 46 * PHP4 Constructor - Register administration header callback. 38 47 * … … 56 65 return; 57 66 58 $ page = add_theme_page(__('Background'), __('Background'), 'edit_theme_options', 'custom-background', array(&$this, 'admin_page'));67 $this->page = $page = add_theme_page(__('Background'), __('Background'), 'edit_theme_options', 'custom-background', array(&$this, 'admin_page')); 59 68 60 69 add_action("load-$page", array(&$this, 'admin_load')); … … 72 81 */ 73 82 function admin_load() { 83 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>' . 84 '<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>' . 85 '<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>' . 86 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 87 '<p>' . __( '<a href="http://codex.wordpress.org/" target="_blank">Documentation</a>' ) . '</p>' . 88 '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' ); 74 89 wp_enqueue_script('custom-background'); 75 90 wp_enqueue_style('farbtastic');
Note: See TracChangeset
for help on using the changeset viewer.