Make WordPress Core


Ignore:
Timestamp:
01/14/2016 04:12:16 AM (9 years ago)
Author:
johnbillion
Message:

Administration: Add a "Drag boxes here" message to empty dashboard meta boxes so it's clear to users that it's possible to drag meta boxes into empty spaces.

Props xavortm
Fixes #26399

File:
1 edited

Legend:

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

    r36285 r36295  
    496496
    497497        $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), false, 1 );
     498        did_action( 'init' ) && $scripts->localize( 'postbox', 'postBoxL10n', array(
     499            'postBoxEmptyString' => __( 'Drag boxes here' ),
     500        ) );
    498501
    499502        $scripts->add( 'tags-box', "/wp-admin/js/tags-box$suffix.js", array( 'jquery', 'suggest' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.