You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened
To Reproduce
Step-by-step reproduction instructions
Install the plugin
Add a comment block in a post template
Check the site when not logged in.
Expected results
Excpected not to see a warning
Actual results
A warning is thrown.
Even though it should maybe only render for logged in admins, the core/comment-edit-link is rendered for everybody in the front-end. Albeit not displaying anything, there's still an empy <div> showing up.
Because the block is rendered, the code on line 128 in hacks.php passes if ( isset( $block['blockName'] ) && $block['blockName'] === 'core/comment-edit-link' ) { but the preg_match on line 129 won't find a match resulting in a warning on line 131.
Screenshots, screen recording, code snippet
If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.
Technical info
Used versions
Device you are using:
Operating system:
PHP version:
WordPress version:
WordPress Theme:
Plugin version:
Relevant plugins in case of a bug:
The text was updated successfully, but these errors were encountered:
Please give us a description of what happened
To Reproduce
Step-by-step reproduction instructions
Expected results
Actual results
Even though it should maybe only render for logged in admins, the
core/comment-edit-link
is rendered for everybody in the front-end. Albeit not displaying anything, there's still an empy<div>
showing up.Because the block is rendered, the code on line 128 in
hacks.php
passesif ( isset( $block['blockName'] ) && $block['blockName'] === 'core/comment-edit-link' ) {
but thepreg_match
on line 129 won't find a match resulting in a warning on line 131.Screenshots, screen recording, code snippet
If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.
Technical info
Used versions
The text was updated successfully, but these errors were encountered: