Plugin Directory

Changeset 2567614


Ignore:
Timestamp:
07/19/2021 08:11:43 PM (5 years ago)
Author:
Designed4Pixels
Message:

updated core functions

Location:
wp-cloud-server/trunk/includes/functions
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-cloud-server/trunk/includes/functions/functions.php

    r2478566 r2567614  
    115115        do_settings_fields( $page, $section['id'] );
    116116        echo '</table>';
     117        echo '<hr>';
    117118    }
    118119}
     
    191192    echo $output;
    192193}
     194
    193195    /**
    194196     *  Check Cloud Provider Exists
     
    237239
    238240        return false;
     241    }
     242
     243    /**
     244     *  Check Cloud Provider Module is Active
     245     *
     246     *  @since  3.0.6
     247     *  @return boolean  checked value
     248     */
     249    function wpcs_check_cloud_provider_module() {
     250 
     251        $module_list = get_option( 'wpcs_module_list' );
     252
     253        if ( is_array( $module_list ) ) {
     254            foreach ( $module_list as $key => $module ) {
     255                if ( ( 'cloud_provider' == $module['module_type'] ) && ( 'active' == $module['status'] ) ) {
     256                    $cloud_available = true;
     257                }
     258            }
     259        }
     260
     261        return ( isset( $cloud_available ) ) ? $cloud_available : false ;
    239262    }
    240263
  • wp-cloud-server/trunk/includes/functions/shortcodes.php

    r2485673 r2567614  
    157157           
    158158    }
    159    
    160159}
Note: See TracChangeset for help on using the changeset viewer.