Completed
Push — master ( d99bf9...491baf )
by Stephen
13:47
created
src/wp-content/themes/twentyeleven/content-page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
 
16 16
 	<div class="entry-content">
17 17
 		<?php the_content(); ?>
18
-		<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
18
+		<?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?>
19 19
 	</div><!-- .entry-content -->
20 20
 	<footer class="entry-meta">
21
-		<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
21
+		<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
22 22
 	</footer><!-- .entry-meta -->
23 23
 </article><!-- #post-<?php the_ID(); ?> -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/searchform.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
  * @since Twenty Eleven 1.0
8 8
  */
9 9
 ?>
10
-	<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
11
-		<label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleven' ); ?></label>
12
-		<input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
13
-		<input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
10
+	<form method="get" id="searchform" action="<?php echo esc_url(home_url('/')); ?>">
11
+		<label for="s" class="assistive-text"><?php _e('Search', 'twentyeleven'); ?></label>
12
+		<input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e('Search', 'twentyeleven'); ?>" />
13
+		<input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e('Search', 'twentyeleven'); ?>" />
14 14
 	</form>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/content-intro.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@
 block discarded – undo
8 8
  */
9 9
 ?>
10 10
 
11
-<article id="post-<?php the_ID(); ?>" <?php post_class( 'intro' ); ?>>
11
+<article id="post-<?php the_ID(); ?>" <?php post_class('intro'); ?>>
12 12
 	<header class="entry-header">
13 13
 		<h2 class="entry-title"><?php the_title(); ?></h2>
14 14
 	</header><!-- .entry-header -->
15 15
 
16 16
 	<div class="entry-content">
17 17
 		<?php the_content(); ?>
18
-		<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
19
-		<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
18
+		<?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?>
19
+		<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
20 20
 	</div><!-- .entry-content -->
21 21
 </article><!-- #post-<?php the_ID(); ?> -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/404.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,30 +14,30 @@
 block discarded – undo
14 14
 
15 15
 			<article id="post-0" class="post error404 not-found">
16 16
 				<header class="entry-header">
17
-					<h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'twentyeleven' ); ?></h1>
17
+					<h1 class="entry-title"><?php _e('This is somewhat embarrassing, isn&rsquo;t it?', 'twentyeleven'); ?></h1>
18 18
 				</header>
19 19
 
20 20
 				<div class="entry-content">
21
-					<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching, or one of the links below, can help.', 'twentyeleven' ); ?></p>
21
+					<p><?php _e('It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching, or one of the links below, can help.', 'twentyeleven'); ?></p>
22 22
 
23 23
 					<?php get_search_form(); ?>
24 24
 
25
-					<?php the_widget( 'WP_Widget_Recent_Posts', array( 'number' => 10 ), array( 'widget_id' => '404' ) ); ?>
25
+					<?php the_widget('WP_Widget_Recent_Posts', array('number' => 10), array('widget_id' => '404')); ?>
26 26
 
27 27
 					<div class="widget">
28
-						<h2 class="widgettitle"><?php _e( 'Most Used Categories', 'twentyeleven' ); ?></h2>
28
+						<h2 class="widgettitle"><?php _e('Most Used Categories', 'twentyeleven'); ?></h2>
29 29
 						<ul>
30
-						<?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?>
30
+						<?php wp_list_categories(array('orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10)); ?>
31 31
 						</ul>
32 32
 					</div>
33 33
 
34 34
 					<?php
35 35
 					/* translators: %1$s: smilie */
36
-					$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'twentyeleven' ), convert_smilies( ':)' ) ) . '</p>';
37
-					the_widget( 'WP_Widget_Archives', array( 'count' => 0, 'dropdown' => 1 ), array( 'after_title' => '</h2>' . $archive_content ) );
36
+					$archive_content = '<p>'.sprintf(__('Try looking in the monthly archives. %1$s', 'twentyeleven'), convert_smilies(':)')).'</p>';
37
+					the_widget('WP_Widget_Archives', array('count' => 0, 'dropdown' => 1), array('after_title' => '</h2>'.$archive_content));
38 38
 					?>
39 39
 
40
-					<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
40
+					<?php the_widget('WP_Widget_Tag_Cloud'); ?>
41 41
 
