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: admin_footer PHPDoc in build page files missing @param tag #19
Three build page files each contain a standalone PHPDoc block for do_action( 'admin_footer', '' ) that documents the hook with @since but omits the @param tag. PHPStan reports these as having 0 @param tags while the hook call passes 1 argument.
The primary documentation in wp-admin/admin-footer.php correctly includes the @param:
/** * Prints scripts or data before the default footer scripts. * * @since 1.2.0 * * @param string $data The data to print. */do_action( 'admin_footer', '' );
/** * Prints scripts or data before the default footer scripts. * * @since 1.2.0 */do_action( 'admin_footer', '' );
Fix
Replace the standalone PHPDoc in each file with the standard cross-reference comment:
- /**- * Prints scripts or data before the default footer scripts.- *- * @since 1.2.0- */+ /** This action is documented in wp-admin/admin-footer.php */
do_action( 'admin_footer', '' );
Activity
apermo commentedon Mar 8, 2026
Not in repo — src/wp-includes/build/ is not tracked in wordpress-develop.