Changeset 13464 for trunk/src/bp-blogs/classes/class-bp-blogs-component.php
- Timestamp:
- 04/25/2023 10:17:33 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/classes/class-bp-blogs-component.php
r13455 r13464 511 511 * 512 512 * @since 9.0.0 513 * @since 12.0.0 Use the WP Blocks API v2. 513 514 * 514 515 * @param array $blocks Optional. See BP_Component::blocks_init() for … … 520 521 if ( is_multisite() && bp_is_active( 'activity' ) ) { 521 522 $blocks['bp/recent-posts'] = array( 522 'name' => 'bp/recent-posts', 523 'editor_script' => 'bp-recent-posts-block', 524 'editor_script_url' => plugins_url( 'js/blocks/recent-posts.js', dirname( __FILE__ ) ), 525 'editor_script_deps' => array( 526 'wp-blocks', 527 'wp-element', 528 'wp-components', 529 'wp-i18n', 530 'wp-block-editor', 531 'wp-server-side-render', 532 ), 533 'style' => 'bp-recent-posts-block', 534 'style_url' => plugins_url( 'css/blocks/recent-posts.css', dirname( __FILE__ ) ), 535 'attributes' => array( 536 'title' => array( 537 'type' => 'string', 538 'default' => __( 'Recent Networkwide Posts', 'buddypress' ), 539 ), 540 'maxPosts' => array( 541 'type' => 'number', 542 'default' => 10, 543 ), 544 'linkTitle' => array( 545 'type' => 'boolean', 546 'default' => false, 547 ), 548 ), 549 'render_callback' => 'bp_blogs_render_recent_posts_block', 523 'metadata' => trailingslashit( buddypress()->plugin_dir ) . 'bp-blogs/blocks/recent-posts', 524 'render_callback' => 'bp_blogs_render_recent_posts_block', 550 525 ); 551 526 }
Note: See TracChangeset
for help on using the changeset viewer.