Plugin Directory

Changeset 1446857


Ignore:
Timestamp:
06/30/2016 09:48:54 PM (10 years ago)
Author:
shah.neel
Message:

Updating to v1.5.2

Location:
site-setup-wizard
Files:
37 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • site-setup-wizard/trunk/css/ssw-style.css

    r1446127 r1446857  
    237237.ssw-themes-screenshot {
    238238    display: block;
     239    max-width: 100%;
    239240}
    240241.ssw-themes-screenshot:hover {
  • site-setup-wizard/trunk/readme.txt

    r1446127 r1446857  
    11=== Site Setup Wizard ===
    22Contributors: shahneel
    3 Tags: plugin, multisite, site, setup, wizard, site registration, site creation, create site, wp-signup
     3Tags: plugin, multisite, site setup wizard, site registration, site creation, create site, wp-signup
    44Requires at least: 4.0
    55Tested up to: 4.5.3
     
    4141* Allows super admins to configure text displayed on all steps
    4242* Allows super admins to decide whether user should be able to select privacy or not
    43 
     43* Registers option 'nsd_ssw_site_type' with Site Type value for every site created
     44* Registers option 'nsd_ssw_user_role' with Admin's User Role value from main site in newly created site's option table
     45* Option to map wordpress user role with Site Setup Wizard user roles (Currently in beta)
    4446
    4547= Coming soon =
    4648* A step in wizard to Add New Users to their site while creating it
    47 * Option to map wordpress user role with Site Setup Wizard user roles
    4849* Integrate with WPMU New Blog Template
    49 * Register option with Site Type value on per site basis to display modify wordpress admin area based on their site type
    5050
    5151Please check Screenshots for more information.
    52 
    5352
    5453== Installation ==
     
    7473== Upgrade Notice ==
    7574
     75= 1.5.2 =
     76Added new feature. Fixed CSS issue on Theme page in Network Admin dashboard.
     77
    7678= 1.5.1 =
    7779Bug fixes.
     
    157159
    158160== Changelog ==
     161= 1.5.2 =
     162* Added new feature to save admin's user role while creating new site. [Issue #28](https://github.com/neelakansha85/site-setup-wizard/issues/28)
     163* Fixes CSS issue for Theme page in Network Admin Dashboard.[Issue #29](https://github.com/neelakansha85/site-setup-wizard/issues/29)
     164
    159165= 1.5.1 =
    160166* Fixes error message being displayed on Features page while returning from Themes page using Back button.
  • site-setup-wizard/trunk/site-setup-wizard.php

    r1446127 r1446857  
    77 * Author URI: http://neelshah.info
    88 * License: GPL2
    9  * Version: 1.5.1
     9 * Version: 1.5.2
    1010 */
    1111
     
    2626define('SSW_THEMES_LIST_FOR_DATABASE', 'nsd_ssw_themes_list');
    2727define('SSW_SITE_TYPE_KEY', 'nsd_ssw_site_type');
     28define('SSW_USER_ROLE_KEY', 'nsd_ssw_user_role');
    2829define('SSW_VERSION_KEY', 'nsd_ssw_version');
    29 define('SSW_VERSION_NUM', '1.5.1');
     30define('SSW_VERSION_NUM', '1.5.2');
    3031
    3132
  • site-setup-wizard/trunk/wizard/finish.php

    r1446127 r1446857  
    3636        }
    3737
     38        // Get admin's user role on main site
     39        switch_to_blog(1);
     40        $admin_info = get_userdata($admin_user_id);
     41        restore_current_blog();
     42
    3843        // Check if there is there is any valid data for the site to be updated */
    3944        if($new_blog_id != '') {
     
    6065                // Add new option for Site Type
    6166                update_option(SSW_SITE_TYPE_KEY, $site_type);
     67
     68                //Add new option for saving User Role
     69                update_option(SSW_USER_ROLE_KEY, $admin_info->roles);
    6270
    6371                // Restore to original blog it came from before switch_to_blog()
Note: See TracChangeset for help on using the changeset viewer.