Plugin Directory

Changeset 2799468


Ignore:
Timestamp:
10/16/2022 03:24:21 AM (3 years ago)
Author:
codeadapted
Message:

fix for non-multisite installations

Location:
multisite-author-bio/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • multisite-author-bio/trunk/classes/mab-plugin.php

    r2794626 r2799468  
    8282        $main_site_id = get_main_site_id();
    8383
    84         switch_to_blog( $main_site_id );
     84        if( function_exists('is_multisite') && is_multisite() ) {
     85            switch_to_blog( $main_site_id );
     86        }
    8587
    8688        global $wpdb;
     
    104106        $main_site_id = get_main_site_id();
    105107
    106         switch_to_blog( $main_site_id );
     108        if( function_exists('is_multisite') && is_multisite() ) {
     109            switch_to_blog( $main_site_id );
     110        }
    107111
    108112        if( $clear_data ) {
  • multisite-author-bio/trunk/readme.txt

    r2794649 r2799468  
    22
    33Contributors: CodeAdapted
    4 Tags: author, author bio, author description, multisite, multisite author, multisite author bio, multisite author description
     4Tags: author, author bio, author description, multisite, multisite author
    55Requires at least: 5.0 or higher
    66Tested up to: 6.0.2
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7171
    7272== Changelog ==
    73 = 1.0 =
     73= 1.0.0 =
    7474* Plugin released.
     75= 1.0.1 =
     76* Fix for non-multisite installations.
Note: See TracChangeset for help on using the changeset viewer.