42 42
 				</div><!-- .entry-content -->
43 43
 			</article><!-- #post-0 -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/content.php 2 patches
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -10,75 +10,75 @@
 block discarded – undo
10 10
 
11 11
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12 12
 		<header class="entry-header">
13
-			<?php if ( is_sticky() ) : ?>
13
+			<?php if (is_sticky()) : ?>
14 14
 				<hgroup>
15 15
 					<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
16
-					<h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
16
+					<h3 class="entry-format"><?php _e('Featured', 'twentyeleven'); ?></h3>
17 17
 				</hgroup>
18 18
 			<?php else : ?>
19 19
 			<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
20 20
 			<?php endif; ?>
21 21
 
22
-			<?php if ( 'post' == get_post_type() ) : ?>
22
+			<?php if ('post' == get_post_type()) : ?>
23 23
 			<div class="entry-meta">
24 24
 				<?php twentyeleven_posted_on(); ?>
25 25
 			</div><!-- .entry-meta -->
26 26
 			<?php endif; ?>
27 27
 
28
-			<?php if ( comments_open() && ! post_password_required() ) : ?>
28
+			<?php if (comments_open() && ! post_password_required()) : ?>
29 29
 			<div class="comments-link">
30
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
30
+				<?php comments_popup_link('<span class="leave-reply">'.__('Reply', 'twentyeleven').'</span>', _x('1', 'comments number', 'twentyeleven'), _x('%', 'comments number', 'twentyeleven')); ?>
31 31
 			</div>
32 32
 			<?php endif; ?>
33 33
 		</header><!-- .entry-header -->
34 34
 
35
-		<?php if ( is_search() ) : // Only display Excerpts for Search ?>
35
+		<?php if (is_search()) : // Only display Excerpts for Search ?>
36 36
 		<div class="entry-summary">
37 37
 			<?php the_excerpt(); ?>
38 38
 		</div><!-- .entry-summary -->
39 39
 		<?php else : ?>
40 40
 		<div class="entry-content">
41
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
42
-			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
41
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven')); ?>
42
+			<?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?>
43 43
 		</div><!-- .entry-content -->
44 44
 		<?php endif; ?>
45 45
 
46 46
 		<footer class="entry-meta">
47 47
 			<?php $show_sep = false; ?>
48
-			<?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported ?>
48
+			<?php if (is_object_in_taxonomy(get_post_type(), 'category')) : // Hide category text when not supported ?>
49 49
 			<?php
50 50
 				/* translators: used between list items, there is a space after the comma */
51
-				$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
52
-				if ( $categories_list ):
51
+				$categories_list = get_the_category_list(__(', ', 'twentyeleven'));
52
+				if ($categories_list):
53 53
 			?>
54 54
 			<span class="cat-links">
