Title: orangebubble's Replies | WordPress.org

---

# orangebubble

  [  ](https://wordpress.org/support/users/orangebubble/)

 *   [Profile](https://wordpress.org/support/users/orangebubble/)
 *   [Topics Started](https://wordpress.org/support/users/orangebubble/topics/)
 *   [Replies Created](https://wordpress.org/support/users/orangebubble/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/orangebubble/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/orangebubble/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/orangebubble/engagements/)
 *   [Favorites](https://wordpress.org/support/users/orangebubble/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[theme-selector] Multisite Support](https://wordpress.org/support/topic/multisite-support-4/)
 *  Thread Starter [orangebubble](https://wordpress.org/support/users/orangebubble/)
 * (@orangebubble)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/multisite-support-4/#post-3136957)
 * I found an issue with multisites – user could edit other sites themes from the
   admin bar theme menu even if they didnt have the access to the other multisite
   sites!!
 * Add the following code above line 19 which states
    `$wp_admin_bar->add_menu( 
   array(`
 * Add this code:
 *     ```
       $admin_access = apply_filters( 'et_showcontrol_panel', current_user_can('switch_themes') );
       	if ( !$admin_access ) return;
       ```
   
 * The code should now look like this:
 *     ```
       function add_theme_selector( $wp_admin_bar ) {
   
       	if (is_user_logged_in() && (!isset($_REQUEST['template']) || $_REQUEST['template']=='')) 
   
       	$admin_access = apply_filters( 'et_showcontrol_panel', current_user_can('switch_themes') );
       	if ( !$admin_access ) return;
       		$wp_admin_bar->add_menu( array(
       		'title' => __( 'Change Theme', 'direitoamoradia' ) ,
       		'id' => 'change_theme',
       		'href' => get_bloginfo('url').'/?customize=true' )
       	);	
   
       }
       add_action( 'admin_bar_menu', 'add_theme_selector' );
       ```
   
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [It's a urgent problem HELP!!!!!!!](https://wordpress.org/support/topic/its-a-urgent-problem-help/)
 *  [orangebubble](https://wordpress.org/support/users/orangebubble/)
 * (@orangebubble)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/its-a-urgent-problem-help/#post-3132101)
 * Hello,
 * Could you do something like the following [http://www.zimmertech.com/tutorials/php/60/mysql-search-replace-phpmyadmin.php](http://www.zimmertech.com/tutorials/php/60/mysql-search-replace-phpmyadmin.php)
   and just replace all references of your old site in the database to your new 
   one?

Viewing 2 replies - 1 through 2 (of 2 total)