Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Documentation"
on: # yamllint disable-line rule:truthy
push:
branches:
- "main"
- "*.x"
pull_request: null

jobs:
Expand Down Expand Up @@ -58,4 +58,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
4 changes: 4 additions & 0 deletions commands/class-make-block-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ protected function generate_block_class_name( $block_label ) {
*/
protected function generate_block_slug_name( $block_label ) {
$block_class_name = $this->generate_block_class_name( $block_label );

// Remove the _Block suffix.
$block_class_name = str_replace( '_Block', '', $block_class_name );

return strtolower( str_replace( '_', '-', $block_class_name ) );
}

Expand Down