55
-				<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
55
+				<?php printf(__('<span class="%1$s">Posted in</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list);
56 56
 				$show_sep = true; ?>
57 57
 			</span>
58 58
 			<?php endif; // End if categories ?>
59 59
 			<?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?>
60
-			<?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported ?>
60
+			<?php if (is_object_in_taxonomy(get_post_type(), 'post_tag')) : // Hide tag text when not supported ?>
61 61
 			<?php
62 62
 				/* translators: used between list items, there is a space after the comma */
63
-				$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
64
-				if ( $tags_list ):
65
-				if ( $show_sep ) : ?>
63
+				$tags_list = get_the_tag_list('', __(', ', 'twentyeleven'));
64
+				if ($tags_list):
65
+				if ($show_sep) : ?>
66 66
 			<span class="sep"> | </span>
67 67
 				<?php endif; // End if $show_sep ?>
68 68
 			<span class="tag-links">
69
-				<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
69
+				<?php printf(__('<span class="%1$s">Tagged</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list);
70 70
 				$show_sep = true; ?>
71 71
 			</span>
72 72
 			<?php endif; // End if $tags_list ?>
73 73
 			<?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?>
74 74
 
75
-			<?php if ( comments_open() ) : ?>
76
-			<?php if ( $show_sep ) : ?>
75
+			<?php if (comments_open()) : ?>
76
+			<?php if ($show_sep) : ?>
77 77
 			<span class="sep"> | </span>
78 78
 			<?php endif; // End if $show_sep ?>
79
-			<span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
79
+			<span class="comments-link"><?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentyeleven').'</span>', __('<b>1</b> Reply', 'twentyeleven'), __('<b>%</b> Replies', 'twentyeleven')); ?></span>
80 80
 			<?php endif; // End if comments_open() ?>
81 81
 
82
-			<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
82
+			<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
83 83
 		</footer><!-- .entry-meta -->
84 84
 	</article><!-- #post-<?php the_ID(); ?> -->
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,8 +15,11 @@  discard block
 block discarded – undo
15 15
 					<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
16 16
 					<h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
17 17
 				</hgroup>
18
-			<?php else : ?>
19
-			<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
18
+			<?php else {
19
+	: ?>
20
+			<h1 class="entry-title"><a href="<?php the_permalink();
21
+}
22
+?>" rel="bookmark"><?php the_title(); ?></a></h1>
20 23
 			<?php endif; ?>
21 24
 
22 25
 			<?php if ( 'post' == get_post_type() ) : ?>
@@ -36,9 +39,12 @@  discard block
 block discarded – undo
36 39
 		<div class="entry-summary">
37 40
 			<?php the_excerpt(); ?>
38 41
 		</div><!-- .entry-summary -->
39
-		<?php else : ?>
42
+		<?php else {
43
+	: ?>
40 44
 		<div class="entry-content">
41
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
45
+			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) );
46
+}
47
+?>
42 48
 			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
43 49
 		</div><!-- .entry-content -->
44 50
 		<?php endif; ?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/comments.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
  */
14 14
 ?>
15 15
 	<div id="comments">
16
-	<?php if ( post_password_required() ) : ?>
17
-		<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?></p>
16
+	<?php if (post_password_required()) : ?>
17
+		<p class="nopassword"><?php _e('This post is password protected. Enter the password to view any comments.', 'twentyeleven'); ?></p>
18 18
 	</div><!-- #comments -->
19 19
 	<?php
20 20
 			/*
@@ -28,19 +28,19 @@  discard block
 block discarded – undo
28 28
 
29 29
 	<?php // You can start editing here -- including this comment! ?>
30 30
 
31
-	<?php if ( have_comments() ) : ?>
31
+	<?php if (have_comments()) : ?>
32 32
 		<h2 id="comments-title">
33 33
 			<?php
34
-				printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyeleven' ),
35
-					number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
34
+				printf(_n('One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyeleven'),
35
+					number_format_i18n(get_comments_number()), '<span>'.get_the_title().'</span>');
36 36
 			?>
37 37
 		</h2>
38 38
 
39
-		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
39
+		<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // are there comments to navigate through ?>
40 40
 		<nav id="comment-nav-above">
41
-			<h1 class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></h1>
42
-			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyeleven' ) ); ?></div>
43
-			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyeleven' ) ); ?></div>
41
+			<h1 class="assistive-text"><?php _e('Comment navigation', 'twentyeleven'); ?></h1>
42
+			<div class="nav-previous"><?php previous_comments_link(__('&larr; Older Comments', 'twentyeleven')); ?></div>
43
+			<div class="nav-next"><?php next_comments_link(__('Newer Comments &rarr;', 'twentyeleven')); ?></div>
44 44
 		</nav>
45 45
 		<?php endif; // check for comment navigation ?>
46 46
 
@@ -53,15 +53,15 @@  discard block
 block discarded – undo
53 53
 				 * define twentyeleven_comment() and that will be used instead.
54 54
 				 * See twentyeleven_comment() in twentyeleven/functions.php for more.
55 55
 				 */
56
-				wp_list_comments( array( 'callback' => 'twentyeleven_comment' ) );
56
+				wp_list_comments(array('callback' => 'twentyeleven_comment'));
57 57
 			?>
58 58
 		</ol>
59 59
 
60
-		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
60
+		<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // are there comments to navigate through ?>
61 61
 		<nav id="comment-nav-below">
62
-			<h1 class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></h1>
63
-			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyeleven' ) ); ?></div>
64
-			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyeleven' ) ); ?></div>
62
+			<h1 class="assistive-text"><?php _e('Comment navigation', 'twentyeleven'); ?></h1>
63
+			<div class="nav-previous"><?php previous_comments_link(__('&larr; Older Comments', 'twentyeleven')); ?></div>
64
+			<div class="nav-next"><?php next_comments_link(__('Newer Comments &rarr;', 'twentyeleven')); ?></div>
65 65
 		</nav>
66 66
 		<?php endif; // check for comment navigation ?>
67 67
 
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
 		 * If there are no comments and comments are closed, let's leave a little note, shall we?
71 71
 		 * But we only want the note on posts and pages that had comments in the first place.
72 72
 		 */
73
-		if ( ! comments_open() && get_comments_number() ) : ?>
74
-		<p class="nocomments"><?php _e( 'Comments are closed.' , 'twentyeleven' ); ?></p>
73
+		if ( ! comments_open() && get_comments_number()) : ?>
74
+		<p class="nocomments"><?php _e('Comments are closed.', 'twentyeleven'); ?></p>
75 75
 		<?php endif; ?>
76 76
 
77 77
 	<?php endif; // have_comments() ?>
Please login to merge, or discard this patch.
src/wp-content/plugins/hello.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
 Dolly'll never go away again";
45 45
 
46 46
 	// Here we split it into lines
47
-	$lyrics = explode( "\n", $lyrics );
47
+	$lyrics = explode("\n", $lyrics);
48 48
 
49 49
 	// And then randomly choose a line
50
-	return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] );
50
+	return wptexturize($lyrics[mt_rand(0, count($lyrics) - 1)]);
51 51
 }
