Make WordPress Core

Ticket #30458: 30458.patch

File 30458.patch, 2.4 KB (added by azaozz, 11 years ago)
  • src/wp-admin/includes/template.php

     
    18911891                 */
    18921892
    18931893                $registered_pointers = array(
    1894                         'post-new.php' => 'wp350_media',
    1895                         'post.php'     => array( 'wp350_media', 'wp360_revisions' ),
     1894                        'post-new.php' => array( 'wp350_media', 'wp410_dfw' ),
     1895                        'post.php'     => array( 'wp350_media', 'wp410_dfw' ),
    18961896                        'edit.php'     => 'wp360_locks',
    18971897                        'widgets.php'  => 'wp390_widgets',
    18981898                        'themes.php'   => 'wp390_widgets',
     
    19851985        public static function pointer_wp330_saving_widgets() {}
    19861986        public static function pointer_wp340_customize_current_theme_link() {}
    19871987        public static function pointer_wp340_choose_image_from_library() {}
     1988        public static function pointer_wp360_revisions() {}
    19881989
    19891990        public static function pointer_wp350_media() {
    19901991                $content  = '<h3>' . __( 'New Media Manager' ) . '</h3>';
     
    19961997                ) );
    19971998        }
    19981999
    1999         public static function pointer_wp360_revisions() {
    2000                 $content  = '<h3>' . __( 'Compare Revisions' ) . '</h3>';
    2001                 $content .= '<p>' . __( 'View, compare, and restore other versions of this content on the improved revisions screen.' ) . '</p>';
     2000        public static function pointer_wp410_dfw() {
     2001                $content  = '<h3>' . __( 'Distraction Free Writing' ) . '</h3>';
     2002                $content .= '<p>' . __( 'Enable distraction free writing; everything fades away so you can focus. '
     2003                        . 'Bring your admin back by moving your mouse, then start typing and it fades away.' ) . '</p>';
    20022004
    2003                 self::print_js( 'wp360_revisions', '.misc-pub-section.misc-pub-revisions', array(
     2005                if ( is_rtl() ) {
     2006                        $position = array( 'edge' => 'top', 'align' => 'right', 'my' => 'right+40 top+36' );
     2007                } else {
     2008                        $position = array( 'edge' => 'top', 'align' => 'left', 'my' => 'left-39 top+36' );
     2009                }
     2010
     2011                self::print_js( 'wp410_dfw', '#content-html', array(
    20042012                        'content' => $content,
    2005                         'position' => array( 'edge' => is_rtl() ? 'left' : 'right', 'align' => 'center' ),
     2013                        'position' => $position,
    20062014                ) );
    20072015        }
    20082016
     
    20522060         * @since 3.3.0
    20532061         */
    20542062        public static function dismiss_pointers_for_new_users( $user_id ) {
    2055                 add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp350_media,wp360_revisions,wp360_locks,wp390_widgets' );
     2063                add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp350_media,wp360_locks,wp390_widgets' );
    20562064        }
    20572065}
    20582066