mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-06 05:34:26 +00:00
General: Use interpolation instead of concatenation for all dynamic hook names.
This fixes the rendering of the hook names on developer.wordpress.org. Props keesiemeijer Fixes #39148 git-svn-id: https://develop.svn.wordpress.org/trunk@39600 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2061,7 +2061,7 @@ function sanitize_post_field( $field, $value, $post_id, $context = 'display' ) {
|
||||
* values include 'raw', 'edit', 'db', 'display',
|
||||
* 'attribute' and 'js'.
|
||||
*/
|
||||
$value = apply_filters( $field, $value, $post_id, $context );
|
||||
$value = apply_filters( "{$field}", $value, $post_id, $context );
|
||||
} else {
|
||||
$value = apply_filters( "post_{$field}", $value, $post_id, $context );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user