52 52
 
53 53
 // This just echoes the chosen line, we'll position it later
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 }
58 58
 
59 59
 // Now we set that function up to execute when the admin_notices action is called
60
-add_action( 'admin_notices', 'hello_dolly' );
60
+add_action('admin_notices', 'hello_dolly');
61 61
 
62 62
 // We need some CSS to position the paragraph
63 63
 function dolly_css() {
@@ -77,6 +77,6 @@  discard block
 block discarded – undo
77 77
 	";
78 78
 }
79 79
 
80
-add_action( 'admin_head', 'dolly_css' );
80
+add_action('admin_head', 'dolly_css');
81 81
 
82 82
 ?>
Please login to merge, or discard this patch.
src/wp-links-opml.php 2 patches
Braces   +11 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,9 +18,10 @@  discard block
 block discarded – undo
18 18
 $link_cat = '';
19 19
 if ( !empty($_GET['link_cat']) ) {
20 20
 	$link_cat = $_GET['link_cat'];
21
-	if ( !in_array($link_cat, array('all', '0')) )
22
-		$link_cat = absint( (string)urldecode($link_cat) );
23
-}
21
+	if ( !in_array($link_cat, array('all', '0')) ) {
22
+			$link_cat = absint( (string)urldecode($link_cat) );
23
+	}
24
+	}
24 25
 
25 26
 echo '<?xml version="1.0"?'.">\n";
26 27
 ?>
@@ -39,10 +40,11 @@  discard block
 block discarded – undo
39 40
 	</head>
40 41
 	<body>
41 42
 <?php
42
-if ( empty($link_cat) )
43
+if ( empty($link_cat) ) {
43 44
 	$cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0));
44
-else
45
+} else {
45 46
 	$cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0, 'include' => $link_cat));
47
+}
46 48
 
47 49
 foreach ( (array)$cats as $cat ) :
48 50
 	/**
@@ -68,7 +70,10 @@  discard block
 block discarded – undo
68 70
 		 */
69 71
 		$title = apply_filters( 'link_title', $bookmark->link_name );
70 72
 ?>
71
-	<outline text="<?php echo esc_attr($title); ?>" type="link" xmlUrl="<?php echo esc_attr($bookmark->link_rss); ?>" htmlUrl="<?php echo esc_attr($bookmark->link_url); ?>" updated="<?php if ('0000-00-00 00:00:00' != $bookmark->link_updated) echo $bookmark->link_updated; ?>" />
73
+	<outline text="<?php echo esc_attr($title); ?>" type="link" xmlUrl="<?php echo esc_attr($bookmark->link_rss); ?>" htmlUrl="<?php echo esc_attr($bookmark->link_url); ?>" updated="<?php if ('0000-00-00 00:00:00' != $bookmark->link_updated) {
74
+	echo $bookmark->link_updated;
75
+}
76
+?>" />
72 77
 <?php
