MLA Multisite Extension New Site Creation – Bug Fix
-
David,
I found a small bug that crashes the MLA Multisite Extension V1.1.3 when it is called upon creating a new site. After the crash, the routine when called again works fine. I have located the cause and tested a fix that works. In the file mla-multisite-extensions.php there is a private static function _get_source_site_terms( $source_taxonomies ). On line 453 is the statement:
ksort( self::$source_terms[ $tax_name ] );
This crashes when $source_terms is empty. The following tests for an empty variable and prevents executing the ksort to fix the problem.
if (!empty($source_terms)) ksort( self::$source_terms[ $tax_name ] );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘MLA Multisite Extension New Site Creation – Bug Fix’ is closed to new replies.