Make WordPress Core

Ticket #31832: 31832.patch

File 31832.patch, 2.6 KB (added by siobhan, 12 years ago)

emoji help

  • src/wp-admin/edit-form-advanced.php

     
    397397        ) );
    398398}
    399399
     400if ( 'post' == $post_type || 'page' == $post_type ) {
     401        $using_emoji = '<p>' . __( 'Emoji bring your content alive with smilies and icons. On your mobile device you can access emoji straight from your keyboard, but on desktop you need to take a few extra steps.' ) . '</p>';
     402        $using_emoji .= '<p>' . __( '<ul><li><strong>Mac OSX</strong> - use the keyboard shortcut Ctrl+Cmd+Space to bring up the emoji panel.</li><li><strong>Linux</strong> - refer to the documentation for your distribution.</li><li><strong>Windows</strong> - access the touch keyboard.</li> </ul>Please refer to the Codex to <a href="http://codex.wordpress.org/Emoji">learn more about emoji</a>.' ) . '</p>';
     403
     404        get_current_screen()->add_help_tab( array(
     405                'id'            => 'using-emoji',
     406                'title'         => __( 'Using Emoji' ),
     407                'content'       => $using_emoji,
     408        ) );
     409}
     410
    400411require_once( ABSPATH . 'wp-admin/admin-header.php' );
    401412?>
    402413
  • src/wp-includes/js/tinymce/wp-mce-help.php

     
    9292<div class="wrap">
    9393
    9494<div>
    95         <p><?php _e('Rather than reaching for your mouse to click on the toolbar, use these access keys. Windows and Linux use Ctrl + letter. Macintosh uses Command + letter.'); ?></p>
     95        <p><?php _e('Speed up your workflow by using these shortcuts. Windows and Linux use Ctrl + letter. Mac uses Cmd + letter.'); ?></p>
    9696
    9797        <table class="keys">
    9898                <tr class="top"><th class="key center"><?php _e('Letter'); ?></th><th class="left"><?php _e('Action'); ?></th><th class="key center"><?php _e('Letter'); ?></th><th class="left"><?php _e('Action'); ?></th></tr>
    … …  
    119119                <tr><th>p</th><td><?php _e('Insert Page Break tag'); ?></td><th>h</th><td><?php _e('Help'); ?></td></tr>
    120120                <tr><th>x</th><td><?php _e('Add/remove code tag'); ?></td><th> </th><td>&nbsp;</td></tr>
    121121        </table>
     122       
     123        <p><?php _e('To access the emoji panel:'); ?></p>
    122124
     125        <table class="keys focus">
     126                <tr><th class="left">Windows</th><td><?php _e('Open the touch keyboard (<a href="http://codex.wordpress.org/Emoji" target="_blank">learn more</a>)'); ?></td></tr>
     127                <tr><th class="left">Mac OSX</th><td><?php _e('Cmd+Ctrl+Space'); ?></td></tr>
     128        </table>
     129
    123130        <p><?php _e('Focus shortcuts:'); ?></p>
    124131
    125132        <table class="keys focus">