73 78
 	endforeach; // $bookmarks
74 79
 ?>
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -12,14 +12,14 @@  discard block
 block discarded – undo
12 12
  * @package WordPress
13 13
  */
14 14
 
15
-require_once( dirname( __FILE__ ) . '/wp-load.php' );
15
+require_once(dirname(__FILE__).'/wp-load.php');
16 16
 
17
-header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
17
+header('Content-Type: text/xml; charset='.get_option('blog_charset'), true);
18 18
 $link_cat = '';
19
-if ( !empty($_GET['link_cat']) ) {
19
+if ( ! empty($_GET['link_cat'])) {
20 20
 	$link_cat = $_GET['link_cat'];
21
-	if ( !in_array($link_cat, array('all', '0')) )
22
-		$link_cat = absint( (string)urldecode($link_cat) );
21
+	if ( ! in_array($link_cat, array('all', '0')))
22
+		$link_cat = absint((string) urldecode($link_cat));
23 23
 }
24 24
 
25 25
 echo '<?xml version="1.0"?'.">\n";
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	<head>
29 29
 		<title><?php
30 30
 			/* translators: 1: Site name */
31
-			printf( __('Links for %s'), esc_attr(get_bloginfo('name', 'display')) );
31
+			printf(__('Links for %s'), esc_attr(get_bloginfo('name', 'display')));
32 32
 		?></title>
33 33
 		<dateCreated><?php echo gmdate("D, d M Y H:i:s"); ?> GMT</dateCreated>
34 34
 		<?php
@@ -37,17 +37,17 @@  discard block
 block discarded – undo
37 37
 		 *
38 38
 		 * @since 3.0.0
39 39
 		 */
40
-		do_action( 'opml_head' );
40
+		do_action('opml_head');
41 41
 		?>
42 42
 	</head>
43 43
 	<body>
44 44
 <?php
45
-if ( empty($link_cat) )
45
+if (empty($link_cat))
46 46
 	$cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0));
47 47
 else
48 48
 	$cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0, 'include' => $link_cat));
49 49
 
50
-foreach ( (array)$cats as $cat ) :
50
+foreach ((array) $cats as $cat) :
51 51
 	/**
52 52
 	 * Filters the OPML outline link category name.
53 53
 	 *
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
 	 *
56 56
 	 * @param string $catname The OPML outline category name.
57 57
 	 */
58
-	$catname = apply_filters( 'link_category', $cat->name );
58
+	$catname = apply_filters('link_category', $cat->name);
59 59
 
60 60
 ?>
61 61
 <outline type="category" title="<?php echo esc_attr($catname); ?>">
62 62
 <?php
63 63
 	$bookmarks = get_bookmarks(array("category" => $cat->term_id));
64
-	foreach ( (array)$bookmarks as $bookmark ) :
64
+	foreach ((array) $bookmarks as $bookmark) :
65 65
 		/**
66 66
 		 * Filters the OPML outline link title text.
67 67
 		 *
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 		 *
70 70
 		 * @param string $title The OPML outline title text.
71 71
 		 */
72
-		$title = apply_filters( 'link_title', $bookmark->link_name );
72
+		$title = apply_filters('link_title', $bookmark->link_name);
73 73
 ?>
74 74
 	<outline text="<?php echo esc_attr($title); ?>" type="link" xmlUrl="<?php echo esc_attr($bookmark->link_rss); ?>" htmlUrl="<?php echo esc_attr($bookmark->link_url); ?>" updated="<?php if ('0000-00-00 00:00:00' != $bookmark->link_updated) echo $bookmark->link_updated; ?>" />
75 75
 <?php
Please login to merge, or discard this patch.
src/wp-admin/edit-form-comment.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,8 +7,9 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 // don't load directly
10
-if ( !defined('ABSPATH') )
10
+if ( !defined('ABSPATH') ) {
11 11
 	die('-1');
12
+}
12 13
 ?>
13 14
 <form name="post" action="comment.php" method="post" id="post">
14 15
 <?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
