Make WordPress Core


Ignore:
Timestamp:
06/11/2010 08:19:35 PM (15 years ago)
Author:
ryan
Message:

Trim trailing whitespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r15203 r15235  
    845845    // No parent as top level
    846846    $_parent_pages[$menu_slug] = false;
    847    
     847
    848848    return $hookname;
    849849}
     
    956956    // No parent as top level
    957957    $_parent_pages[$menu_slug] = $parent_slug;
    958        
     958
    959959    return $hookname;
    960960}
     
    11741174/**
    11751175 * Get the url to access a particular menu page based on the slug it was registered with.
    1176  * 
     1176 *
    11771177 * If the slug hasn't been registered properly no url will be returned
    1178  * 
     1178 *
    11791179 * @since 3.0
    1180  * 
     1180 *
    11811181 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
    11821182 * @param bool $echo Whether or not to echo the url - default is true
     
    11851185function menu_page_url($menu_slug, $echo = true) {
    11861186    global $_parent_pages;
    1187        
     1187
    11881188    if ( isset( $_parent_pages[$menu_slug] ) ) {
    11891189        if ( $_parent_pages[$menu_slug] ) {
     
    11951195        $url = '';
    11961196    }
    1197    
     1197
    11981198    $url = esc_url($url);
    1199    
     1199
    12001200    if ( $echo )
    12011201        echo $url;
    1202    
     1202
    12031203    return $url;
    12041204}
Note: See TracChangeset for help on using the changeset viewer.