Plugin Directory

Changeset 2389804


Ignore:
Timestamp:
09/28/2020 03:49:08 PM (5 years ago)
Author:
globalprogramming
Message:

1.7.0 trunk - see readme

Location:
remote-provisioning/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • remote-provisioning/trunk/readme.txt

    r2300105 r2389804  
    33Tags: WHMCS, hosting, support, billing, integration, provisioning
    44Requires at least: 5
    5 Tested up to: 5.4.1
    6 Stable tag: 1.6.0
     5Tested up to: 5.5.1
     6Stable tag: 1.7.0
    77
    88This plugin allows provisioning of blogs on a Wordpress multi-site installation from external packages and billing systems such as WHMCS.
     
    4343
    4444== Changelog ==
     45
     46= 1.7.0 =
     47* Added option for inbound parameter of theme (POST.mu_options.theme)
    4548
    4649= 1.6.0 =
  • remote-provisioning/trunk/rp.php

    r2300105 r2389804  
    55 Description: This plugin allows provisioning of blogs on a WordPress multi-site installation from external packages and billing systems such as WHMCS.
    66 Author: globalprogramming
    7  Version: 1.6.0
     7 Version: 1.7.0
    88 Author URI: http://i-plugins.com/
    99 */
     
    8585function cc_rp_init() {
    8686    ob_start();
    87     //session_start();
    8887}
    8988
     
    10099    $ret=array('action' => $action,'version'=>$plugin['Version']);
    101100
    102     //ini_set('display_error',1);
    103     //ini_set('error_reporting',E_ALL); //^ E_NOTICE
    104     //set_error_handler('cc_rp_user_error_handler',E_ALL);
    105 
    106101    if ($action=='create') {
     102        $mu_options = (isset($_POST['mu_options'])) ? $_POST['mu_options'] : [];
    107103        $blog = $_POST['blog'];
    108104        $domain = '';
     
    205201
    206202        $ret['blog_id']=$blog_id;
    207         if ($blog['defaultrole']) {
     203
     204        if (!empty($blog['defaultrole'])) {
    208205            $roleName=$blog['defaultrole'];
    209206            $roleSlug=str_replace(' ','_',$roleName);
     
    232229            restore_current_blog();
    233230        }
     231
     232        if (!empty($mu_options['theme'])) {
     233            switch_to_blog( $blog_id );
     234            switch_theme($mu_options['theme']);
     235            restore_current_blog();
     236        }
    234237
    235238        if ( !is_wp_error( $blog_id ) ) {
Note: See TracChangeset for help on using the changeset viewer.