WordPress.org

Plugin Directory

Changeset 593161


Ignore:
Timestamp:
08/31/12 21:38:33 (20 months ago)
Author:
tmoorewp
Message:

Removing unneeded function. Props @mdawaffe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/sharedaddy/sharedaddy.php

    r593135 r593161  
    4040    <?php 
    4141 
    42 } 
    43  
    44 /** 
    45  * Get the singular name of the type of post. 
    46  * 
    47  * @return mixed|void 
    48  */ 
    49 if ( ! function_exists( 'wpl_get_post_type_name' ) ) { 
    50     function wpl_get_post_type_name() { 
    51  
    52             $post_type = get_post_type(); 
    53  
    54             if ( 'post' == $post_type ) { 
    55                     $post_type = __( 'post' ); 
    56  
    57             } elseif ( 'page' == $post_type ) { 
    58                     $post_type = __( 'page' ); 
    59  
    60             } else { 
    61                     $post_type = get_post_type_object( $post_type ); 
    62                     $post_type = strtolower( $post_type->labels->singular_name ); 
    63             } 
    64  
    65             return apply_filters( 'wpl_get_post_type_name', $post_type ); 
    66     } 
    6742} 
    6843 
Note: See TracChangeset for help on using the changeset viewer.