Changeset 24940
- Timestamp:
- 08/01/2013 01:15:14 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/mediaelement/wp-mediaelement.js
r23729 r24940 4 4 mejs.plugins.silverlight[0].types.push('audio/x-ms-wma'); 5 5 6 $(function () { 7 $('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer(); 6 $(function () { 7 var settings = {}; 8 9 if ( typeof _wpmejsSettings !== 'undefined' ) 10 settings.pluginPath = _wpmejsSettings.pluginPath; 11 12 $('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer( settings ); 8 13 }); 9 14 -
trunk/wp-includes/link-template.php
r24844 r24940 2021 2021 * 2022 2022 * @param string $path Optional. Path relative to the includes url. 2023 * @param string $scheme Optional. Scheme to give the includes url context. 2023 2024 * @return string Includes url link with optional path appended. 2024 2025 */ 2025 function includes_url( $path = '') {2026 $url = site_url( ) . '/' . WPINC . '/';2026 function includes_url( $path = '', $scheme = null ) { 2027 $url = site_url( '/' . WPINC . '/', $scheme ); 2027 2028 2028 2029 if ( $path && is_string( $path ) ) -
trunk/wp-includes/script-loader.php
r24786 r24940 303 303 304 304 $scripts->add( 'wp-mediaelement', "/wp-includes/js/mediaelement/wp-mediaelement.js", array('mediaelement'), false, 1 ); 305 did_action( 'init' ) && $scripts->localize( 'wp-mediaelement', '_wpmejsSettings', array( 306 'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ), 307 ) ); 305 308 306 309 $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), false, 1 );
Note: See TracChangeset
for help on using the changeset viewer.