mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +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:
@@ -383,7 +383,7 @@ function sanitize_bookmark_field( $field, $value, $bookmark_id, $context ) {
|
||||
|
||||
if ( 'edit' == $context ) {
|
||||
/** This filter is documented in wp-includes/post.php */
|
||||
$value = apply_filters( "edit_$field", $value, $bookmark_id );
|
||||
$value = apply_filters( "edit_{$field}", $value, $bookmark_id );
|
||||
|
||||
if ( 'link_notes' == $field ) {
|
||||
$value = esc_html( $value ); // textarea_escaped
|
||||
@@ -392,10 +392,10 @@ function sanitize_bookmark_field( $field, $value, $bookmark_id, $context ) {
|
||||
}
|
||||
} elseif ( 'db' == $context ) {
|
||||
/** This filter is documented in wp-includes/post.php */
|
||||
$value = apply_filters( "pre_$field", $value );
|
||||
$value = apply_filters( "pre_{$field}", $value );
|
||||
} else {
|
||||
/** This filter is documented in wp-includes/post.php */
|
||||
$value = apply_filters( $field, $value, $bookmark_id, $context );
|
||||
$value = apply_filters( "{$field}", $value, $bookmark_id, $context );
|
||||
|
||||
if ( 'attribute' == $context ) {
|
||||
$value = esc_attr( $value );
|
||||
|
||||
Reference in New Issue
Block a user