Changeset 5598 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
- Timestamp:
- 06/27/2017 10:34:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r5597 r5598 556 556 $hook_type = get_post_meta( $post_id, '_wp-parser_hook_type', true ); 557 557 if ( false !== strpos( $hook_type, 'action' ) ) { 558 $hook_type = ( 'action_reference' === $hook_type ) ? 'do_action_ref_array' : 'do_action'; 558 if ( 'action_reference' === $hook_type ) { 559 $hook_type = 'do_action_ref_array'; 560 } elseif ( 'action_deprecated' === $hook_type ) { 561 $hook_type = 'do_action_deprecated'; 562 } else { 563 $hook_type = 'do_action'; 564 } 559 565 } else { 560 $hook_type = ( 'filter_reference' === $hook_type ) ? 'apply_filters_ref_array' : 'apply_filters'; 566 if ( 'filter_reference' === $hook_type ) { 567 $hook_type = 'apply_filters_ref_array'; 568 } elseif ( 'filter_deprecated' === $hook_type ) { 569 $hook_type = 'apply_filters_deprecated'; 570 } else { 571 $hook_type = 'apply_filters'; 572 } 561 573 } 562 574
Note: See TracChangeset
for help on using the changeset viewer.