Making WordPress.org


Ignore:
Timestamp:
02/22/2016 10:24:37 PM (6 years ago)
Author:
ocean90
Message:

Rosetta Roles: Use the string_score library to sort search results by match score.

See #1590.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/rosetta-roles.php

    r2547 r2548  
    188188     */
    189189    public function enqueue_scripts() {
    190         wp_enqueue_script( 'rosetta-roles', plugins_url( '/js/rosetta-roles.js', __FILE__ ), array( 'jquery', 'wp-backbone' ), '6', true );
     190        wp_enqueue_script( 'string_score', plugins_url( '/js/string_score.min.js', __FILE__ ), array(), '0.1.22', true );
     191        wp_enqueue_script( 'rosetta-roles', plugins_url( '/js/rosetta-roles.js', __FILE__ ), array( 'jquery', 'wp-backbone', 'string_score' ), '6', true );
    191192    }
    192193
Note: See TracChangeset for help on using the changeset viewer.