WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/31/2014 08:40:05 PM (6 years ago)
Author:
wonderboymusic
Message:

Support chromeless Vimeo via MEjs:

  • Bump MediaElement script loader versions to 2.16.2 - missed in [30634], oops!
  • Add Froogaloop to js/mediaelement scripts for Vimeo
  • Check for Vimeo in the same locations that YouTube is checked
  • Dynamically load Froogaloop script in admin when editing a TinyMCE view
  • Edit MediaElement to call mejs.$.extend instead of $.extend in mejs.HtmlMediaElementShim.createPlugin(), since $ is not available via WP's jQuery (I will report this upstream):

https://github.com/johndyer/mediaelement/blob/6f9a78e008de2de796a1797077a74a94763320f9/src/js/me-shim.js#L631

Fixes #29267.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r30888 r31016  
    829829        wp_die( 0 );
    830830    }
    831    
     831
    832832    if ( ! current_user_can( $tax->cap->assign_terms ) ) {
    833833        wp_die( -1 );
     
    27562756        wp_print_scripts( 'wp-playlist' );
    27572757    } else {
    2758         wp_print_scripts( 'wp-mediaelement' );
     2758        wp_print_scripts( array( 'froogaloop', 'wp-mediaelement' ) );
    27592759    }
    27602760
     
    27942794    } else {
    27952795        $sessions->destroy_all();
    2796         /* translators: 1: User's display name. */ 
     2796        /* translators: 1: User's display name. */
    27972797        $message = sprintf( __( '%s has been logged out.' ), $user->display_name );
    27982798    }
Note: See TracChangeset for help on using the changeset viewer.