Make WordPress Core


Ignore:
Timestamp:
12/14/2016 04:17:38 AM (9 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r39598 r39600  
    20622062             *                        'attribute' and 'js'.
    20632063             */
    2064             $value = apply_filters( $field, $value, $post_id, $context );
     2064            $value = apply_filters( "{$field}", $value, $post_id, $context );
    20652065        } else {
    20662066            $value = apply_filters( "post_{$field}", $value, $post_id, $context );
Note: See TracChangeset for help on using the changeset viewer.