Plugin Directory

Changeset 2007562


Ignore:
Timestamp:
01/07/2019 09:09:01 AM (7 years ago)
Author:
albreis
Message:

Resolve bug que show warning about required plugin Albnet Videos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • albnet-shortcodes/trunk/albnet-shortcodes.php

    r2007350 r2007562  
    146146        'item_class' => ''
    147147    ], $atts );
    148 
    149     /**
    150      * For show is required Albet Video plugin
    151      */
    152     if($a['show_video'] || $a['post_type'] == 'videos') {
    153         if ( ! is_plugin_active( 'albnet-videos/albnet-videos.php' ) && current_user_can( 'activate_plugins' ) ) {
    154             echo ('Sorry, but this plugin requires the Albnet Vídeos to be installed and active.');
    155         } else {           
    156             include 'shortcode-' . $a['layout'] . '.php';
    157         }
    158     }
    159148   
    160149}
Note: See TracChangeset for help on using the changeset viewer.