Ticket #20554: 20554.4.diff
File 20554.4.diff, 2.6 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/template.php
1708 1708 'post-new.php' => 'wp330_media_uploader', 1709 1709 'post.php' => 'wp330_media_uploader', 1710 1710 'themes.php' => array( 'wp330_saving_widgets', 'wp340_customize_current_theme_link' ), 1711 'appearance_page_custom-header' => 'wp340_choose_header_from_library', 1711 1712 ); 1712 1713 1713 1714 // Check if screen related pointer is registered … … 1720 1721 'wp330_media_uploader' => array( 'upload_files' ), 1721 1722 'wp330_saving_widgets' => array( 'edit_theme_options', 'switch_themes' ), 1722 1723 'wp340_customize_current_theme_link' => array( 'edit_theme_options' ), 1724 'wp340_choose_header_from_library' => array( 'edit_theme_options' ), 1723 1725 ); 1724 1726 1725 1727 // Get dismissed pointers … … 1845 1847 } 1846 1848 1847 1849 /** 1850 * Print 'New Feature: Current Theme Customize Link' for 3.4.0. 1851 * 1852 * @since 3.4.0 1853 */ 1854 public static function pointer_wp340_choose_header_from_library() { 1855 $content = '<h3>' . __( 'New Feature: Choose Header from Libary' ) . '</h3>'; 1856 $content .= '<p>' . __( 'Want to use an image you uploaded earlier? Select it from your media library instead of uploading it again.' ) . '</p>'; 1857 1858 WP_Internal_Pointers::print_js( 'wp340_choose_header_from_library', '#choose-from-library-link', array( 1859 'content' => $content, 1860 'position' => array( 'edge' => 'top', 'align' => is_rtl() ? 'right' : 'left' ), 1861 ) ); 1862 } 1863 1864 /** 1848 1865 * Prevents new users from seeing existing 'new feature' pointers. 1849 1866 * 1850 1867 * @since 3.3.0 -
wp-admin/custom-header.php
588 588 $image_library_url = remove_query_arg( 'TB_iframe', $image_library_url ); 589 589 $image_library_url = add_query_arg( array( 'context' => 'custom-header', 'TB_iframe' => 1 ), $image_library_url ); 590 590 ?> 591 <span class="howto"><?php _ex( 'or', 'Custom Header: Choose an image from your computer - or - Choose from image library' ); ?></span> <a class="thickbox" href="<?php echo $image_library_url; ?>"><?php _e( 'Choose from image library' ); ?></a>591 <span class="howto"><?php _ex( 'or', 'Custom Header: Choose an image from your computer - or - Choose from image library' ); ?></span> <a class="thickbox" id="choose-from-library-link" href="<?php echo $image_library_url; ?>"><?php _e( 'Choose from image library' ); ?></a> 592 592 </td> 593 593 </tr> 594 594 <?php endif; ?>