Ticket #30458: 30458.patch
| File 30458.patch, 2.4 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/template.php
1891 1891 */ 1892 1892 1893 1893 $registered_pointers = array( 1894 'post-new.php' => 'wp350_media',1895 'post.php' => array( 'wp350_media', 'wp 360_revisions' ),1894 'post-new.php' => array( 'wp350_media', 'wp410_dfw' ), 1895 'post.php' => array( 'wp350_media', 'wp410_dfw' ), 1896 1896 'edit.php' => 'wp360_locks', 1897 1897 'widgets.php' => 'wp390_widgets', 1898 1898 'themes.php' => 'wp390_widgets', … … 1985 1985 public static function pointer_wp330_saving_widgets() {} 1986 1986 public static function pointer_wp340_customize_current_theme_link() {} 1987 1987 public static function pointer_wp340_choose_image_from_library() {} 1988 public static function pointer_wp360_revisions() {} 1988 1989 1989 1990 public static function pointer_wp350_media() { 1990 1991 $content = '<h3>' . __( 'New Media Manager' ) . '</h3>'; … … 1996 1997 ) ); 1997 1998 } 1998 1999 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>'; 2002 2004 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( 2004 2012 'content' => $content, 2005 'position' => array( 'edge' => is_rtl() ? 'left' : 'right', 'align' => 'center' ),2013 'position' => $position, 2006 2014 ) ); 2007 2015 } 2008 2016 … … 2052 2060 * @since 3.3.0 2053 2061 */ 2054 2062 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' ); 2056 2064 } 2057 2065 } 2058 2066