WordPress.org

Plugin Directory

Changeset 786038


Ignore:
Timestamp:
10/10/13 18:28:29 (3 years ago)
Author:
Joen
Message:

MP6: Make the location of the color scheme picker pluggable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mp6/trunk/components/color-schemes/colors.php

    r781417 r786038  
    184184function mp6_colors_enqueue_picker() { 
    185185 
    186     if ( ! in_array( get_current_screen()->base, array( 'profile', 'user-edit', 'profile-network', 'user-edit-network' ) ) ) 
     186    if ( ! in_array( get_current_screen()->base, apply_filters( 'mp6_colors_allowed_pages', array( 'profile', 'user-edit', 'profile-network', 'user-edit-network' ) ) ) ) 
    187187        return; 
    188188 
Note: See TracChangeset for help on using the changeset viewer.