Please login to merge, or discard this patch.
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -7,28 +7,28 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 // don't load directly
10
-if ( !defined('ABSPATH') )
10
+if ( ! defined('ABSPATH'))
11 11
 	die('-1');
12 12
 ?>
13 13
 <form name="post" action="comment.php" method="post" id="post">
14
-<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
14
+<?php wp_nonce_field('update-comment_'.$comment->comment_ID) ?>
15 15
 <div class="wrap">
16
-<h1><?php _e( 'Edit Comment' ); ?></h1>
16
+<h1><?php _e('Edit Comment'); ?></h1>
17 17
 
18 18
 <div id="poststuff">
19 19
 <input type="hidden" name="action" value="editedcomment" />
20
-<input type="hidden" name="comment_ID" value="<?php echo esc_attr( $comment->comment_ID ); ?>" />
21
-<input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" />
20
+<input type="hidden" name="comment_ID" value="<?php echo esc_attr($comment->comment_ID); ?>" />
21
+<input type="hidden" name="comment_post_ID" value="<?php echo esc_attr($comment->comment_post_ID); ?>" />
22 22
 
23 23
 <div id="post-body" class="metabox-holder columns-2">
24 24
 <div id="post-body-content" class="edit-form-section edit-comment-section">
25 25
 <?php
26
-if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_ID > 0 ) :
27
-	$comment_link = get_comment_link( $comment );
26
+if ('approved' === wp_get_comment_status($comment) && $comment->comment_post_ID > 0) :
27
+	$comment_link = get_comment_link($comment);
28 28
 ?>
29 29
 <div class="inside">
30 30
 	<div id="comment-link-box">
31
-		<strong><?php _ex( 'Permalink:', 'comment' ); ?></strong>
31
+		<strong><?php _ex('Permalink:', 'comment'); ?></strong>
32 32
 		<span id="sample-permalink"><a href="<?php echo $comment_link; ?>"><?php echo $comment_link; ?></a></span>
33 33
 	</div>
34 34
 </div>
@@ -36,21 +36,21 @@  discard block
 block discarded – undo
36 36
 <div id="namediv" class="stuffbox">
37 37
 <div class="inside">
38 38
 <fieldset>
39
-<legend class="edit-comment-author"><?php _e( 'Author' ) ?></legend>
39
+<legend class="edit-comment-author"><?php _e('Author') ?></legend>
40 40
 <table class="form-table editcomment">
41 41
 <tbody>
42 42
 <tr>
43
-	<td class="first"><label for="name"><?php _e( 'Name:' ); ?></label></td>
44
-	<td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" id="name" /></td>
43
+	<td class="first"><label for="name"><?php _e('Name:'); ?></label></td>
44
+	<td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr($comment->comment_author); ?>" id="name" /></td>
45 45
 </tr>
46 46
 <tr>
47
-	<td class="first"><label for="email"><?php _e( 'Email:' ); ?></label></td>
47
+	<td class="first"><label for="email"><?php _e('Email:'); ?></label></td>
48 48
 	<td>
49 49
 		<input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" id="email" />
50 50
 	</td>
51 51
 </tr>
52 52
 <tr>
53
-	<td class="first"><label for="newcomment_author_url"><?php _e( 'URL:' ); ?></label></td>
53
+	<td class="first"><label for="newcomment_author_url"><?php _e('URL:'); ?></label></td>
54 54
 	<td>
55 55
 		<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" />
56 56
 	</td>
@@ -64,16 +64,16 @@  discard block
 block discarded – undo
64 64
 
65 65
 <div id="postdiv" class="postarea">
66 66
 <?php
