Make WordPress Core


Ignore:
Timestamp:
07/06/2020 06:01:55 PM (6 years ago)
Author:
afercia
Message:

Accessibility: Administration: Improve the sortable postboxes areas on the Dashboard and Classic Editor pages.

  • makes the postboxes areas in the Dashboard visible also on large screens
  • uses a more meaningful text when all postboxes areas are empty instead of "Drag boxes here"
  • restores the ability to drag boxes to the "advanced" area in the Classic Editor page
  • makes the postboxes areas in the Classic Editor page visible while dragging so that users have a clue what the available areas are
  • improves the color contrast of the postboxes areas while dragging
  • uses wp.i18n for translatable strings in wp-admin/js/postbox.js

Props xkon, karmatosed, audrasjb, ocean90, joedolson, afercia, azaozz.
See #20491.
Fixes #49288, #47541.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r48323 r48340  
    12411241
    12421242        $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array( 'jquery-ui-sortable' ), false, 1 );
    1243         did_action( 'init' ) && $scripts->localize(
    1244             'postbox',
    1245             'postBoxL10n',
    1246             array(
    1247                 'postBoxEmptyString' => __( 'Drag boxes here' ),
    1248             )
    1249         );
     1243        $scripts->set_translations( 'postbox' );
    12501244
    12511245        $scripts->add( 'tags-box', "/wp-admin/js/tags-box$suffix.js", array( 'jquery', 'tags-suggest' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.