@@ -117,7 +117,7 @@ addLoadEvent(focusit);
-id ); // TODO: ROLE SYSTEM
if ( $authors && count( $authors ) > 1 ) :
?>
@@ -163,19 +163,19 @@ if ( $authors && count( $authors ) > 1 ) :
|
- comment_ID ) . "'; return true; } return false;\""; ?> />
+ | comment_ID ) . "'; return true; } return false;\""; ?> />
diff --git a/wp-admin/edit-form.php b/wp-admin/edit-form.php
index 3945e3c3c2..696fd53611 100644
--- a/wp-admin/edit-form.php
+++ b/wp-admin/edit-form.php
@@ -20,12 +20,12 @@ addLoadEvent(focusit);
diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php
index c7eaa12e7f..855f730ba4 100644
--- a/wp-admin/edit-pages.php
+++ b/wp-admin/edit-pages.php
@@ -71,7 +71,7 @@ $all = !( $h2_search || $post_status_q );
if ($posts) {
?>
-
+
|
diff --git a/wp-admin/edit-post-rows.php b/wp-admin/edit-post-rows.php
index efbebe4da4..453a66ac3f 100644
--- a/wp-admin/edit-post-rows.php
+++ b/wp-admin/edit-post-rows.php
@@ -102,14 +102,14 @@ foreach($posts_columns as $column_name=>$column_display_name) {
}
}
?>
-
+
-
- |
-
+
+ |
+
diff --git a/wp-admin/edit.php b/wp-admin/edit.php
index 1c4ea88535..df11c7b7e5 100644
--- a/wp-admin/edit.php
+++ b/wp-admin/edit.php
@@ -83,7 +83,7 @@ if ( is_single() ) {
$h2_author = ' ' . __('by other authors');
} else {
$author_user = get_userdata( get_query_var( 'author' ) );
- $h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name ));
+ $h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name ));
}
}
$h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( get_search_query() ) ) : '';
@@ -94,11 +94,11 @@ if ( is_single() ) {
?>
diff --git a/wp-admin/import/blogger.php b/wp-admin/import/blogger.php
index 98d1d80f7a..9dc05c9bca 100644
--- a/wp-admin/import/blogger.php
+++ b/wp-admin/import/blogger.php
@@ -919,7 +919,7 @@ class AtomParser {
array_push($this->in_content, "<". $this->ns_to_prefix($name) ."{$xmlns_str}{$attrs_str}");
} else if(in_array($tag, $this->ATOM_CONTENT_ELEMENTS) || in_array($tag, $this->ATOM_SIMPLE_ELEMENTS)) {
$this->in_content = array();
- $this->is_xhtml = $attrs['type'] == 'xhtml';
+ $this->is_xhtml = $attrs['type'] == 'xhtml';
array_push($this->in_content, array($tag,$this->depth));
} else if($tag == 'link') {
array_push($this->entry->links, $attrs);
@@ -935,7 +935,7 @@ class AtomParser {
$tag = array_pop(split(":", $name));
if(!empty($this->in_content)) {
- if($this->in_content[0][0] == $tag &&
+ if($this->in_content[0][0] == $tag &&
$this->in_content[0][1] == $this->depth) {
array_shift($this->in_content);
if($this->is_xhtml) {
@@ -998,14 +998,14 @@ class AtomParser {
}
}
}
- }
+ }
return $name;
}
function xml_escape($string)
{
- return str_replace(array('&','"',"'",'<','>'),
- array('&','"',''','<','>'),
+ return str_replace(array('&','"',"'",'<','>'),
+ array('&','"',''','<','>'),
$string );
}
}
diff --git a/wp-admin/import/dotclear.php b/wp-admin/import/dotclear.php
index d63ffdb095..f17df9d8ed 100644
--- a/wp-admin/import/dotclear.php
+++ b/wp-admin/import/dotclear.php
@@ -109,19 +109,19 @@ function textconv ($s) {
**/
class Dotclear_Import {
- function header()
+ function header()
{
echo '';
echo ' '.__('Import DotClear').'';
echo ' '.__('Steps may take a few minutes depending on the size of your database. Please be patient.').' ';
}
- function footer()
+ function footer()
{
echo ' ';
}
- function greet()
+ function greet()
{
echo ''.__('Howdy! This importer allows you to extract posts from a DotClear database into your blog. Mileage may vary.').' ';
echo ' '.__('Your DotClear Configuration settings are as follows:').' ';
diff --git a/wp-admin/import/mt.php b/wp-admin/import/mt.php
index 012a1b2e52..23ab8fc1cc 100644
--- a/wp-admin/import/mt.php
+++ b/wp-admin/import/mt.php
@@ -357,9 +357,9 @@ class MT_Import {
$post->post_date = $date;
$post->post_date_gmt = $date_gmt;
} else if ( 'comment' == $context ) {
- $comment->comment_date = $date;
+ $comment->comment_date = $date;
} else if ( 'ping' == $context ) {
- $ping->comment_date = $date;
+ $ping->comment_date = $date;
}
} else if ( 0 === strpos($line, "EMAIL:") ) {
$email = trim( substr($line, strlen("EMAIL:")) );
diff --git a/wp-admin/import/stp.php b/wp-admin/import/stp.php
index 4a86a7e4a9..f3b6d30e80 100644
--- a/wp-admin/import/stp.php
+++ b/wp-admin/import/stp.php
@@ -19,7 +19,7 @@ class STP_Import {
echo ' '.__('To accommodate larger databases for those tag-crazy authors out there, we have made this into an easy 4-step program to help you kick that nasty Simple Tagging habit. Just keep clicking along and we will let you know when you are in the clear!').' ';
echo ' '.__('Don’t be stupid - backup your database before proceeding!').' ';
echo ' ';
echo ' ';
@@ -88,7 +88,7 @@ class STP_Import {
}
echo '';
echo '';
@@ -107,7 +107,7 @@ class STP_Import {
echo '' . sprintf( __('Done! %s tags where added!'), $tags_added ) . '
';
echo '';
echo '';
@@ -139,7 +139,7 @@ class STP_Import {
$tags_added = 0;
// loop through each post and add its tags to the db
- foreach ( $posts as $this_post ) {
+ foreach ( $posts as $this_post ) {
$the_post = (int) $this_post->post_id;
$the_tag = $wpdb->escape($this_post->tag_name);
diff --git a/wp-admin/import/textpattern.php b/wp-admin/import/textpattern.php
index 46e3420b14..ee47441107 100644
--- a/wp-admin/import/textpattern.php
+++ b/wp-admin/import/textpattern.php
@@ -26,14 +26,14 @@ if(!function_exists('link_exists'))
**/
class Textpattern_Import {
- function header()
+ function header()
{
echo '';
echo ' '.__('Import Textpattern').'';
echo ' '.__('Steps may take a few minutes depending on the size of your database. Please be patient.').' ';
}
- function footer()
+ function footer()
{
echo ' ';
}
diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php
index b9631aebe3..5f8ce81950 100644
--- a/wp-admin/import/wordpress.php
+++ b/wp-admin/import/wordpress.php
@@ -104,12 +104,12 @@ class WP_Import {
if ( false !== strpos($importline, '- ') ) {
$this->posts[$num] = '';
$doing_entry = true;
- continue;
+ continue;
}
if ( false !== strpos($importline, '
') ) {
$num++;
$doing_entry = false;
- continue;
+ continue;
}
if ( $doing_entry ) {
$this->posts[$num] .= $importline . "\n";
@@ -335,7 +335,7 @@ class WP_Import {
$post_cats[] = $cat_ID;
}
wp_set_post_categories($post_id, $post_cats);
- }
+ }
}
// Now for comments
diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php
index bd7cb4d498..e5911bda79 100644
--- a/wp-admin/includes/plugin.php
+++ b/wp-admin/includes/plugin.php
@@ -261,8 +261,8 @@ function get_admin_page_title() {
} else {
foreach (array_keys( $submenu ) as $parent) {
foreach ( $submenu[$parent] as $submenu_array ) {
- if ( isset( $plugin_page ) &&
- ($plugin_page == $submenu_array[2] ) &&
+ if ( isset( $plugin_page ) &&
+ ($plugin_page == $submenu_array[2] ) &&
(($parent == $pagenow ) || ($parent == $plugin_page ) || ($plugin_page == $hook ) || (($pagenow == 'admin.php' ) && ($parent1 != $submenu_array[2] ) ) )
) {
$title = $submenu_array[3];
diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php
index ab70d0c5ba..7f595178dc 100644
--- a/wp-admin/includes/post.php
+++ b/wp-admin/includes/post.php
@@ -334,7 +334,7 @@ function add_meta( $post_ID ) {
$metavalue = $wpdb->escape( $metavalue );
if ( ('0' === $metavalue || !empty ( $metavalue ) ) && ((('#NONE#' != $metakeyselect) && !empty ( $metakeyselect) ) || !empty ( $metakeyinput) ) ) {
- // We have a key/value pair. If both the select and the
+ // We have a key/value pair. If both the select and the
// input for the key have data, the input takes precedence:
if ('#NONE#' != $metakeyselect)
@@ -347,8 +347,8 @@ function add_meta( $post_ID ) {
return false;
$result = $wpdb->query( "
- INSERT INTO $wpdb->postmeta
- (post_id,meta_key,meta_value )
+ INSERT INTO $wpdb->postmeta
+ (post_id,meta_key,meta_value )
VALUES ('$post_ID','$metakey','$metavalue' )
" );
return $wpdb->insert_id;
diff --git a/wp-admin/includes/taxonomy.php b/wp-admin/includes/taxonomy.php
index f74e5e3269..b382262c5c 100644
--- a/wp-admin/includes/taxonomy.php
+++ b/wp-admin/includes/taxonomy.php
@@ -151,7 +151,7 @@ function wp_create_tag($tag_name) {
if ( $id = tag_exists($tag_name) )
return $id;
- return wp_insert_term($tag_name, 'post_tag');
+ return wp_insert_term($tag_name, 'post_tag');
}
?>
\ No newline at end of file
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index ebf4094d24..5f4efb168b 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -180,17 +180,17 @@ function page_rows( $parent = 0, $level = 0, $pages = 0, $hierarchy = true ) {
$id = (int) $post->ID;
$class = ('alternate' == $class ) ? '' : 'alternate';
?>
-
- ID; ?> |
+
+ ID; ?> |
- |
+
|
- post_modified ) _e('Unpublished'); else echo mysql2date( __('Y-m-d g:i a'), $post->post_modified ); ?> |
+ post_modified ) _e('Unpublished'); else echo mysql2date( __('Y-m-d g:i a'), $post->post_modified ); ?> |
|
- " . __( 'Edit' ) . ""; } ?> |
- " . __( 'Delete' ) . ""; } ?> |
-
+ " . __( 'Edit' ) . ""; } ?> |
+ " . __( 'Delete' ) . ""; } ?> |
+
last_checked ) &&
- 43200 > ( time() - $current->last_checked ) &&
+ if (
+ isset( $current->last_checked ) &&
+ 43200 > ( time() - $current->last_checked ) &&
!$plugin_changed
)
return false;
diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php
index 89ae58b001..fc9f6bd33d 100644
--- a/wp-admin/includes/upgrade.php
+++ b/wp-admin/includes/upgrade.php
@@ -624,7 +624,7 @@ function upgrade_230() {
if ( empty($term_id) ) {
$wpdb->query("INSERT INTO $wpdb->terms (name, slug, term_group) VALUES ('$name', '$slug', '$term_group')");
- $term_id = (int) $wpdb->insert_id;
+ $term_id = (int) $wpdb->insert_id;
}
$link_cat_id_map[$cat_id] = $term_id;
diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php
index 2949c8081c..ccf1fb0941 100644
--- a/wp-admin/includes/user.php
+++ b/wp-admin/includes/user.php
@@ -39,7 +39,7 @@ function edit_user( $user_id = 0 ) {
if ( isset( $_POST['pass2'] ))
$pass2 = $_POST['pass2'];
- if ( isset( $_POST['role'] ) && current_user_can( 'edit_users' ) ) {
+ if ( isset( $_POST['role'] ) && current_user_can( 'edit_users' ) ) {
if( $user_id != $current_user->id || $wp_roles->role_objects[$_POST['role']]->has_cap( 'edit_users' ))
$user->role = $_POST['role'];
}
diff --git a/wp-admin/index-extra.php b/wp-admin/index-extra.php
index 3f59a5961b..31f2a5816c 100644
--- a/wp-admin/index-extra.php
+++ b/wp-admin/index-extra.php
@@ -8,7 +8,7 @@ switch ( $_GET['jax'] ) {
case 'incominglinks' :
-$rss_feed = apply_filters( 'dashboard_incoming_links_feed', 'http://blogsearch.google.com/blogsearch_feeds?hl=en&scoring=d&ie=utf-8&num=10&output=rss&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) );
+$rss_feed = apply_filters( 'dashboard_incoming_links_feed', 'http://blogsearch.google.com/blogsearch_feeds?hl=en&scoring=d&ie=utf-8&num=10&output=rss&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) );
$more_link = apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) );
$rss = @fetch_rss( $rss_feed );
diff --git a/wp-admin/index.php b/wp-admin/index.php
index 5c298607a5..2447e2fe60 100644
--- a/wp-admin/index.php
+++ b/wp-admin/index.php
@@ -1,5 +1,5 @@
@@ -16,7 +16,7 @@ add_action( 'admin_head', 'index_js' );
wp_enqueue_script( 'jquery' );
-$title = __('Dashboard');
+$title = __('Dashboard');
$parent_file = 'index.php';
require_once('admin-header.php');
@@ -39,7 +39,7 @@ $numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE commen
if ( $comments || $numcomments ) :
?>
- »' ), 'edit-comments.php' ); ?>
+ »' ), 'edit-comments.php' ); ?>
diff --git a/wp-admin/link-category.php b/wp-admin/link-category.php
index 51723f7cb1..42058928c3 100644
--- a/wp-admin/link-category.php
+++ b/wp-admin/link-category.php
@@ -60,9 +60,9 @@ case 'editedcat':
wp_die(__('Cheatin’ uh?'));
if ( wp_update_term($cat_ID, 'link_category', $_POST) )
- wp_redirect('edit-link-categories.php?message=3');
+ wp_redirect('edit-link-categories.php?message=3');
else
- wp_redirect('edit-link-categories.php?message=5');
+ wp_redirect('edit-link-categories.php?message=5');
exit;
break;
diff --git a/wp-admin/link-import.php b/wp-admin/link-import.php
index 138d0f4185..86d8b2657f 100644
--- a/wp-admin/link-import.php
+++ b/wp-admin/link-import.php
@@ -123,7 +123,7 @@ else
} // end else
if ( ! $blogrolling )
- apply_filters( 'wp_delete_file', $opml_url);
+ apply_filters( 'wp_delete_file', $opml_url);
@unlink($opml_url);
?>
diff --git a/wp-admin/menu.php b/wp-admin/menu.php
index 4ae1e18775..7aec2f42be 100644
--- a/wp-admin/menu.php
+++ b/wp-admin/menu.php
@@ -96,7 +96,7 @@ foreach ($submenu as $parent => $sub) {
// Menus for which the original parent is not acessible due to lack of privs will have the next
// submenu in line be assigned as the new menu parent.
foreach ( $menu as $id => $data ) {
- if ( empty($submenu[$data[2]]) )
+ if ( empty($submenu[$data[2]]) )
continue;
$subs = $submenu[$data[2]];
$first_sub = array_shift($subs);
diff --git a/wp-admin/moderation.php b/wp-admin/moderation.php
index 470bc77a7c..fc46917c25 100644
--- a/wp-admin/moderation.php
+++ b/wp-admin/moderation.php
@@ -124,12 +124,12 @@ if ( isset( $_GET['paged'] ) ) {
$start = ( $page * $per ) - $per;
$stop = $start + $per;
-$page_links = paginate_links( array(
- 'base' => add_query_arg( 'paged', '%#%' ),
- 'format' => '',
- 'total' => ceil( $total / $per ),
- 'current' => $page,
- 'prev_text' => '«',
+$page_links = paginate_links( array(
+ 'base' => add_query_arg( 'paged', '%#%' ),
+ 'format' => '',
+ 'total' => ceil( $total / $per ),
+ 'current' => $page,
+ 'prev_text' => '«',
'next_text' => '»'
) );
@@ -160,7 +160,7 @@ $comments = array_slice( $comments, $start, $stop );
?>
|