Changeset 13464 for trunk/src/bp-core/classes/class-bp-core.php
- Timestamp:
- 04/25/2023 10:17:33 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-core.php
r13441 r13464 453 453 * 454 454 * @since 9.0.0 455 * @since 12.0.0 Use the WP Blocks API v2. 455 456 * 456 457 * @param array $blocks Optional. See BP_Component::blocks_init() for … … 461 462 array( 462 463 'bp/login-form' => array( 463 'name' => 'bp/login-form', 464 'editor_script' => 'bp-login-form-block', 465 'editor_script_url' => plugins_url( 'js/blocks/login-form.js', dirname( __FILE__ ) ), 466 'editor_script_deps' => array( 467 'wp-blocks', 468 'wp-element', 469 'wp-components', 470 'wp-i18n', 471 'wp-block-editor', 472 'wp-server-side-render', 473 ), 474 'style' => 'bp-login-form-block', 475 'style_url' => plugins_url( 'css/blocks/login-form.css', dirname( __FILE__ ) ), 476 'attributes' => array( 477 'title' => array( 478 'type' => 'string', 479 'default' => '', 480 ), 481 'forgotPwdLink' => array( 482 'type' => 'boolean', 483 'default' => false, 484 ), 485 ), 486 'render_callback' => 'bp_block_render_login_form_block', 464 'metadata' => trailingslashit( buddypress()->plugin_dir ) . 'bp-core/blocks/login-form', 465 'render_callback' => 'bp_block_render_login_form_block', 487 466 ), 488 467 )
Note: See TracChangeset
for help on using the changeset viewer.