Make WordPress Core

Changeset 42523


Ignore:
Timestamp:
01/17/2018 06:27:21 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Editor: Use explicit context instead of a trailing space for Edit string in TinyMCE plugins.

Props scottlee, ayubadiputra, NathanAtmoz.
Fixes #42543.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r42343 r42523  
    12761276                'No alignment'                         => __( 'No alignment' ), // Tooltip for the 'alignnone' button in the image toolbar
    12771277                'Remove'                               => __( 'Remove' ), // Tooltip for the 'remove' button in the image toolbar
    1278                 'Edit '                                => __( 'Edit' ), // Tooltip for the 'edit' button in the image toolbar
     1278                'Edit|button'                          => __( 'Edit' ), // Tooltip for the 'edit' button in the image toolbar
    12791279                'Paste URL or type to search'          => __( 'Paste URL or type to search' ), // Placeholder for the inline link dialog
    12801280                'Apply'                                => __( 'Apply' ), // Tooltip for the 'apply' button in the inline link dialog
  • trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    r41319 r42523  
    1919
    2020    editor.addButton( 'wp_img_edit', {
    21         tooltip: 'Edit ', // trailing space is needed, used for context
     21        tooltip: 'Edit|button', // '|button' is not displayed, only used for context
    2222        icon: 'dashicon dashicons-edit',
    2323        onclick: function() {
  • trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js

    r42425 r42523  
    565565
    566566        editor.addButton( 'wp_link_edit', {
    567             tooltip: 'Edit ', // trailing space is needed, used for context
     567            tooltip: 'Edit|button', // '|button' is not displayed, only used for context
    568568            icon: 'dashicon dashicons-edit',
    569569            cmd: 'WP_Link'
  • trunk/src/wp-includes/js/tinymce/plugins/wpview/plugin.js

    r41985 r42523  
    156156
    157157        editor.addButton( 'wp_view_edit', {
    158             tooltip: 'Edit ', // trailing space is needed, used for context
     158            tooltip: 'Edit|button', // '|button' is not displayed, only used for context
    159159            icon: 'dashicon dashicons-edit',
    160160            onclick: function() {
Note: See TracChangeset for help on using the changeset viewer.