[buddypress-trac] [BuddyPress Trac] #8319: Block based Activity post form
buddypress-trac
noreply at wordpress.org
Sat Jun 8 06:09:31 UTC 2024
#8319: Block based Activity post form
--------------------------------------+-----------------------
Reporter: imath | Owner: imath
Type: enhancement | Status: assigned
Priority: normal | Milestone: 14.0.0
Component: Activity | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests |
--------------------------------------+-----------------------
Comment (by imath):
In [changeset:"13912" 13912]:
{{{
#!CommitTicketReference repository="" revision="13912"
Introduce theme support check for specific component features
Some of the feature we'll soon introduce like the Block based activity
post form will need standalone BP themes to do some adjustments to their
code to support them.
Once done, they'll need to opt-in for these features using the WordPress
`add_theme_support()` function. The first argument for this function
remains `buddypress`. Supporting BP component specific features will need
to use a second argument: an associative array keyed by BP Component IDs.
For instance, it will be `array( 'activity' => array( 'block-editor' ) )`
when a theme support the future Block based activity post form.
In BuddyPress code, we'll then be able for example to use the following
kind of check `bp_current_theme_supports( array( 'activity' => 'block-
editor' ) )` to be sure the theme fully support the feature.
Props espellcaste
See #8319
Closes https://github.com/buddypress/buddypress/pull/301
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8319#comment:14>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list