Changeset 30574
- Timestamp:
- 11/26/2014 02:53:54 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r30546 r30574 1906 1906 1907 1907 $registered_pointers = array( 1908 'post-new.php' => 'wp 350_media',1909 'post.php' => array( 'wp350_media', 'wp360_revisions' ),1908 'post-new.php' => 'wp410_dfw', 1909 'post.php' => 'wp410_dfw', 1910 1910 'edit.php' => 'wp360_locks', 1911 1911 'widgets.php' => 'wp390_widgets', … … 1920 1920 1921 1921 $caps_required = array( 1922 'wp350_media' => array( 'upload_files' ),1923 1922 'wp390_widgets' => array( 'edit_theme_options' ), 1924 1923 ); … … 2000 1999 public static function pointer_wp340_customize_current_theme_link() {} 2001 2000 public static function pointer_wp340_choose_image_from_library() {} 2002 2003 public static function pointer_wp350_media() { 2004 $content = '<h3>' . __( 'New Media Manager' ) . '</h3>'; 2005 $content .= '<p>' . __( 'Uploading files and creating image galleries has a whole new look. Check it out!' ) . '</p>'; 2006 2007 self::print_js( 'wp350_media', '.insert-media', array( 2008 'content' => $content, 2009 'position' => array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => 'center' ), 2010 ) ); 2011 } 2012 2013 public static function pointer_wp360_revisions() { 2014 $content = '<h3>' . __( 'Compare Revisions' ) . '</h3>'; 2015 $content .= '<p>' . __( 'View, compare, and restore other versions of this content on the improved revisions screen.' ) . '</p>'; 2016 2017 self::print_js( 'wp360_revisions', '.misc-pub-section.misc-pub-revisions', array( 2018 'content' => $content, 2019 'position' => array( 'edge' => is_rtl() ? 'left' : 'right', 'align' => 'center' ), 2020 ) ); 2021 } 2001 public static function pointer_wp350_media() {} 2002 public static function pointer_wp360_revisions() {} 2022 2003 2023 2004 public static function pointer_wp360_locks() { … … 2061 2042 } 2062 2043 2044 public static function pointer_wp410_dfw() { 2045 $content = '<h3>' . __( 'Distraction Free Writing' ) . '</h3>'; 2046 $content .= '<p>' . __( 'Enable distraction free writing; everything fades away so you can focus. ' 2047 . 'Bring your admin back by moving your mouse, then start typing and it fades away.' ) . '</p>'; 2048 2049 if ( is_rtl() ) { 2050 $position = array( 'edge' => 'left', 'align' => 'left', 'my' => 'left-5 top-60' ); 2051 } else { 2052 $position = array( 'edge' => 'right', 'align' => 'right', 'my' => 'right+5 top-60' ); 2053 } 2054 2055 self::print_js( 'wp410_dfw', '#content-html', array( 2056 'content' => $content, 2057 'position' => $position, 2058 ) ); 2059 } 2060 2063 2061 /** 2064 2062 * Prevents new users from seeing existing 'new feature' pointers. … … 2067 2065 */ 2068 2066 public static function dismiss_pointers_for_new_users( $user_id ) { 2069 add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp3 50_media,wp360_revisions,wp360_locks,wp390_widgets' );2067 add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp360_locks,wp390_widgets' ); 2070 2068 } 2071 2069 }
Note: See TracChangeset
for help on using the changeset viewer.