Changeset 31534 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 02/25/2015 01:49:26 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r31526 r31534 440 440 $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), false, 1 ); 441 441 442 $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox'), false, 1 ); 442 $scripts->add( 'tags-box', "/wp-admin/js/tags-box$suffix.js", array( 'jquery', 'suggest' ), false, 1 ); 443 did_action( 'init' ) && $scripts->localize( 'tags-box', 'tagsBoxL10n', array( 444 'tagDelimiter' => _x( ',', 'tag delimiter' ), 445 ) ); 446 447 $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array( 'suggest', 'wp-lists', 'postbox', 'tags-box' ), false, 1 ); 443 448 did_action( 'init' ) && $scripts->localize( 'post', 'postL10n', array( 444 449 'ok' => __('OK'), … … 462 467 'privatelyPublished' => __('Privately Published'), 463 468 'published' => __('Published'), 464 'comma' => _x( ',', 'tag delimiter' ),465 469 'saveAlert' => __('The changes you made will be lost if you navigate away from this page.'), 466 470 'savingText' => __('Saving Draft…'), 467 471 ) ); 468 472 473 $scripts->add( 'press-this', "/wp-admin/js/press-this$suffix.js", array( 'jquery', 'tags-box' ), false, 1 ); 474 did_action( 'init' ) && $scripts->localize( 'press-this', 'pressThisL10n', array( 475 /** 476 * press_this_source_string: string displayed before the source attribution string, defaults to "Source:". 477 * 478 * @since 4.2 479 * @see https://github.com/MichaelArestad/Press-This/issues/25 480 * 481 * @param string $string Internationalized source string 482 * 483 * @return string Source string 484 */ 485 'source' => apply_filters( 'press_this_source_string', __( 'Source:' ) ), 486 487 /** 488 * press_this_source_link: HTML link format for the source attribution, can control target, class, etc 489 * 490 * @since 4.2 491 * @see https://github.com/MichaelArestad/Press-This/issues/25 492 * 493 * @param string $link_format Internationalized link format, %1$s is link href, %2$s is link text 494 * 495 * @return string Link markup 496 */ 497 'sourceLink' => apply_filters( 'press_this_source_link', __( '<a href="%1$s">%2$s</a>' ) ), 498 'newPost' => __( 'Title' ), 499 'unexpectedError' => __( 'Sorry, but an unexpected error occurred.' ), 500 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), 501 'allMediaHeading' => __( 'Suggested media' ), 502 'suggestedEmbedAlt' => __( 'Suggested embed #%d' ), 503 'suggestedImgAlt' => __( 'Suggested image #%d' ), 504 ) ); 505 469 506 $scripts->add( 'editor-expand', "/wp-admin/js/editor-expand$suffix.js", array( 'jquery' ), false, 1 ); 470 507 … … 634 671 $styles->add( 'customize-controls', "/wp-admin/css/customize-controls$suffix.css", array( 'wp-admin', 'colors', 'ie', 'imgareaselect' ) ); 635 672 $styles->add( 'customize-widgets', "/wp-admin/css/customize-widgets$suffix.css", array( 'wp-admin', 'colors' ) ); 673 $styles->add( 'press-this', "/wp-admin/css/press-this$suffix.css", array( 'open-sans' ) ); 674 636 675 $styles->add( 'ie', "/wp-admin/css/ie$suffix.css" ); 637 638 676 $styles->add_data( 'ie', 'conditional', 'lte IE 7' ); 639 677
Note: See TracChangeset
for help on using the changeset viewer.