Make WordPress Core

Changeset 13830


Ignore:
Timestamp:
03/26/2010 07:36:49 PM (15 years ago)
Author:
nacin
Message:

Remove trailing whites and double semicolons.

Location:
trunk
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r13802 r13830  
    13961396    }
    13971397    die( '0' );
    1398 case 'save-custom-link':   
     1398case 'save-custom-link':
    13991399    if ( ! current_user_can('manage_links') )
    14001400        die('-1');
    1401    
     1401
    14021402    $link_name = isset( $_POST['link_name'] ) ? esc_html($_POST['link_name']) : null;
    14031403    $link_url = isset( $_POST['link_url'] ) ? esc_url_raw($_POST['link_url']) : null;
    1404    
     1404
    14051405    if ( !$link_name || !$link_url )
    14061406        die('-1');
    1407    
     1407
    14081408    $post = array(
    14091409        'post_status' => 'draft', 'post_type' => 'nav_menu_item', 'ping_status' => 0,
     
    14111411        'post_parent' => 0, 'menu_order' => 0, 'post_content' => '',
    14121412    );
    1413    
     1413
    14141414    $link_id = wp_insert_post( $post );
    1415    
     1415
    14161416    update_post_meta( $link_id, '_menu_item_type', 'custom' );
    14171417    update_post_meta( $link_id, '_menu_item_object_id', (int) $link_id );
     
    14211421    update_post_meta( $link_id, '_menu_item_xfn', '' );
    14221422    update_post_meta( $link_id, '_menu_item_url', $link_url );
    1423    
     1423
    14241424    die( json_encode($link_id) );
    14251425default :
  • trunk/wp-admin/custom-background.php

    r13827 r13830  
    154154
    155155        if ( $align = get_theme_mod('background_position', 'left') )
    156             $align = "text-align: $align;";     
     156            $align = "text-align: $align;";
    157157?>
    158158<div id="custom-background-image"  style="<?php echo $bgcolor, $align ?>">
  • trunk/wp-admin/import/wordpress.php

    r13769 r13830  
    564564        $num_comments = 0;
    565565        $inserted_comments = array();
    566         if ( $comments) { 
     566        if ( $comments) {
    567567            foreach ($comments as $comment) {
    568568                $comment_id = $this->get_tag( $comment, 'wp:comment_id');
     
    675675    }
    676676
    677     function fetch_remote_file( $post, $url ) { 
     677    function fetch_remote_file( $post, $url ) {
    678678        add_filter( 'http_request_timeout', array( &$this, 'bump_request_timeout' ) );
    679679
  • trunk/wp-admin/includes/meta-boxes.php

    r13827 r13830  
    406406}
    407407
    408 /** 
     408/**
    409409 * Display comments for post table header
    410  * 
     410 *
    411411 * @since 3.0.0
    412  * 
     412 *
    413413 * @param $result table header rows
    414  * @return 
    415  */ 
    416 function post_comment_meta_box_thead($result) { 
     414 * @return
     415 */
     416function post_comment_meta_box_thead($result) {
    417417    unset($result['cb'], $result['response']);
    418     return $result; 
    419 } 
     418    return $result;
     419}
    420420
    421421/**
     
    442442<table class="widefat comments-box fixed" cellspacing="0" style="display:none;">
    443443<thead><tr>
    444     <?php print_column_headers('edit-comments'); ?> 
     444    <?php print_column_headers('edit-comments'); ?>
    445445</tr></thead>
    446446<tbody id="the-comment-list" class="list:comment"></tbody>
     
    453453<?php
    454454    }
    455     remove_filter('manage_edit-comments_columns', 'post_comment_meta_box_thead'); 
     455    remove_filter('manage_edit-comments_columns', 'post_comment_meta_box_thead');
    456456    wp_comment_trashnotice();
    457457}
  • trunk/wp-admin/includes/nav-menu.php

    r13802 r13830  
    1818function wp_initial_nav_menu_meta_boxes() {
    1919    global $wp_meta_boxes;
    20    
     20
    2121    if ( !get_user_option( 'meta-box-hidden_nav-menus' ) && is_array($wp_meta_boxes) ) {
    22        
     22
    2323        $initial_meta_boxes = array( 'manage-menu', 'create-menu', 'add-custom-links', 'add-page', 'add-category' );
    2424        $hidden_meta_boxes = array();
    25        
     25
    2626        foreach ( array_keys($wp_meta_boxes['nav-menus']) as $context ) {
    2727            foreach ( array_keys($wp_meta_boxes['nav-menus'][$context]) as $priority ) {
     
    3737        $user = wp_get_current_user();
    3838        update_user_meta( $user->ID, 'meta-box-hidden_nav-menus', $hidden_meta_boxes );
    39        
     39
    4040        // returns all the hidden metaboxes to the js function: wpNavMenu.initial_meta_boxes()
    4141        return join( ',', $hidden_meta_boxes );
     
    152152            <a class="hide-all"><?php _e('Hide All'); ?></a>
    153153        </span>
    154        
     154
    155155        <span class="add-to-menu">
    156156            <a class="button"><?php _e('Add to Menu'); ?></a>
     
    206206            <a class="hide-all"><?php _e('Hide All'); ?></a>
    207207        </span>
    208        
     208
    209209        <span class="add-to-menu">
    210210            <a class="button"><?php _e('Add to Menu'); ?></a>
     
    273273            <a class="hide-all"><?php _e('Hide All'); ?></a>
    274274        </span>
    275        
     275
    276276        <span class="add-to-menu">
    277277            <a class="button"><?php _e('Add to Menu'); ?></a>
     
    328328            // Set up the menu item
    329329            $menu_item = wp_setup_nav_menu_item( $menu_item, $object_type, $object );
    330            
     330
    331331            // No blank titles
    332332            if ( empty($menu_item->title) )
    333333                continue;
    334            
     334
    335335            $attributes = ( 'backend' == $context ) ? ' id="menu-item-'. $i .'" value="'. $i .'"' : '';
    336            
     336
    337337            $output .= '<li'. $attributes .'>';
    338338            $output .= wp_get_nav_menu_item( $menu_item, $object_type, $object );
  • trunk/wp-admin/nav-menus.php

    r13810 r13830  
    5959        if ( is_nav_menu($nav_menu_selected_id) ) {
    6060            $delete_nav_menu = wp_delete_nav_menu( $nav_menu_selected_id );
    61            
     61
    6262            if ( is_wp_error($delete_nav_menu) ) {
    6363                $messages_div = '<div id="message" class="error"><p>' . $delete_nav_menu->get_error_message() . '</p></div>';
     
    9494            }
    9595        } else {
    96            
     96
    9797            // @todo wrap this into wp_update_nav_menu_object();
    9898            if ( isset($_POST['menu-name']) ) {
     
    101101                $new_nav_menu = wp_update_term( $nav_menu_selected_id, 'nav_menu', $args );
    102102            }
    103            
     103
    104104            // Update menu items
    105            
     105
    106106            // @todo: wrap update logic into wp_update_nav_menu();
    107107            $update_count = isset( $_POST['li-count'] ) ? (int) $_POST['li-count'] : 0;
     
    110110            if ( !is_wp_error($update_nav_menu) ) {
    111111                $menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array('orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID') );
    112                
     112
    113113                // Loop through all POST variables
    114114                for ( $k = 0; $k < $update_count; $k++ ) {
    115                    
     115
    116116                    // Menu item title can't be blank
    117117                    if ( '' == $_POST['menu-item-title'][$k] )
    118118                        continue;
    119                    
     119
    120120                    $menu_item_db_id       = isset( $_POST['menu-item-db-id'][$k] )       ? $_POST['menu-item-db-id'][$k]       : 0;
    121121                    $menu_item_object_id   = isset( $_POST['menu-item-object-id'][$k] )   ? $_POST['menu-item-object-id'][$k]   : 0;
     
    141141                        'post_content' => $menu_item_description,
    142142                    );
    143                    
     143
    144144                    // New menu item
    145145                    if ( $menu_item_db_id == 0 ) {
    146146                        $menu_item_db_id = wp_insert_post( $post );
    147                    
     147
    148148                    // Update existing menu item
    149149                    } elseif ( isset($menu_items[$menu_item_db_id]) || ( 'custom' == $menu_item_type && 0 != $menu_item_db_id ) ) {
     
    171171                    }
    172172                }
    173                
     173
    174174                do_action( 'wp_update_nav_menu', $nav_menu_selected_id );
    175                
     175
    176176                $messages_div = '<div id="message" class="updated"><p>' . sprintf( __('The <strong>%s</strong> menu has been updated.'), $update_nav_menu->name ) . '</p></div>';
    177177                unset( $update_nav_menu, $update_count, $menu_items );
  • trunk/wp-content/themes/default/functions.php

    r13398 r13830  
    314314        display: <?php echo kubrick_header_display_string(); ?>;
    315315    }
    316    
     316
    317317    .description {
    318318        margin-top: 16px;
  • trunk/wp-content/themes/default/page.php

    r11885 r13830  
    2121        <?php endwhile; endif; ?>
    2222    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    23    
     23
    2424    <?php comments_template(); ?>
    25    
     25
    2626    </div>
    2727
  • trunk/wp-content/themes/twentyten/attachment.php

    r13818 r13830  
    5959                            $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' );
    6060                        }
    61                         printf( 
     61                        printf(
    6262                            $utility_text,
    6363                            get_the_category_list( ', ' ),
     
    6565                            get_permalink(),
    6666                            the_title_attribute( 'echo=0' ),
    67                             get_post_comments_feed_link() 
    68                         ); 
     67                            get_post_comments_feed_link()
     68                        );
    6969                    ?>
    7070
  • trunk/wp-content/themes/twentyten/category.php

    r13816 r13830  
    44            <div id="content">
    55
    6                 <h1 class="page-title"><?php 
     6                <h1 class="page-title"><?php
    77                    printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
    88                ?></h1>
  • trunk/wp-content/themes/twentyten/comments.php

    r13720 r13830  
    1313
    1414<?php if ( have_comments() ) : ?>
    15             <h3 id="comments-title"><?php comments_number( 
     15            <h3 id="comments-title"><?php comments_number(
    1616                sprintf( __( 'No Responses to %s', 'twentyten' ), '<em>' . get_the_title() . '</em>' ),
    1717                sprintf( __( 'One Response to %s', 'twentyten' ), '<em>' . get_the_title() . '</em>' ),
  • trunk/wp-content/themes/twentyten/functions.php

    r13724 r13830  
    197197    $current_term = $wp_query->get_queried_object();
    198198    $terms = wp_get_object_terms( $post->ID, $taxonomy );
    199     // If we're viewing a Taxonomy page.. 
     199    // If we're viewing a Taxonomy page..
    200200    if ( isset( $current_term->taxonomy ) && $taxonomy == $current_term->taxonomy ) {
    201201        // Remove the term from display.
  • trunk/wp-content/themes/twentyten/header.php

    r13818 r13830  
    1111            single_post_title( '' ); echo ' | '; bloginfo( 'name' );
    1212        } elseif ( is_search() ) {
    13             printf( __( 'Search results for "%s"', 'twentyten' ), esc_html( $s ) ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' ); 
     13            printf( __( 'Search results for "%s"', 'twentyten' ), esc_html( $s ) ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' );
    1414        } elseif ( is_404() ) {
    1515            _e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' );
  • trunk/wp-content/themes/twentyten/loop.php

    r13818 r13830  
    4343                    ?></a>
    4444                </div>
    45                 <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ), 
    46                         'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', 
    47                         $total_images 
     45                <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ),
     46                        'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
     47                        $total_images
    4848                    ); ?></em></p>
    4949
  • trunk/wp-content/themes/twentyten/sidebar-footer.php

    r13720 r13830  
    11<?php
    2     if ( 
     2    if (
    33        is_active_sidebar( 'first-footer-widget-area' )  ||
    44        is_active_sidebar( 'second-footer-widget-area' ) ||
    55        is_active_sidebar( 'third-footer-widget-area' )  ||
    6         is_active_sidebar( 'fourth-footer-widget-area' ) 
     6        is_active_sidebar( 'fourth-footer-widget-area' )
    77    ) :
    88?>
  • trunk/wp-content/themes/twentyten/single.php

    r13818 r13830  
    5050                            $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' );
    5151                        }
    52                         printf( 
     52                        printf(
    5353                            $utility_text,
    5454                            get_the_category_list( ', ' ),
     
    5656                            get_permalink(),
    5757                            the_title_attribute( 'echo=0' ),
    58                             get_post_comments_feed_link() 
    59                         ); 
     58                            get_post_comments_feed_link()
     59                        );
    6060                    ?>
    6161
  • trunk/wp-content/themes/twentyten/tag.php

    r13816 r13830  
    66<?php the_post(); ?>
    77
    8                 <h1 class="page-title"><?php 
     8                <h1 class="page-title"><?php
    99                    printf( __( 'Tag Archives: %s', 'twentyten' ), '<span>' . single_tag_title( '', false ) . '</span>' );
    1010                ?></h1>
  • trunk/wp-includes/classes.php

    r13802 r13830  
    935935                $children_elements[ $e->$parent_field ][] = $e;
    936936        }
    937        
     937
    938938        /*
    939939         * when none of the elements is top level
     
    11831183    function start_el(&$output, $item, $depth, $args) {
    11841184        $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
    1185        
     1185
    11861186        if ( 'frontend' == $args->context ) {
    11871187            global $wp_query;
    1188            
     1188
    11891189            $css_class = array( 'menu-item', 'menu-item-type-'. $item->type, $item->classes );
    1190            
     1190
    11911191            if ( 'custom' != $item->object )
    11921192                $css_class[] = 'menu-item-object-'. $item->object;
    1193            
     1193
    11941194            if ( $item->object_id == $wp_query->get_queried_object_id() )
    11951195                $css_class[] = 'current-menu-item';
    1196            
     1196
    11971197            // @todo add classes for parent/child relationships
    11981198
    11991199            $css_class = join( ' ', apply_filters('nav_menu_css_class', $css_class, $item) );
    12001200        }
    1201            
     1201
    12021202        $maybe_value = ( 'backend' == $args->context ) ? ' value="'. $item->ID .'"' : '';
    12031203        $maybe_classes = ( 'frontend' == $args->context ) ? ' class="'. $css_class .'"' : '';
    1204        
     1204
    12051205        $output .= $indent . '<li id="menu-item-'. $item->ID .'"'. $maybe_value . $maybe_classes .'>' . wp_get_nav_menu_item( $item, $args->context, $args );
    12061206    }
  • trunk/wp-includes/load.php

    r13822 r13830  
    3939function wp_fix_server_vars() {
    4040    global $PHP_SELF;
    41    
     41
    4242    $default_server_values = array(
    4343        'SERVER_SOFTWARE' => '',
     
    4646
    4747    $_SERVER = array_merge( $default_server_values, $_SERVER );
    48    
     48
    4949    // Fix for IIS when running with PHP ISAPI
    5050    if ( empty( $_SERVER['REQUEST_URI'] ) || ( php_sapi_name() != 'cgi-fcgi' && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) {
  • trunk/wp-includes/nav-menu-template.php

    r13802 r13830  
    5151    if ( 'div' == $args->container ) {
    5252        $class = $args->container_class ? ' class="' . esc_attr($args->container_class) . '"' : '';
    53        
     53
    5454        if ( is_nav_menu($menu) ) {
    5555            $nav_menu .= '<div id="menu-' . $menu->slug . '"'. $class .'>';
     
    6363    if ( 'div' == $args->container )
    6464        $nav_menu .= '</div>';
    65    
     65
    6666    $nav_menu = apply_filters( 'wp_nav_menu', $nav_menu, $args );
    6767
     
    8585    $defaults = array( 'menu' => '', 'menu_class' => 'menu', 'context' => 'frontend', 'depth' => 0,
    8686    'fallback_cb' => '', 'walker' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', );
    87    
     87
    8888    $args = wp_parse_args( $args, $defaults );
    8989    $args = apply_filters( 'wp_get_nav_menu_args', $args );
    9090    $args = (object) $args;
    91    
     91
    9292    // Variable setup
    9393    $nav_menu = '';
    9494    $items = '';
    95    
     95
    9696    // Get the menu object
    9797    $menu = wp_get_nav_menu_object( $args->menu );
    98    
     98
    9999    // If the menu exists, get it's items.
    100100    if ( $menu && !is_wp_error($menu) )
    101101        $menu_items = wp_get_nav_menu_items( $menu->term_id, $args->context );
    102    
     102
    103103    // If no menu was found or if the menu has no items, call the fallback_cb
    104104    if ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) ) ) {
     
    108108        }
    109109    }
    110        
     110
    111111    // Set up the $menu_item variables
    112112    foreach ( (array) $menu_items as $key => $menu_item )
    113113        $menu_items[$menu_item->menu_order] = wp_setup_nav_menu_item( $menu_item, 'frontend' );
    114    
     114
    115115    $items .= walk_nav_menu_tree( $menu_items, $args->depth, $args );
    116    
     116
    117117    // CSS class
    118118    $ul_class = $args->menu_class ? ' class="'. $args->menu_class .'"' : '';
    119119    $nav_menu .= '<ul'. $ul_class .'>';
    120    
     120
    121121    // Allow plugins to hook into the menu to add their own <li>'s
    122122    if ( 'frontend' == $args->context ) {
     
    127127        $nav_menu .= $items;
    128128    }
    129    
     129
    130130    $nav_menu .= '</ul>';
    131    
     131
    132132    return apply_filters( 'wp_get_nav_menu', $nav_menu );
    133133}
     
    151151            $attributes .= ( isset($menu_item->xfn) && '' != $menu_item->xfn ) ? ' rel="'. esc_attr($menu_item->xfn) .'"' : '';
    152152            $attributes .= ( isset($menu_item->url) && '' != $menu_item->url ) ? ' href="'. esc_attr($menu_item->url) .'"' : '';
    153            
     153
    154154            $output .= esc_html( $args->before );
    155155            $output .= '<a'. $attributes .'>';
     
    157157            $output .= '</a>';
    158158            $output .= esc_html( $args->after );
    159            
     159
    160160            break;
    161        
     161
    162162        case 'backend':
    163163            $output .= '<dl><dt>';
     
    165165            $output .= '<span class="item-controls">';
    166166            $output .= '<span class="item-type">'. esc_html( $menu_item->append ) .'</span>';
    167            
     167
    168168            // Actions
    169169            $output .= '<a class="item-edit thickbox" id="edit-'. esc_attr( $menu_item->ID ) .'" value="'. esc_attr( $menu_item->ID ) .'" title="'. __('Edit Menu Item') .'" href="#TB_inline?height=540&width=300&inlineId=menu-item-settings">'. __('Edit') .'</a> | ';
    170170            $output .= '<a class="item-delete" id="delete-'. esc_attr( $menu_item->ID ) .'" value="'. esc_attr( $menu_item->ID ) .'">'. __('Delete') .'</a>';
    171            
     171
    172172            $output .= '</span></dt></dl>';
    173            
     173
    174174            // Menu Item Settings
    175175            $output .= '<input type="hidden" name="menu-item-db-id[]" value="'. esc_attr( $menu_item->ID ) .'" />';
     
    187187            $output .= '<input type="hidden" name="menu-item-target[]" value="'. esc_attr( $menu_item->target ) .'" />';
    188188            break;
    189        
     189
    190190        case 'custom':
    191191        case 'taxonomy':
    192192        case 'post_type':
    193193            $output .= '<label class="menu-item-title"><input type="checkbox" id="'. esc_attr( 'menu-item-' . $menu_item->object_id ) .'" value="'. esc_attr( $menu_item->url ) .'" />'. $menu_item->title .'</label>';
    194            
     194
    195195            // Menu item hidden fields
    196196            $output .= '<input type="hidden" class="menu-item-db-id" value="0" />';
     
    210210            break;
    211211    }
    212    
     212
    213213    return $output;
    214214}
  • trunk/wp-includes/nav-menu.php

    r13802 r13830  
    7878
    7979    $result = get_term( $menu['term_id'], 'nav_menu' );
    80    
     80
    8181    if ( $result && !is_wp_error($result) ) {
    8282        do_action( 'wp_create_nav_menu', $menu['term_id'] );
     
    106106        }
    107107    }
    108    
     108
    109109    $result = wp_delete_term( $menu->term_id, 'nav_menu' );
    110    
     110
    111111    if ( $result && !is_wp_error($result) ) {
    112112        do_action( 'wp_delete_nav_menu', $menu->term_id );
     
    178178    $walker = ( empty($r->walker) ) ? new Walker_Nav_Menu : $r->walker;
    179179    $args = array( $items, $depth, $r );
    180    
     180
    181181    return call_user_func_array(array(&$walker, 'walk'), $args);
    182182}
     
    199199            $menu_item->object = get_post_meta( $menu_item->ID, '_menu_item_object', true );
    200200            $menu_item->type = get_post_meta( $menu_item->ID, '_menu_item_type', true );
    201            
     201
    202202            if ( 'post_type' == $menu_item->type ) {
    203203                $object = get_post_type_object( $menu_item->object );
    204204                $menu_item->append = $object->singular_label;
    205                
     205
    206206            } elseif ( 'taxonomy' == $menu_item->type ) {
    207207                $object = get_taxonomy( $menu_item->object );
    208208                $menu_item->append = $object->singular_label;
    209                
     209
    210210            } else {
    211211                $menu_item->append = __('Custom');
    212212            }
    213            
     213
    214214            $menu_item->title = $menu_item->post_title;
    215215            $menu_item->url = get_post_meta( $menu_item->ID, '_menu_item_url', true );
     
    219219            $menu_item->description = strip_tags( $menu_item->post_content );
    220220
    221             $menu_item->classes = get_post_meta( $menu_item->ID, '_menu_item_classes', true );;
     221            $menu_item->classes = get_post_meta( $menu_item->ID, '_menu_item_classes', true );
    222222            $menu_item->xfn = get_post_meta( $menu_item->ID, '_menu_item_xfn', true );
    223223            break;
     
    278278            $menu_item->xfn = '';
    279279            break;
    280     }   
     280    }
    281281    return $menu_item;
    282282}
  • trunk/wp-includes/pomo/mo.php

    r13316 r13830  
    194194     * Build a Translation_Entry from original string and translation strings,
    195195     * found in a MO file
    196      * 
     196     *
    197197     * @static
    198198     * @param string $original original string to translate from MO file. Might contain
  • trunk/wp-includes/pomo/po.php

    r13316 r13830  
    110110    /**
    111111     * Gives back the original string from a PO-formatted string
    112      * 
     112     *
    113113     * @static
    114114     * @param string $string PO-formatted string
     
    140140
    141141    /**
    142      * Inserts $with in the beginning of every new line of $string and 
     142     * Inserts $with in the beginning of every new line of $string and
    143143     * returns the modified string
    144144     *
     
    255255                }
    256256                // add comment
    257                 $this->add_comment_to_entry($entry, $line);;
     257                $this->add_comment_to_entry($entry, $line);
    258258            } elseif (preg_match('/^msgctxt\s+(".*")/', $line, $m)) {
    259259                if ($is_final($context)) {
  • trunk/wp-includes/pomo/translations.php

    r13316 r13830  
    153153     * Adds parantheses to the inner parts of ternary operators in
    154154     * plural expressions, because PHP evaluates ternary oerators from left to right
    155      * 
     155     *
    156156     * @param string $expression the expression without parentheses
    157157     * @return string the expression with parentheses added
  • trunk/wp-includes/query.php

    r13787 r13830  
    17161716            $q[ $q['post_type'] ] = str_replace('%2F', '/', urlencode(urldecode($q[ $q['post_type'] ])));
    17171717            $post_type_object = get_post_type_object($q['post_type']);
    1718             if ( ! $post_type_object->hierarchical || strpos($q[ $q['post_type'] ], '/') === false) { 
     1718            if ( ! $post_type_object->hierarchical || strpos($q[ $q['post_type'] ], '/') === false) {
    17191719                $q['name'] = $q[ $q['post_type'] ] = sanitize_title($q[ $q['post_type'] ]);
    1720                 $where .= " AND $wpdb->posts.post_name = '" . $q[ $q['post_type'] ] . "'";         
     1720                $where .= " AND $wpdb->posts.post_name = '" . $q[ $q['post_type'] ] . "'";
    17211721            } else {
    17221722                // Hierarchical post type, need to look deeper to see if its an attachment or this post_type
Note: See TracChangeset for help on using the changeset viewer.