WordPress.org

Plugin Directory

Changeset 829804


Ignore:
Timestamp:
12/29/13 16:09:51 (14 months ago)
Author:
matchalabs
Message:

Fix NextGen media tab conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ml-slider/trunk/ml-slider.php

    r827668 r829804  
    169169     */ 
    170170    public function custom_media_upload_tab_name($tabs) { 
     171        $metaslider_tabs = array('post_feed', 'layer', 'youtube', 'vimeo'); 
     172 
    171173        // restrict our tab changes to the meta slider plugin page 
    172         if ((isset($_GET['page']) && $_GET['page'] == 'metaslider') || isset($_GET['tab']) == 'metaslider_pro') { 
     174        if ((isset($_GET['page']) && $_GET['page'] == 'metaslider') || (isset($_GET['tab']) && in_array($_GET['tab'], $metaslider_tabs))) { 
    173175            $newtabs = array(); 
    174176 
Note: See TracChangeset for help on using the changeset viewer.