[wp-meta] [Making WordPress.org] #6200: https://profiles.wordpress.org/associations/community-team/ page displays blank

Making WordPress.org noreply at wordpress.org
Fri Mar 18 01:54:34 UTC 2022


#6200: https://profiles.wordpress.org/associations/community-team/ page displays
blank
--------------------------+-----------------------
 Reporter:  yoga1103      |       Owner:  dd32
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:
Component:  Profiles      |  Resolution:
 Keywords:  close         |
--------------------------+-----------------------
Changes (by dd32):

 * keywords:   => close
 * owner:  (none) => dd32
 * status:  new => accepted


Comment:

 This is temporarily fixed. I've added a mu-plugin that takes care of it
 for now.

 {{{#!php
 <?php
 /**
  * Plugin Name: Meta#6200: Temporary for BuddyPress+Gutenberg+bp-default
  * Plugin URI: https://meta.trac.wordpress.org/ticket/6200#comment:1
  */

 /**
  * Register the BuddyPress theme directory early, because Gutenberg.
  *
  * @see https://meta.trac.wordpress.org/ticket/6200#comment:1
  */
 function register_bp_default_early() {
         // BuddyPress is a network plugin, which are loaded prior to
 muplugins_loaded firing.
         if ( ! function_exists( 'buddypress' ) ) {
                 return;
         }

         // If we don't need the bp-default theme, no need to do anything.
         if ( 'bp-default' !== get_template() ) {
                 return;
         }

         // Gutenberg should be within the per-site plugin list.
         // If Gutenberg is network-activated, this will fail and cause the
 same problem that we're trying to fix.
         if ( in_array( 'gutenberg/gutenberg.php', (array) get_option(
 'active_plugins', [] ) ) ) {
                 register_theme_directory( buddypress()->old_themes_dir );
         }
 }
 add_action( 'muplugins_loaded', 'register_bp_default_early' );
 }}}

 Leaving this open to track the removal of it / fix in Gutenberg /
 BuddyPress.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/6200#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list