mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
Hooks: Standardize naming of dynamic hooks to use interpolation vs concatenation.
Benefits gained in discoverability and self-documentation throughout core trump the negligible performance hit in using interpolation in hook names. Props ramiy. See #37748. git-svn-id: https://develop.svn.wordpress.org/trunk@38307 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -331,7 +331,7 @@ do_action( 'add_meta_boxes', $post_type, $post );
|
||||
*
|
||||
* @param WP_Post $post Post object.
|
||||
*/
|
||||
do_action( 'add_meta_boxes_' . $post_type, $post );
|
||||
do_action( "add_meta_boxes_{$post_type}", $post );
|
||||
|
||||
/**
|
||||
* Fires after meta boxes have been added.
|
||||
|
||||
Reference in New Issue
Block a user