Make WordPress Core

Changeset 15235


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

Trim trailing whitespace.

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/ie-rtl.dev.css

    r15218 r15235  
    148148    float: none;
    149149}
    150 #nav-menus-frame .open-label span {
    151     float: none;
    152     display: inline-block;
    153 }
    154 #nav-menus-frame .delete-action {
    155     float: none;
     150#nav-menus-frame .open-label span {
     151    float: none;
     152    display: inline-block;
    156153}
     154#nav-menus-frame .delete-action {
     155    float: none;
     156}
  • 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}
  • trunk/wp-admin/js/nav-menu.dev.js

    r15214 r15235  
    699699             * Will show and hide arrows where necessary.
    700700             * Scrolls to the active tab by default.
    701              * 
     701             *
    702702             * @param savePosition {boolean} Optional. Prevents scrolling so
    703              *        that the current position is maintained. Default false. 
     703             *        that the current position is maintained. Default false.
    704704             **/
    705705            api.refreshMenuTabs = function( savePosition ) {
  • trunk/wp-includes/nav-menu-template.php

    r15221 r15235  
    267267                            $term_to_ancestor[ $desc ] = $anc;
    268268                    }
    269                    
     269
    270270                    foreach ( $terms as $desc ) {
    271271                        do {
     
    383383                (
    384384                    'taxonomy' == $parent_item->type &&
    385                     isset( $possible_taxonomy_ancestors[ $parent_item->object ] ) && 
     385                    isset( $possible_taxonomy_ancestors[ $parent_item->object ] ) &&
    386386                    in_array( $parent_item->object_id, $possible_taxonomy_ancestors[ $parent_item->object ] )
    387387                )
  • trunk/wp-includes/nav-menu.php

    r15219 r15235  
    748748function _wp_menu_changing_status_observer( $new_status, $old_status, $post ) {
    749749    // append new top-level page objects to a menu for which that option is selected
    750     if ( 
    751         'publish' == $new_status && 
    752         'publish' != $old_status && 
    753         'page' == $post->post_type && 
     750    if (
     751        'publish' == $new_status &&
     752        'publish' != $old_status &&
     753        'page' == $post->post_type &&
    754754        empty( $post->post_parent )
    755755    ) {
    756756        $auto_add = get_option( 'nav_menu_options' );
    757         if ( 
     757        if (
    758758            isset( $auto_add['auto_add'] ) &&
    759             is_array( $auto_add['auto_add'] ) 
     759            is_array( $auto_add['auto_add'] )
    760760        ) {
    761761            $args = array(
     
    777777            }
    778778        }
    779     } 
    780    
     779    }
     780
    781781    // give menu items draft status if their associated post objects change from "publish" to "draft", or vice versa (draft item being re-published)
    782     if ( 
     782    if (
    783783        ! empty( $post->ID ) &&
    784         ( 
     784        (
    785785            ( 'publish' == $old_status && 'draft' == $new_status ) ||
    786             ( 'draft' == $old_status && 'publish' == $new_status ) 
     786            ( 'draft' == $old_status && 'publish' == $new_status )
    787787        )
    788788    ) {
  • trunk/wp-includes/theme.php

    r15196 r15235  
    15481548            $repeat = 'repeat';
    15491549        $repeat = " background-repeat: $repeat;";
    1550    
     1550
    15511551        $position = get_theme_mod( 'background_position_x', 'left' );
    15521552        if ( ! in_array( $position, array( 'center', 'right', 'left' ) ) )
    15531553            $position = 'left';
    15541554        $position = " background-position: top $position;";
    1555    
     1555
    15561556        $attachment = get_theme_mod( 'background_attachment', 'scroll' );
    15571557        if ( ! in_array( $attachment, array( 'fixed', 'scroll' ) ) )
  • trunk/wp-includes/user.php

    r15174 r15235  
    213213/**
    214214 * Get the current user's ID
    215  * 
     215 *
    216216 * @since MU
    217  * 
     217 *
    218218 * @uses wp_get_current_user
    219219 *
  • trunk/wp-signup.php

    r15217 r15235  
    177177    $blogs = get_blogs_of_user($current_user->ID);
    178178    if ( !empty($blogs) ) { ?>
    179        
     179
    180180            <p><?php _e( 'Sites you are already a member of:' ) ?></p>
    181181            <ul>
Note: See TracChangeset for help on using the changeset viewer.