Skip to content

Commit 8510818

Browse files
Code Quality: Remove unused variable in WP_Block_Patterns_Registry.
Follow-up to [56805], [59101]. Props Soean, mukesh27. See #64898. git-svn-id: https://develop.svn.wordpress.org/trunk@62201 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d508d24 commit 8510818

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/wp-includes/class-wp-block-patterns-registry.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,9 @@ public function get_registered( $pattern_name ) {
227227
* and per style.
228228
*/
229229
public function get_all_registered( $outside_init_only = false ) {
230-
$patterns = $outside_init_only
231-
? $this->registered_patterns_outside_init
232-
: $this->registered_patterns;
233-
$hooked_blocks = get_hooked_blocks();
230+
$patterns = $outside_init_only
231+
? $this->registered_patterns_outside_init
232+
: $this->registered_patterns;
234233

235234
foreach ( $patterns as $index => $pattern ) {
236235
$content = $this->get_content( $pattern['name'], $outside_init_only );

0 commit comments

Comments
 (0)