Make WordPress Core


Ignore:
Timestamp:
05/21/2012 08:34:20 PM (14 years ago)
Author:
ryan
Message:

Feature pointers for choosing an image from the library on the custom header and background pages. see #20554

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r20774 r20839  
    17091709            'post.php'     => 'wp330_media_uploader',
    17101710            'themes.php'   => array( 'wp330_saving_widgets', 'wp340_customize_current_theme_link' ),
     1711            'appearance_page_custom-header' => 'wp340_choose_image_from_library',
     1712            'appearance_page_custom-background' => 'wp340_choose_image_from_library',
    17111713        );
    17121714
     
    17211723            'wp330_saving_widgets' => array( 'edit_theme_options', 'switch_themes' ),
    17221724            'wp340_customize_current_theme_link' => array( 'edit_theme_options' ),
     1725            'wp340_choose_image_from_library' => array( 'edit_theme_options' ),
    17231726        );
    17241727
     
    18461849
    18471850    /**
     1851     * Print 'New Feature: Choose Image from Library' for 3.4.0.
     1852     *
     1853     * @since 3.4.0
     1854     */
     1855    public static function pointer_wp340_choose_image_from_library() {
     1856        $content  = '<h3>' . __( 'New Feature: Choose Image from Library' ) . '</h3>';
     1857        $content .= '<p>' . __( 'Want to use an image you uploaded earlier? Select it from your media library instead of uploading it again.' ) . '</p>';
     1858
     1859        WP_Internal_Pointers::print_js( 'wp340_choose_image_from_library', '#choose-from-library-link', array(
     1860            'content'  => $content,
     1861            'position' => array( 'edge' => 'top', 'align' => is_rtl() ? 'right' : 'left' ),
     1862        ) );
     1863    }
     1864
     1865    /**
    18481866     * Prevents new users from seeing existing 'new feature' pointers.
    18491867     *
Note: See TracChangeset for help on using the changeset viewer.