| | 1906 | public static function pointer_wp360_revisions() { |
| | 1907 | $content = '<h3>' . __( 'New Revisions Viewer' ) . '</h3>'; |
| | 1908 | $content .= '<p>' . __( 'View, compare, and restore other revisions of this content on the improved revisions screen.' ) . '</p>'; |
| | 1909 | |
| | 1910 | self::print_js( 'wp360_revisions', '.misc-pub-section.num-revisions', array( |
| | 1911 | 'content' => $content, |
| | 1912 | 'position' => array( 'edge' => is_rtl() ? 'left' : 'right', 'align' => 'center', 'my' => is_rtl() ? 'left' : 'right-14px' ), |
| | 1913 | ) ); |
| | 1914 | } |
| | 1915 | |
| | 1916 | public static function pointer_wp360_locks() { |
| | 1917 | $content = '<h3>' . __( 'Edit Lock' ) . '</h3>'; |
| | 1918 | $content .= '<p>' . __( 'This indicates that someone is currently editing this content. Watch this screen — it will live-update when they are done!' ) . '</p>'; |
| | 1919 | |
| | 1920 | if ( ! is_multi_author() ) |
| | 1921 | return; |
| | 1922 | |
| | 1923 | self::print_js( 'wp360_locks', 'tr.wp-locked .locked-indicator', array( |
| | 1924 | 'content' => $content, |
| | 1925 | 'position' => array( 'edge' => 'top', 'align' => 'center', 'my' => 'top+5px' ), |
| | 1926 | ) ); |
| | 1927 | } |
| | 1928 | |
| 1909 | | add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp330_toolbar,wp330_saving_widgets,wp340_choose_image_from_library,wp340_customize_current_theme_link,wp350_media' ); |
| | 1935 | add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp330_toolbar,wp330_saving_widgets,wp340_choose_image_from_library,wp340_customize_current_theme_link,wp350_media,wp360_revisions' ); |