Changeset 7383
- Timestamp:
- 12/26/2025 08:41:12 PM (6 months ago)
- Location:
- trunk/src
- Files:
-
- 38 added
- 6 edited
-
bbpress.php (modified) (6 diffs)
-
includes/admin/assets/css/admin.css (modified) (1 diff)
-
includes/admin/assets/css/blocks.css (added)
-
includes/admin/assets/js/blocks.js (added)
-
includes/admin/classes/class-bbp-admin.php (modified) (3 diffs)
-
includes/common/blocks (added)
-
includes/common/blocks.php (added)
-
includes/common/blocks/forum-form (added)
-
includes/common/blocks/forum-form/block.json (added)
-
includes/common/blocks/forum-index (added)
-
includes/common/blocks/forum-index/block.json (added)
-
includes/common/blocks/login (added)
-
includes/common/blocks/login/block.json (added)
-
includes/common/blocks/lost-pass (added)
-
includes/common/blocks/lost-pass/block.json (added)
-
includes/common/blocks/register (added)
-
includes/common/blocks/register/block.json (added)
-
includes/common/blocks/reply-form (added)
-
includes/common/blocks/reply-form/block.json (added)
-
includes/common/blocks/search (added)
-
includes/common/blocks/search-form (added)
-
includes/common/blocks/search-form/block.json (added)
-
includes/common/blocks/search/block.json (added)
-
includes/common/blocks/single-forum (added)
-
includes/common/blocks/single-forum/block.json (added)
-
includes/common/blocks/single-reply (added)
-
includes/common/blocks/single-reply/block.json (added)
-
includes/common/blocks/single-tag (added)
-
includes/common/blocks/single-tag/block.json (added)
-
includes/common/blocks/single-topic (added)
-
includes/common/blocks/single-topic/block.json (added)
-
includes/common/blocks/single-view (added)
-
includes/common/blocks/single-view/block.json (added)
-
includes/common/blocks/stats (added)
-
includes/common/blocks/stats/block.json (added)
-
includes/common/blocks/topic-form (added)
-
includes/common/blocks/topic-form/block.json (added)
-
includes/common/blocks/topic-index (added)
-
includes/common/blocks/topic-index/block.json (added)
-
includes/common/blocks/topic-tags (added)
-
includes/common/blocks/topic-tags/block.json (added)
-
includes/core/actions.php (modified) (1 diff)
-
includes/core/sub-actions.php (modified) (2 diffs)
-
templates/default/css/bbpress.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bbpress.php
r7380 r7383 350 350 // Common 351 351 require $this->includes_dir . 'common/ajax.php'; 352 require $this->includes_dir . 'common/blocks.php'; 352 353 require $this->includes_dir . 'common/classes.php'; 353 354 require $this->includes_dir . 'common/engagements.php'; … … 430 431 'register_taxonomies', // Register taxonomies (topic-tag) 431 432 'register_shortcodes', // Register shortcodes (bbp-login) 433 'register_blocks', // Register blocks (bbp-login) 432 434 'register_views', // Register the views (no-replies) 433 435 'register_theme_packages', // Register bundled theme packages (bbp-theme-compat/bbp-themes) … … 544 546 'public' => true, 545 547 'show_ui' => current_user_can( 'bbp_forums_admin' ), 548 'show_in_rest' => true, 546 549 'can_export' => true, 547 550 'hierarchical' => true, … … 573 576 'public' => true, 574 577 'show_ui' => current_user_can( 'bbp_topics_admin' ), 578 'show_in_rest' => true, 575 579 'can_export' => true, 576 580 'hierarchical' => false, … … 602 606 'public' => true, 603 607 'show_ui' => current_user_can( 'bbp_replies_admin' ), 608 'show_in_rest' => true, 604 609 'can_export' => true, 605 610 'hierarchical' => false, … … 798 803 799 804 /** 800 * Register bbPress meta-data. 805 * Register the bbPress blocks. 806 * 807 * @since 2.7.0 bbPress (r7382) 808 */ 809 public function register_blocks() { 810 $this->blocks = new BBP_Blocks(); 811 } 812 813 /** 814 * Register bbPress meta-data 801 815 * 802 816 * Counts added in 2.6.0 to avoid negative values. -
trunk/src/includes/admin/assets/css/admin.css
r7268 r7383 161 161 th .bbp_replies_column::before { 162 162 font: 400 20px/0.5 dashicons; 163 speak: none;164 163 display: inline-block; 165 164 padding: 0; -
trunk/src/includes/admin/classes/class-bbp-admin.php
r7380 r7383 890 890 $version = bbp_get_asset_version(); 891 891 892 // Register admin CSS with dashicons dependency 893 wp_register_style( 'bbp-admin-css', $this->css_url . 'admin' . $suffix . '.css', array( 'dashicons' ), $version ); 892 // Register admin CSS 893 wp_register_style( 'bbp-admin-css', $this->css_url . 'admin' . $suffix . '.css', array( 'dashicons' ), $version ); 894 wp_register_style( 'bbp-admin-blocks', $this->css_url . 'blocks' . $suffix . '.css', array(), $version ); 894 895 895 896 // Color schemes are not available when running out of src … … 926 927 927 928 /** 928 * Registers the bbPress admin color schemes. 929 * 930 * Because wp-content can exist outside of the WordPress root there is no 931 * way to be certain what the relative path of the admin images is. 932 * We are including the two most common configurations here, just in case. 929 * Registers the bbPress admin scripts. 933 930 * 934 931 * @since 2.6.0 bbPress (r2521) … … 943 940 944 941 // Header JS 945 // phpcs:disable WordPress.WP.EnqueuedResourceParameters.NotInFooter 946 wp_register_script( 'bbp-admin-common-js', $this->js_url . 'common' . $suffix . '.js', array( 'jquery', 'suggest' ), $version ); 947 wp_register_script( 'bbp-admin-topics-js', $this->js_url . 'topics' . $suffix . '.js', array( 'jquery' ), $version ); 948 wp_register_script( 'bbp-admin-replies-js', $this->js_url . 'replies' . $suffix . '.js', array( 'jquery', 'suggest' ), $version ); 949 wp_register_script( 'bbp-converter', $this->js_url . 'converter' . $suffix . '.js', array( 'jquery', 'postbox', 'dashboard' ), $version ); 942 // phpcs:disable 943 wp_register_script( 'bbp-admin-blocks', $this->js_url . 'blocks' . $suffix . '.js', array( 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-element', 'wp-server-side-render' ), $version ); 944 wp_register_script( 'bbp-admin-common-js', $this->js_url . 'common' . $suffix . '.js', array( 'jquery', 'suggest' ), $version ); 945 wp_register_script( 'bbp-admin-topics-js', $this->js_url . 'topics' . $suffix . '.js', array( 'jquery' ), $version ); 946 wp_register_script( 'bbp-admin-replies-js', $this->js_url . 'replies' . $suffix . '.js', array( 'jquery', 'suggest' ), $version ); 947 wp_register_script( 'bbp-converter', $this->js_url . 'converter' . $suffix . '.js', array( 'jquery', 'postbox', 'dashboard' ), $version ); 950 948 // phpcs:enable 951 949 -
trunk/src/includes/core/actions.php
r7380 r7383 124 124 add_action( 'bbp_register', 'bbp_register_views', 8 ); 125 125 add_action( 'bbp_register', 'bbp_register_shortcodes', 10 ); 126 add_action( 'bbp_register', 'bbp_register_blocks', 10 ); 126 127 add_action( 'bbp_register', 'bbp_register_meta', 12 ); 127 128 -
trunk/src/includes/core/sub-actions.php
r7380 r7383 213 213 214 214 /** 215 * Register the default bbPress blocks. 216 * 217 * @since 2.7.0 bbPress (r7382) 218 */ 219 function bbp_register_blocks() { 220 do_action( 'bbp_register_blocks' ); 221 } 222 223 /** 215 224 * Register the default bbPress meta-data. 216 225 * … … 258 267 259 268 /** 260 * Add the bbPress-specific login forum action 269 * Add the bbPress-specific login forum action. 261 270 * 262 271 * @since 2.0.0 bbPress (r2753) -
trunk/src/templates/default/css/bbpress.css
r7231 r7383 26 26 overflow: hidden; 27 27 clip: rect(1px, 1px, 1px, 1px); 28 -webkit-clip-path: inset(50%);29 28 clip-path: inset(50%); 30 29 border: 0;
Note: See TracChangeset
for help on using the changeset viewer.