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
{{ message }}
Repository navigation
Hooks/Docs: Missing PHPDoc on active hooks — pre_option_enable_xmlrpc, option_enable_xmlrpc, show_recent_comments_widget_style, enqueue_block_assets (secondary), build page init hooks #28
pre_option_enable_xmlrpc and option_enable_xmlrpc are back-compat filters left for plugins that used to hook get_option('enable_xmlrpc') before the option was removed in 3.5.0. They have no PHPDoc at all.
enqueue_block_assets is called a second time in wp_add_iframed_editor_assets_html() without any comment. The primary PHPDoc lives in wp-includes/script-loader.php.
Fix: replace the bare call with /** This action is documented in wp-includes/script-loader.php */.
wp-includes/build/pages — Init actions (6)
Six build-page scaffolding files each fire an _init action with no PHPDoc. These are new hooks introduced with the build-pages architecture and have no documentation anywhere.
Each needs a PHPDoc explaining when the hook fires and what it is for. These are the most impactful of the group — public hooks for page initialization with no documentation.
Note: these files may be generated/templated — worth confirming with Weston whether the source of truth is elsewhere before adding PHPDoc directly.
show_recent_comments_widget_style — already has a complete PHPDoc block at class-wp-widget-recent-comments.php:45-52 with @since 3.1.0, @param bool, @param string. No action needed. Removing from this issue's scope.
Needs xref (canonical PHPDoc exists):
enqueue_block_assets in block-editor.php:341 — canonical PHPDoc in script-loader.php:2509-2516. Needs /** This action is documented in wp-includes/script-loader.php */.
Needs own PHPDoc:
pre_option_enable_xmlrpc, option_enable_xmlrpc — single occurrence each in class-wp-xmlrpc-server.php. Back-compat filters, need PHPDoc with note about xmlrpc_enabled filter.
Build page init hooks (6 occurrences) — font-library_init, font-library-wp-admin_init, options-connectors_init, options-connectors-wp-admin_init, site-editor-v2_init, site-editor-v2-wp-admin_init. These files are likely generated/templated — needs confirmation before adding PHPDoc directly.
No action needed — all items resolved or false positives: xmlrpc filters are deprecated back-compat, show_recent_comments_widget_style already has PHPDoc, enqueue_block_assets fixed in PR WordPress#11205 (#36), build page files don't exist in the repo.
Activity
apermo commentedon Mar 8, 2026
Cross-reference analysis
False positive — already has PHPDoc:
show_recent_comments_widget_style— already has a complete PHPDoc block atclass-wp-widget-recent-comments.php:45-52with@since 3.1.0,@param bool,@param string. No action needed. Removing from this issue's scope.Needs xref (canonical PHPDoc exists):
enqueue_block_assetsinblock-editor.php:341— canonical PHPDoc inscript-loader.php:2509-2516. Needs/** This action is documented in wp-includes/script-loader.php */.Needs own PHPDoc:
pre_option_enable_xmlrpc,option_enable_xmlrpc— single occurrence each inclass-wp-xmlrpc-server.php. Back-compat filters, need PHPDoc with note aboutxmlrpc_enabledfilter.font-library_init,font-library-wp-admin_init,options-connectors_init,options-connectors-wp-admin_init,site-editor-v2_init,site-editor-v2-wp-admin_init. These files are likely generated/templated — needs confirmation before adding PHPDoc directly.apermo commentedon Mar 8, 2026
No action needed — all items resolved or false positives: xmlrpc filters are deprecated back-compat, show_recent_comments_widget_style already has PHPDoc, enqueue_block_assets fixed in PR WordPress#11205 (#36), build page files don't exist in the repo.