Making WordPress.org

Changeset 2799


Ignore:
Timestamp:
03/25/2016 01:25:38 AM (9 years ago)
Author:
drewapicture
Message:

developer.wordpress.org: Add support for the 'filter_reference' and 'action_reference' hook types when displaying the "Action|Filter Hook" prefix on archive and search pages.

  • See [2290] for where the prefix text was introduced for the 'action' and 'filter' hook types.

Props keesiemeijer.
Fixes #1506.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php

    r2290 r2799  
    108108                switch ( $hook_type ) {
    109109                    case 'action':
     110                    case 'action_reference':
    110111                        $type = __( 'Action Hook', 'wporg' );
    111112                        break;
    112113                    case 'filter':
     114                    case 'filter_reference':
    113115                        $type = __( 'Filter Hook', 'wporg' );
    114116                        break;
Note: See TracChangeset for help on using the changeset viewer.