Make WordPress Core

Changeset 53047


Ignore:
Timestamp:
04/01/2022 11:07:39 AM (4 years ago)
Author:
audrasjb
Message:

Adds "select all" shortcut for Mac on permalinks page when .htaccess is not writable.

This change improves the description of the "select all" shortcut for Mac users in Permalink Settings screen.

Props Valer1e, ajoah, audrasjb, SergeyBiryukov.
Fixes #54633.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/vendor/tinymce/plugins/wordpress/plugin.js

    r52366 r53047  
    254254        editor.addCommand( 'WP_Help', function() {
    255255                var access = tinymce.Env.mac ? __( 'Ctrl + Alt + letter:' ) : __( 'Shift + Alt + letter:' ),
    256                         meta = tinymce.Env.mac ? __( 'Cmd + letter:' ) : __( 'Ctrl + letter:' ),
     256                        meta = tinymce.Env.mac ? __( ' + letter:' ) : __( 'Ctrl + letter:' ),
    257257                        table1 = [],
    258258                        table2 = [],
  • trunk/src/wp-admin/options-permalink.php

    r52978 r53047  
    368368                                <?php
    369369                                printf(
    370                                         /* translators: 1: web.config, 2: Documentation URL, 3: Ctrl + A, 4: Element code. */
    371                                         __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it is not so this is the url rewrite rule you should have in your %1$s file. Click in the field and press %3$s to select all. Then insert this rule inside of the %4$s element in %1$s file.' ),
     370                                        /* translators: 1: web.config, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A, 5: Element code. */
     371                                        __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it is not so this is the url rewrite rule you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this rule inside of the %5$s element in %1$s file.' ),
    372372                                        '<code>web.config</code>',
    373373                                        __( 'https://wordpress.org/support/article/changing-file-permissions/' ),
    374374                                        '<kbd>Ctrl + A</kbd>',
     375                                        '<kbd>⌘ + A</kbd>',
    375376                                        '<code>/&lt;configuration&gt;/&lt;system.webServer&gt;/&lt;rewrite&gt;/&lt;rules&gt;</code>'
    376377                                );
     
    394395                        <?php
    395396                        printf(
    396                                 /* translators: 1: Documentation URL, 2: web.config, 3: Ctrl + A */
    397                                 __( 'If the root directory of your site was <a href="%1$s">writable</a>, we could do this automatically, but it is not so this is the url rewrite rule you should have in your %2$s file. Create a new file, called %2$s in the root directory of your site. Click in the field and press %3$s to select all. Then insert this code into the %2$s file.' ),
     397                                /* translators: 1: Documentation URL, 2: web.config, 3: Ctrl + A, 4: ⌘ + A */
     398                                __( 'If the root directory of your site was <a href="%1$s">writable</a>, we could do this automatically, but it is not so this is the url rewrite rule you should have in your %2$s file. Create a new file, called %2$s in the root directory of your site. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this code into the %2$s file.' ),
    398399                                __( 'https://wordpress.org/support/article/changing-file-permissions/' ),
    399400                                '<code>web.config</code>',
    400                                 '<kbd>Ctrl + A</kbd>'
     401                                '<kbd>Ctrl + A</kbd>',
     402                                '<kbd>⌘ + A</kbd>'
    401403                        );
    402404                        ?>
     
    424426                <?php
    425427                printf(
    426                         /* translators: 1: .htaccess, 2: Documentation URL, 3: Ctrl + A */
    427                         __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it is not so these are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s to select all.' ),
     428                        /* translators: 1: .htaccess, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A */
     429                        __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it is not so these are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all.' ),
    428430                        '<code>.htaccess</code>',
    429431                        __( 'https://wordpress.org/support/article/changing-file-permissions/' ),
    430                         '<kbd>Ctrl + A</kbd>'
     432                        '<kbd>Ctrl + A</kbd>',
     433                        '<kbd>⌘ + A</kbd>'
    431434                );
    432435                ?>
Note: See TracChangeset for help on using the changeset viewer.