67
-	echo '<label for="content" class="screen-reader-text">' . __( 'Comment' ) . '</label>';
68
-	$quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );
69
-	wp_editor( $comment->comment_content, 'content', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) );
70
-	wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
67
+	echo '<label for="content" class="screen-reader-text">'.__('Comment').'</label>';
68
+	$quicktags_settings = array('buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close');
69
+	wp_editor($comment->comment_content, 'content', array('media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings));
70
+	wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); ?>
71 71
 </div>
72 72
 </div><!-- /post-body-content -->
73 73
 
74 74
 <div id="postbox-container-1" class="postbox-container">
75 75
 <div id="submitdiv" class="stuffbox" >
76
-<h2><?php _e( 'Status' ) ?></h2>
76
+<h2><?php _e('Status') ?></h2>
77 77
 <div class="inside">
78 78
 <div class="submitbox" id="submitcomment">
79 79
 <div id="minor-publishing">
@@ -81,61 +81,61 @@  discard block
 block discarded – undo
81 81
 <div id="misc-publishing-actions">
82 82
 
83 83
 <fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
84
-<legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend>
85
-<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
86
-<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
87
-<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
84
+<legend class="screen-reader-text"><?php _e('Comment status'); ?></legend>
85
+<label><input type="radio"<?php checked($comment->comment_approved, '1'); ?> name="comment_status" value="1" /><?php _ex('Approved', 'comment status'); ?></label><br />
86
+<label><input type="radio"<?php checked($comment->comment_approved, '0'); ?> name="comment_status" value="0" /><?php _ex('Pending', 'comment status'); ?></label><br />
87
+<label><input type="radio"<?php checked($comment->comment_approved, 'spam'); ?> name="comment_status" value="spam" /><?php _ex('Spam', 'comment status'); ?></label>
88 88
 </fieldset>
89 89
 
90 90
 <div class="misc-pub-section curtime misc-pub-curtime">
91 91
 <?php
92 92
 /* translators: Publish box date format, see https://secure.php.net/date */
93
-$datef = __( 'M j, Y @ H:i' );
93
+$datef = __('M j, Y @ H:i');
94 94
 ?>
95 95
 <span id="timestamp"><?php
96 96
 printf(
97 97
 	/* translators: %s: comment date */
98
-	__( 'Submitted on: %s' ),
99
-	'<b>' . date_i18n( $datef, strtotime( $comment->comment_date ) ) . '</b>'
98
+	__('Submitted on: %s'),
99
+	'<b>'.date_i18n($datef, strtotime($comment->comment_date)).'</b>'
100 100
 );
101 101
 ?></span>
102
-<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit date and time' ); ?></span></a>
102
+<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php _e('Edit'); ?></span> <span class="screen-reader-text"><?php _e('Edit date and time'); ?></span></a>
103 103
 <fieldset id='timestampdiv' class='hide-if-js'>
104
-<legend class="screen-reader-text"><?php _e( 'Date and time' ); ?></legend>
105
-<?php touch_time( ( 'editcomment' === $action ), 0 ); ?>
104
+<legend class="screen-reader-text"><?php _e('Date and time'); ?></legend>
105
+<?php touch_time(('editcomment' === $action), 0); ?>
106 106
 </fieldset>
107 107
 </div>
108 108
 
109 109
 <?php
110 110
 $post_id = $comment->comment_post_ID;
111
-if ( current_user_can( 'edit_post', $post_id ) ) {
112
-	$post_link = "<a href='" . esc_url( get_edit_post_link( $post_id ) ) . "'>";
113
-	$post_link .= esc_html( get_the_title( $post_id ) ) . '</a>';
111
+if (current_user_can('edit_post', $post_id)) {
112
+	$post_link = "<a href='".esc_url(get_edit_post_link($post_id))."'>";
113
+	$post_link .= esc_html(get_the_title($post_id)).'</a>';
114 114
 } else {
115
-	$post_link = esc_html( get_the_title( $post_id ) );
115
+	$post_link = esc_html(get_the_title($post_id));
116 116
 }
117 117
 ?>
118 118
 
119 119
 <div class="misc-pub-section misc-pub-response-to">
120 120
 	<?php printf(
121 121
 		/* translators: %s: post link */
122
-		__( 'In response to: %s' ),
123
-		'<b>' . $post_link . '</b>'
122
+		__('In response to: %s'),
123
+		'<b>'.$post_link.'</b>'
124 124
 	); ?>
125 125
 </div>
126 126
 
127 127
 <?php
128
-if ( $comment->comment_parent ) :
129
-	$parent      = get_comment( $comment->comment_parent );
130
-	if ( $parent ) :
131
-		$parent_link = esc_url( get_comment_link( $parent ) );
132
-		$name        = get_comment_author( $parent );
128
+if ($comment->comment_parent) :
129
+	$parent = get_comment($comment->comment_parent);
130
+	if ($parent) :
131
+		$parent_link = esc_url(get_comment_link($parent));
132
+		$name        = get_comment_author($parent);
133 133
 	?>
134 134
 	<div class="misc-pub-section misc-pub-reply-to">
135 135
 		<?php printf(
136 136
 			/* translators: %s: comment link */
137
-			__( 'In reply to: %s' ),
138
-			'<b><a href="' . $parent_link . '">' . $name . '</a></b>'
137
+			__('In reply to: %s'),
138
+			'<b><a href="'.$parent_link.'">'.$name.'</a></b>'
139 139
 		); ?>
140 140
 	</div>
141 141
 <?php endif;
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	 * @param string $html    Output HTML to display miscellaneous action.
151 151
 	 * @param object $comment Current comment object.
152 152
 	 */
153
-	 echo apply_filters( 'edit_comment_misc_actions', '', $comment );
153
+	 echo apply_filters('edit_comment_misc_actions', '', $comment);
154 154
 ?>
155 155
 
156 156
 </div> <!-- misc actions -->
@@ -159,10 +159,10 @@  discard block
 block discarded – undo
159 159
 
160 160
 <div id="major-publishing-actions">
161 161
 <div id="delete-action">
162
-<?php echo "<a class='submitdelete deletion' href='" . wp_nonce_url("comment.php?action=" . ( !EMPTY_TRASH_DAYS ? 'deletecomment' : 'trashcomment' ) . "&amp;c=$comment->comment_ID&amp;_wp_original_http_referer=" . urlencode(wp_get_referer()), 'delete-comment_' . $comment->comment_ID) . "'>" . ( !EMPTY_TRASH_DAYS ? __('Delete Permanently') : __('Move to Trash') ) . "</a>\n"; ?>
162
+<?php echo "<a class='submitdelete deletion' href='".wp_nonce_url("comment.php?action=".( ! EMPTY_TRASH_DAYS ? 'deletecomment' : 'trashcomment')."&amp;c=$comment->comment_ID&amp;_wp_original_http_referer=".urlencode(wp_get_referer()), 'delete-comment_'.$comment->comment_ID)."'>".( ! EMPTY_TRASH_DAYS ? __('Delete Permanently') : __('Move to Trash'))."</a>\n"; ?>
163 163
 </div>
164 164
 <div id="publishing-action">
165
-<?php submit_button( __( 'Update' ), 'primary large', 'save', false ); ?>
165
+<?php submit_button(__('Update'), 'primary large', 'save', false); ?>
166 166
 </div>
167 167
 <div class="clear"></div>
168 168
 </div>
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 <div id="postbox-container-2" class="postbox-container">
175 175
 <?php
176 176
 /** This action is documented in wp-admin/edit-form-advanced.php */
177
-do_action( 'add_meta_boxes', 'comment', $comment );
177
+do_action('add_meta_boxes', 'comment', $comment);
178 178
 
179 179
 /**
180 180
  * Fires when comment-specific meta boxes are added.
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
  *
184 184
  * @param WP_Comment $comment Comment object.
185 185
  */
186
-do_action( 'add_meta_boxes_comment', $comment );
186
+do_action('add_meta_boxes_comment', $comment);
187 187
 
188 188
 do_meta_boxes(null, 'normal', $comment);
189 189
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
 <input type="hidden" name="c" value="<?php echo esc_attr($comment->comment_ID) ?>" />
195 195
 <input type="hidden" name="p" value="<?php echo esc_attr($comment->comment_post_ID) ?>" />
196
-<input name="referredby" type="hidden" id="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>" />
196
+<input name="referredby" type="hidden" id="referredby" value="<?php echo $referer ? esc_url($referer) : ''; ?>" />
197 197
 <?php wp_original_referer_field(true, 'previous'); ?>
198 198
 <input type="hidden" name="noredir" value="1" />
199 199
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 </div>
203 203
 </form>
204 204
 
205
-<?php if ( ! wp_is_mobile() ) : ?>
205
+<?php if ( ! wp_is_mobile()) : ?>
206 206
 <script type="text/javascript">
207 207
 try{document.post.name.focus();}catch(e){}
208 208
 </script>
Please login to merge, or discard this patch.