diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php
index 9638805885..cfdc3dded3 100644
--- a/wp-admin/includes/export.php
+++ b/wp-admin/includes/export.php
@@ -49,7 +49,7 @@ function export_wp( $args = array() ) {
} else {
$post_types = get_post_types( array( 'can_export' => true ) );
$esses = array_fill( 0, count($post_types), '%s' );
- $where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (". implode(',',$esses) .")", $post_types );
+ $where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (" . implode( ',', $esses ) . ')', $post_types );
}
if ( $args['status'] && ( 'post' == $args['content'] || 'page' == $args['content'] ) )
@@ -123,7 +123,7 @@ function export_wp( $args = array() ) {
$str = utf8_encode( $str );
// $str = ent2ncr(esc_html($str));
- $str = "";
+ $str = "';
return $str;
}
@@ -350,7 +350,7 @@ function export_wp( $args = array() ) {
// fetch 20 posts at a time rather than loading the entire table into memory
while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) {
- $where = "WHERE ID IN (" . join( ',', $next_posts ) . ")";
+ $where = 'WHERE ID IN (' . join( ',', $next_posts ) . ')';
$posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" );
// Begin Loop
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 267dfe8be9..3c0c344340 100644
--- a/wp-includes/general-template.php
+++ b/wp-includes/general-template.php
@@ -28,7 +28,7 @@ function get_header( $name = null ) {
if ( isset($name) )
$templates[] = "header-{$name}.php";
- $templates[] = "header.php";
+ $templates[] = 'header.php';
// Backward compat code will be removed in a future release
if ('' == locate_template($templates, true))
@@ -57,7 +57,7 @@ function get_footer( $name = null ) {
if ( isset($name) )
$templates[] = "footer-{$name}.php";
- $templates[] = "footer.php";
+ $templates[] = 'footer.php';
// Backward compat code will be removed in a future release
if ('' == locate_template($templates, true))
@@ -86,7 +86,7 @@ function get_sidebar( $name = null ) {
if ( isset($name) )
$templates[] = "sidebar-{$name}.php";
- $templates[] = "sidebar.php";
+ $templates[] = 'sidebar.php';
// Backward compat code will be removed in a future release
if ('' == locate_template($templates, true))
@@ -569,7 +569,7 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
$my_year = substr($m, 0, 4);
$my_month = $wp_locale->get_month(substr($m, 4, 2));
$my_day = intval(substr($m, 6, 2));
- $title = $my_year . ($my_month ? $t_sep . $my_month : "") . ($my_day ? $t_sep . $my_day : "");
+ $title = $my_year . ( $my_month ? $t_sep . $my_month : '' ) . ( $my_day ? $t_sep . $my_day : '' );
}
// If there's a year
@@ -843,7 +843,7 @@ function get_archives_link($url, $text, $format = 'html', $before = '', $after =
else // custom
$link_html = "\t$before$text$after\n";
- $link_html = apply_filters( "get_archives_link", $link_html );
+ $link_html = apply_filters( 'get_archives_link', $link_html );
return $link_html;
}
@@ -915,8 +915,8 @@ function wp_get_archives($args = '') {
}
//filters
- $where = apply_filters('getarchives_where', "WHERE post_type = 'post' AND post_status = 'publish'", $r );
- $join = apply_filters('getarchives_join', "", $r);
+ $where = apply_filters( 'getarchives_where', "WHERE post_type = 'post' AND post_status = 'publish'", $r );
+ $join = apply_filters( 'getarchives_join', '', $r );
$output = '';
@@ -1016,7 +1016,7 @@ function wp_get_archives($args = '') {
}
}
} elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) {
- $orderby = ('alpha' == $type) ? "post_title ASC " : "post_date DESC ";
+ $orderby = ('alpha' == $type) ? 'post_title ASC ' : 'post_date DESC ';
$query = "SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit";
$key = md5($query);
$cache = wp_cache_get( 'wp_get_archives' , 'general');
@@ -1248,7 +1248,7 @@ function get_calendar($initial = true, $echo = true) {
$calendar_output .= '
';
if ( in_array($day, $daywithpost) ) // any posts today?
- $calendar_output .= '$day";
+ $calendar_output .= '$day";
else
$calendar_output .= $day;
$calendar_output .= ' | ';
@@ -1997,7 +1997,7 @@ function paginate_links( $args = '' ) {
if ( $add_args )
$link = add_query_arg( $add_args, $link );
$link .= $add_fragment;
- $page_links[] = "$prev_text";
+ $page_links[] = '' . $prev_text . '';
endif;
for ( $n = 1; $n <= $total; $n++ ) :
$n_display = number_format_i18n($n);
@@ -2014,7 +2014,7 @@ function paginate_links( $args = '' ) {
$page_links[] = "$n_display";
$dots = true;
elseif ( $dots && !$show_all ) :
- $page_links[] = "...";
+ $page_links[] = '...';
$dots = false;
endif;
endif;
@@ -2025,7 +2025,7 @@ function paginate_links( $args = '' ) {
if ( $add_args )
$link = add_query_arg( $add_args, $link );
$link .= $add_fragment;
- $page_links[] = "$next_text";
+ $page_links[] = '' . $next_text . '';
endif;
switch ( $type ) :
case 'array' :
diff --git a/wp-includes/theme.php b/wp-includes/theme.php
index ea7d79d6f2..c7895e0c14 100644
--- a/wp-includes/theme.php
+++ b/wp-includes/theme.php
@@ -79,7 +79,7 @@ function get_stylesheet_directory_uri() {
*/
function get_stylesheet_uri() {
$stylesheet_dir_uri = get_stylesheet_directory_uri();
- $stylesheet_uri = $stylesheet_dir_uri . "/style.css";
+ $stylesheet_uri = $stylesheet_dir_uri . '/style.css';
return apply_filters('stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri);
}
@@ -827,7 +827,7 @@ function get_category_template() {
$templates[] = "category-{$category->slug}.php";
$templates[] = "category-{$category->term_id}.php";
- $templates[] = "category.php";
+ $templates[] = 'category.php';
return get_query_template( 'category', $templates );
}
@@ -851,7 +851,7 @@ function get_tag_template() {
$templates[] = "tag-{$tag->slug}.php";
$templates[] = "tag-{$tag->term_id}.php";
- $templates[] = "tag.php";
+ $templates[] = 'tag.php';
return get_query_template( 'tag', $templates );
}
@@ -881,7 +881,7 @@ function get_taxonomy_template() {
$templates[] = "taxonomy-$taxonomy-{$term->slug}.php";
$templates[] = "taxonomy-$taxonomy.php";
- $templates[] = "taxonomy.php";
+ $templates[] = 'taxonomy.php';
return get_query_template( 'taxonomy', $templates );
}
@@ -963,7 +963,7 @@ function get_page_template() {
$templates[] = "page-$pagename.php";
if ( $id )
$templates[] = "page-$id.php";
- $templates[] = "page.php";
+ $templates[] = 'page.php';
return get_query_template( 'page', $templates );
}
diff --git a/wp-signup.php b/wp-signup.php
index c2ab566b8a..cce20833e8 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -13,7 +13,7 @@ if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) &&
}
function do_signup_header() {
- do_action("signup_header");
+ do_action( 'signup_header' );
}
add_action( 'wp_head', 'do_signup_header' );
@@ -188,7 +188,7 @@ function signup_another_blog($blogname = '', $blog_title = '', $errors = '') {
@@ -252,7 +252,7 @@ function signup_user($user_name = '', $user_email = '', $errors = '') {
site_name ) ?>
@@ -350,7 +350,7 @@ function validate_blog_signup() {
$public = (int) $_POST['blog_public'];
$meta = array ('lang_id' => 1, 'public' => $public);
- $meta = apply_filters( "add_signup_meta", $meta );
+ $meta = apply_filters( 'add_signup_meta', $meta );
wpmu_signup_blog($domain, $path, $blog_title, $user_name, $user_email, $meta);
confirm_blog_signup($domain, $path, $blog_title, $user_name, $user_email, $meta);
@@ -396,7 +396,7 @@ if ( is_super_admin() )
$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;
$current_user = wp_get_current_user();
-if ( $active_signup == "none" ) {
+if ( $active_signup == 'none' ) {
_e( 'Registration has been disabled.' );
} elseif ( $active_signup == 'blog' && !is_user_logged_in() ) {
if ( is_ssl() )
@@ -426,7 +426,7 @@ if ( $active_signup == "none" ) {
case 'default':
default :
$user_email = isset( $_POST[ 'user_email' ] ) ? $_POST[ 'user_email' ] : '';
- do_action( "preprocess_signup_form" ); // populate the form from invites, elsewhere?
+ do_action( 'preprocess_signup_form' ); // populate the form from invites, elsewhere?
if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) )
signup_another_blog($newblogname);
elseif ( is_user_logged_in() == false && ( $active_signup == 'all' || $active_signup == 'user' ) )