[wp-trac] [WordPress Trac] #63250: Docs: Improve document and parameters in render_block_core_* function
WordPress Trac
noreply at wordpress.org
Tue Apr 8 11:17:34 UTC 2025
#63250: Docs: Improve document and parameters in render_block_core_* function
--------------------------+-----------------------------
Reporter: dilipbheda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Keywords: has-patch
Focuses: docs |
--------------------------+-----------------------------
While reviewing the core-registered block callback functions in `wp-
includes/blocks/`, I noticed that some inline documentation references
undeclared variables. These should be corrected for clarity and accuracy.
Additionally, in the `render_block_core_latest_comments` function, I
updated the `$attributes = array()` default to just `$attributes` since
the `callback` already passes the value into the function. I compared this
with other blocks callbacks and removed the unnecessary default assignment
to maintain consistency.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63250>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list