[buddypress-trac] [BuddyPress Trac] #8528: BP Nouveau: make sure the Primary Nav block is registered before unregistering it
buddypress-trac
noreply at wordpress.org
Thu Jul 15 15:34:29 UTC 2021
#8528: BP Nouveau: make sure the Primary Nav block is registered before
unregistering it
--------------------------+---------------------
Reporter: imath | Owner: imath
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 9.0.0
Component: Templates | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------
Changes (by imath):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"13016" 13016]:
{{{
#!CommitTicketReference repository="" revision="13016"
Nouveau: only unregister the 'bp/primary-nav' block if it's registered
Nouveau unregisters this block when an admin edits a post type as it
doesn't make sense to use this block into the Post Block Editor context.
To prevent a `_doing_it_wrong()` from WordPress, it's probably safest to
check if the block exists before unregistering it.
This commits also makes sure the user is using WP > 5.0.
Fixes #8528
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8528#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list