WordPress.org

Make WordPress Core

Changeset 22164


Ignore:
Timestamp:
10/10/12 13:50:42 (3 years ago)
Author:
nacin
Message:

Add post_type_labels_{$post_type} filter. props scribu. fixes #21948.

File:
1 edited

Legend:

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

    r22163 r22164  
    13801380    ); 
    13811381    $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 
    1382     return _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults ); 
     1382 
     1383    $labels = _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults ); 
     1384 
     1385    $post_type = $post_type_object->name; 
     1386    return apply_filters( "post_type_labels_{$post_type}", $labels ); 
    13831387} 
    13841388 
Note: See TracChangeset for help on using the changeset viewer.