Changeset 2389804
- Timestamp:
- 09/28/2020 03:49:08 PM (5 years ago)
- Location:
- remote-provisioning/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
rp.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
remote-provisioning/trunk/readme.txt
r2300105 r2389804 3 3 Tags: WHMCS, hosting, support, billing, integration, provisioning 4 4 Requires at least: 5 5 Tested up to: 5. 4.16 Stable tag: 1. 6.05 Tested up to: 5.5.1 6 Stable tag: 1.7.0 7 7 8 8 This plugin allows provisioning of blogs on a Wordpress multi-site installation from external packages and billing systems such as WHMCS. … … 43 43 44 44 == Changelog == 45 46 = 1.7.0 = 47 * Added option for inbound parameter of theme (POST.mu_options.theme) 45 48 46 49 = 1.6.0 = -
remote-provisioning/trunk/rp.php
r2300105 r2389804 5 5 Description: This plugin allows provisioning of blogs on a WordPress multi-site installation from external packages and billing systems such as WHMCS. 6 6 Author: globalprogramming 7 Version: 1. 6.07 Version: 1.7.0 8 8 Author URI: http://i-plugins.com/ 9 9 */ … … 85 85 function cc_rp_init() { 86 86 ob_start(); 87 //session_start();88 87 } 89 88 … … 100 99 $ret=array('action' => $action,'version'=>$plugin['Version']); 101 100 102 //ini_set('display_error',1);103 //ini_set('error_reporting',E_ALL); //^ E_NOTICE104 //set_error_handler('cc_rp_user_error_handler',E_ALL);105 106 101 if ($action=='create') { 102 $mu_options = (isset($_POST['mu_options'])) ? $_POST['mu_options'] : []; 107 103 $blog = $_POST['blog']; 108 104 $domain = ''; … … 205 201 206 202 $ret['blog_id']=$blog_id; 207 if ($blog['defaultrole']) { 203 204 if (!empty($blog['defaultrole'])) { 208 205 $roleName=$blog['defaultrole']; 209 206 $roleSlug=str_replace(' ','_',$roleName); … … 232 229 restore_current_blog(); 233 230 } 231 232 if (!empty($mu_options['theme'])) { 233 switch_to_blog( $blog_id ); 234 switch_theme($mu_options['theme']); 235 restore_current_blog(); 236 } 234 237 235 238 if ( !is_wp_error( $blog_id ) ) {
Note: See TracChangeset
for help on using the changeset viewer.