wp/wp-content/plugins/portfolio/bws_menu/bws_include.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
     1 <?php
     1 <?php
     2 /**
     2 if ( ! defined( 'ABSPATH' ) ) {
     3  * Get latest version
     3 	exit;
     4  */
     4 }
     5 
     5 
     6 if ( ! function_exists( 'bws_include_init' ) ) {
     6 if ( ! function_exists( 'bws_include_init' ) ) {
       
     7 	/**
       
     8 	 * Get latest version
       
     9 	 *
       
    10 	 * @param string $base            Base name for plugin.
       
    11 	 * @param string $bws_menu_source BWS product.
       
    12 	 */
     7 	function bws_include_init( $base, $bws_menu_source = 'plugins' ) {
    13 	function bws_include_init( $base, $bws_menu_source = 'plugins' ) {
     8 		global $bstwbsftwppdtplgns_options, $bstwbsftwppdtplgns_added_menu, $bstwbsftwppdtplgns_active_plugins;
    14 		global $bstwbsftwppdtplgns_options, $bstwbsftwppdtplgns_added_menu, $bstwbsftwppdtplgns_active_plugins;
     9 		if ( ! function_exists( 'get_plugin_data' ) ) {
    15 		if ( ! function_exists( 'get_plugin_data' ) ) {
    10 			require_once ABSPATH . 'wp-admin/includes/plugin.php';
    16 			require_once ABSPATH . 'wp-admin/includes/plugin.php';
    11 		}
    17 		}