Making WordPress.org

Changeset 2522


Ignore:
Timestamp:
02/18/2016 09:50:07 PM (9 years ago)
Author:
ocean90
Message:

Rosetta Roles: Fix the _.union statement, variadic arguments are no longer supported, see [WP36580].

Props adamsilverstein.
See #1590.

File:
1 edited

Legend:

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

    r2237 r2522  
    143143            // Find results
    144144            this.each( function( project ) {
    145                 var haystack = _.union( project.get( 'name' ), project.get( 'slug' ) );
     145                var haystack = _.union( [ project.get( 'name' ), project.get( 'slug' ) ] );
    146146                project.set( 'isVisible', match.test( haystack ) );
    147147            });
Note: See TracChangeset for help on using the changeset viewer.