Changeset 17989
- Timestamp:
- 05/22/2011 10:30:05 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/export.php
r17700 r17989 50 50 $post_types = get_post_types( array( 'can_export' => true ) ); 51 51 $esses = array_fill( 0, count($post_types), '%s' ); 52 $where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (" . implode(',',$esses) .")", $post_types );52 $where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (" . implode( ',', $esses ) . ')', $post_types ); 53 53 } 54 54 … … 124 124 125 125 // $str = ent2ncr(esc_html($str)); 126 $str = "<![CDATA[$str" . ( ( substr( $str, -1 ) == ']' ) ? ' ' : '' ) . "]]>";126 $str = "<![CDATA[$str" . ( ( substr( $str, -1 ) == ']' ) ? ' ' : '' ) . ']]>'; 127 127 128 128 return $str; … … 351 351 // fetch 20 posts at a time rather than loading the entire table into memory 352 352 while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) { 353 $where = "WHERE ID IN (" . join( ',', $next_posts ) . ")";353 $where = 'WHERE ID IN (' . join( ',', $next_posts ) . ')'; 354 354 $posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" ); 355 355 -
trunk/wp-includes/general-template.php
r17966 r17989 29 29 $templates[] = "header-{$name}.php"; 30 30 31 $templates[] = "header.php";31 $templates[] = 'header.php'; 32 32 33 33 // Backward compat code will be removed in a future release … … 58 58 $templates[] = "footer-{$name}.php"; 59 59 60 $templates[] = "footer.php";60 $templates[] = 'footer.php'; 61 61 62 62 // Backward compat code will be removed in a future release … … 87 87 $templates[] = "sidebar-{$name}.php"; 88 88 89 $templates[] = "sidebar.php";89 $templates[] = 'sidebar.php'; 90 90 91 91 // Backward compat code will be removed in a future release … … 570 570 $my_month = $wp_locale->get_month(substr($m, 4, 2)); 571 571 $my_day = intval(substr($m, 6, 2)); 572 $title = $my_year . ( $my_month ? $t_sep . $my_month : "") . ($my_day ? $t_sep . $my_day : "");572 $title = $my_year . ( $my_month ? $t_sep . $my_month : '' ) . ( $my_day ? $t_sep . $my_day : '' ); 573 573 } 574 574 … … 844 844 $link_html = "\t$before<a href='$url' title='$title_text'>$text</a>$after\n"; 845 845 846 $link_html = apply_filters( "get_archives_link", $link_html );846 $link_html = apply_filters( 'get_archives_link', $link_html ); 847 847 848 848 return $link_html; … … 916 916 917 917 //filters 918 $where = apply_filters( 'getarchives_where', "WHERE post_type = 'post' AND post_status = 'publish'", $r );919 $join = apply_filters( 'getarchives_join', "", $r);918 $where = apply_filters( 'getarchives_where', "WHERE post_type = 'post' AND post_status = 'publish'", $r ); 919 $join = apply_filters( 'getarchives_join', '', $r ); 920 920 921 921 $output = ''; … … 1017 1017 } 1018 1018 } elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) { 1019 $orderby = ('alpha' == $type) ? "post_title ASC " : "post_date DESC ";1019 $orderby = ('alpha' == $type) ? 'post_title ASC ' : 'post_date DESC '; 1020 1020 $query = "SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit"; 1021 1021 $key = md5($query); … … 1249 1249 1250 1250 if ( in_array($day, $daywithpost) ) // any posts today? 1251 $calendar_output .= '<a href="' . get_day_link( $thisyear, $thismonth, $day) . "\" title=\"" . esc_attr($ak_titles_for_day[$day]) . "\">$day</a>";1251 $calendar_output .= '<a href="' . get_day_link( $thisyear, $thismonth, $day ) . '" title="' . esc_attr( $ak_titles_for_day[ $day ] ) . "\">$day</a>"; 1252 1252 else 1253 1253 $calendar_output .= $day; … … 1998 1998 $link = add_query_arg( $add_args, $link ); 1999 1999 $link .= $add_fragment; 2000 $page_links[] = "<a class='prev page-numbers' href='" . esc_url( apply_filters( 'paginate_links', $link ) ) . "'>$prev_text</a>";2000 $page_links[] = '<a class="prev page-numbers" href="' . esc_url( apply_filters( 'paginate_links', $link ) ) . '">' . $prev_text . '</a>'; 2001 2001 endif; 2002 2002 for ( $n = 1; $n <= $total; $n++ ) : … … 2015 2015 $dots = true; 2016 2016 elseif ( $dots && !$show_all ) : 2017 $page_links[] = "<span class='page-numbers dots'>...</span>";2017 $page_links[] = '<span class="page-numbers dots">...</span>'; 2018 2018 $dots = false; 2019 2019 endif; … … 2026 2026 $link = add_query_arg( $add_args, $link ); 2027 2027 $link .= $add_fragment; 2028 $page_links[] = "<a class='next page-numbers' href='" . esc_url( apply_filters( 'paginate_links', $link ) ) . "'>$next_text</a>";2028 $page_links[] = '<a class="next page-numbers" href="' . esc_url( apply_filters( 'paginate_links', $link ) ) . '">' . $next_text . '</a>'; 2029 2029 endif; 2030 2030 switch ( $type ) : -
trunk/wp-includes/theme.php
r17770 r17989 80 80 function get_stylesheet_uri() { 81 81 $stylesheet_dir_uri = get_stylesheet_directory_uri(); 82 $stylesheet_uri = $stylesheet_dir_uri . "/style.css";82 $stylesheet_uri = $stylesheet_dir_uri . '/style.css'; 83 83 return apply_filters('stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri); 84 84 } … … 828 828 $templates[] = "category-{$category->slug}.php"; 829 829 $templates[] = "category-{$category->term_id}.php"; 830 $templates[] = "category.php";830 $templates[] = 'category.php'; 831 831 832 832 return get_query_template( 'category', $templates ); … … 852 852 $templates[] = "tag-{$tag->slug}.php"; 853 853 $templates[] = "tag-{$tag->term_id}.php"; 854 $templates[] = "tag.php";854 $templates[] = 'tag.php'; 855 855 856 856 return get_query_template( 'tag', $templates ); … … 882 882 $templates[] = "taxonomy-$taxonomy-{$term->slug}.php"; 883 883 $templates[] = "taxonomy-$taxonomy.php"; 884 $templates[] = "taxonomy.php";884 $templates[] = 'taxonomy.php'; 885 885 886 886 return get_query_template( 'taxonomy', $templates ); … … 964 964 if ( $id ) 965 965 $templates[] = "page-$id.php"; 966 $templates[] = "page.php";966 $templates[] = 'page.php'; 967 967 968 968 return get_query_template( 'page', $templates ); -
trunk/wp-signup.php
r16755 r17989 14 14 15 15 function do_signup_header() { 16 do_action( "signup_header");16 do_action( 'signup_header' ); 17 17 } 18 18 add_action( 'wp_head', 'do_signup_header' ); … … 189 189 <form id="setupform" method="post" action="wp-signup.php"> 190 190 <input type="hidden" name="stage" value="gimmeanotherblog" /> 191 <?php do_action( "signup_hidden_fields"); ?>191 <?php do_action( 'signup_hidden_fields' ); ?> 192 192 <?php show_blog_form($blogname, $blog_title, $errors); ?> 193 193 <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p> … … 253 253 <form id="setupform" method="post" action="wp-signup.php"> 254 254 <input type="hidden" name="stage" value="validate-user-signup" /> 255 <?php do_action( "signup_hidden_fields"); ?>255 <?php do_action( 'signup_hidden_fields' ); ?> 256 256 <?php show_user_form($user_name, $user_email, $errors); ?> 257 257 … … 289 289 } 290 290 291 wpmu_signup_user($user_name, $user_email, apply_filters( "add_signup_meta", array() ) );291 wpmu_signup_user($user_name, $user_email, apply_filters( 'add_signup_meta', array() ) ); 292 292 293 293 confirm_user_signup($user_name, $user_email); … … 324 324 <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" /> 325 325 <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" /> 326 <?php do_action( "signup_hidden_fields"); ?>326 <?php do_action( 'signup_hidden_fields' ); ?> 327 327 <?php show_blog_form($blogname, $blog_title, $errors); ?> 328 328 <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p> … … 351 351 $public = (int) $_POST['blog_public']; 352 352 $meta = array ('lang_id' => 1, 'public' => $public); 353 $meta = apply_filters( "add_signup_meta", $meta );353 $meta = apply_filters( 'add_signup_meta', $meta ); 354 354 355 355 wpmu_signup_blog($domain, $path, $blog_title, $user_name, $user_email, $meta); … … 397 397 398 398 $current_user = wp_get_current_user(); 399 if ( $active_signup == "none") {399 if ( $active_signup == 'none' ) { 400 400 _e( 'Registration has been disabled.' ); 401 401 } elseif ( $active_signup == 'blog' && !is_user_logged_in() ) { … … 427 427 default : 428 428 $user_email = isset( $_POST[ 'user_email' ] ) ? $_POST[ 'user_email' ] : ''; 429 do_action( "preprocess_signup_form"); // populate the form from invites, elsewhere?429 do_action( 'preprocess_signup_form' ); // populate the form from invites, elsewhere? 430 430 if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) ) 431 431 signup_another_blog($newblogname);
Note: See TracChangeset
for help on using the changeset viewer.