Passed
Push — master ( f9c478...f2bc51 )
by SILENT
02:23
created
single.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@
 block discarded – undo
13 13
 		<section id="primary">
14 14
 			<main id="content" role="main">
15 15
 
16
-		<?php while ( have_posts() ) : the_post(); ?>
16
+		<?php while (have_posts()) : the_post(); ?>
17 17
 
18
-			<?php get_template_part( 'content', get_post_format() ); ?>
18
+			<?php get_template_part('content', get_post_format()); ?>
19 19
 
20
-			<?php strip_content_nav( 'nav-below' ); ?>
20
+			<?php strip_content_nav('nav-below'); ?>
21 21
 
22 22
 			<?php
23 23
 				// If comments are open or we have at least one comment, load up the comment template.
24
-			if ( comments_open() || '0' !== get_comments_number() ) :
24
+			if (comments_open() || '0' !== get_comments_number()) :
25 25
 				comments_template();
26 26
 			endif; ?>
27 27
 
Please login to merge, or discard this patch.
search.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -11,39 +11,39 @@
 block discarded – undo
11 11
 	<section id="primary"
12 12
 	<main id="content" role="main">
13 13
 
14
-		<?php if ( have_posts() ) : ?>
14
+		<?php if (have_posts()) : ?>
15 15
 
16 16
 			<header class="page-header">
17
-				<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'strip' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
17
+				<h1 class="page-title"><?php printf(esc_html__('Search Results for: %s', 'strip'), '<span>' . get_search_query() . '</span>'); ?></h1>
18 18
 			</header><!-- .page-header -->
19 19
 
20 20
 			<?php /* Start the Loop */ ?>
21
-			<?php while ( have_posts() ) :
21
+			<?php while (have_posts()) :
22 22
 				the_post();
23 23
 
24
-				get_template_part( 'content', get_post_format() );
24
+				get_template_part('content', get_post_format());
25 25
 
26 26
 			endwhile;
27 27
 
28
-			the_posts_pagination( array(
29
-				'prev_text' => _x( '&#8592;', 'Previous page link', 'strip' ) . '<span class="screen-reader-text">' . __( 'Previous page', 'strip' ) . '</span>',
30
-				'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'strip' ) . '</span>' . _x( '&#8594;', 'Next post link', 'strip' ),
31
-				'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>',
32
-			) );
28
+			the_posts_pagination(array(
29
+				'prev_text' => _x('&#8592;', 'Previous page link', 'strip') . '<span class="screen-reader-text">' . __('Previous page', 'strip') . '</span>',
30
+				'next_text' => '<span class="screen-reader-text">' . __('Next page', 'strip') . '</span>' . _x('&#8594;', 'Next post link', 'strip'),
31
+				'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'strip') . ' </span>',
32
+			));
33 33
 
34 34
 		else : ?>
35 35
 
36 36
 <article id="post-0" class="no-results">
37 37
 	<header class="page-header">
38
-		<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'strip' ); ?></h1>
38
+		<h1 class="page-title"><?php esc_html_e('Nothing Found', 'strip'); ?></h1>
39 39
 	</header><!-- .page-header -->
40 40
 <div class="entry-content">
41
-			<p> <?php esc_html_e( 'Bummer, I cannot find what you are looking for.
42
-				Would you like to search in the', 'strip' ); ?>
41
+			<p> <?php esc_html_e('Bummer, I cannot find what you are looking for.
42
+				Would you like to search in the', 'strip'); ?>
43 43
 
44
-			<a href="<?php echo esc_url( get_post_type_archive_link( 'comic' ) ); ?>">Comics Archive</a>? Great stuff there.</p>
44
+			<a href="<?php echo esc_url(get_post_type_archive_link('comic')); ?>">Comics Archive</a>? Great stuff there.</p>
45 45
 
46
-			<p><?php esc_html_e( 'Or do you prefer trying another search with different keywords?', 'strip' ); ?></p>
46
+			<p><?php esc_html_e('Or do you prefer trying another search with different keywords?', 'strip'); ?></p>
47 47
 
48 48
 			<?php get_search_form(); ?>
49 49
 
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
 	<div id="primary" class="content-area">
18 18
 		<div id="content" class="site-content" role="main">
19 19
 
20
-		<?php if ( have_posts() ) : ?>
20
+		<?php if (have_posts()) : ?>
21 21
 
22 22
 	<?php /* Start the Loop */ ?>
23
-			<?php while ( have_posts() ) :
23
+			<?php while (have_posts()) :
24 24
 				the_post(); ?>
25 25
 
26 26
 				<?php
@@ -31,22 +31,22 @@  discard block
 block discarded – undo
31 31
 				* If you want to override this in a child theme, then include a file
32 32
 				* called content-___.php (where ___ is the Post Format name) and that will be used instead.
33 33
 				*/
34
-					get_template_part( 'content', get_post_format() );
34
+					get_template_part('content', get_post_format());
35 35
 				?>
36 36
 
37 37
 			<?php endwhile; ?>
38 38
 
39 39
 			<div class="wrap">
40
-					<?php the_posts_pagination( array(
41
-						'prev_text' => _x( '&#8592;', 'Previous page link', 'strip' ) . '<span class="screen-reader-text">' . __( 'Previous page', 'strip' ) . '</span>',
42
-						'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'strip' ) . '</span>' . _x( '&#8594;', 'Next post link', 'strip' ),
43
-						'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>',
44
-					) ); ?>
40
+					<?php the_posts_pagination(array(
41
+						'prev_text' => _x('&#8592;', 'Previous page link', 'strip') . '<span class="screen-reader-text">' . __('Previous page', 'strip') . '</span>',
42
+						'next_text' => '<span class="screen-reader-text">' . __('Next page', 'strip') . '</span>' . _x('&#8594;', 'Next post link', 'strip'),
43
+						'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'strip') . ' </span>',
44
+					)); ?>
45 45
 	</div>
46 46
 
47 47
 		<?php else : ?>
48 48
 
49
-			<?php get_template_part( 'no-results', 'index' ); ?>
49
+			<?php get_template_part('no-results', 'index'); ?>
50 50
 
51 51
 		<?php endif; ?>
52 52
 
Please login to merge, or discard this patch.
archive.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,19 +14,19 @@  discard block
 block discarded – undo
14 14
 	<main id="main" class="site-main" role="main">
15 15
 
16 16
 	<?php
17
-	if ( have_posts() ) : ?>
17
+	if (have_posts()) : ?>
18 18
 
19 19
 		<header class="page-header">
20 20
 			<div class="wrap">
21 21
 			<?php
22
-				the_archive_title( '<h1 class="page-title">', '</h1>' );
23
-				the_archive_description( '<div class="taxonomy-description">', '</div>' );
22
+				the_archive_title('<h1 class="page-title">', '</h1>');
23
+				the_archive_description('<div class="taxonomy-description">', '</div>');
24 24
 			?>
25 25
 				</div><!-- .wrap -->
26 26
 			</header><!-- .page-header -->
27 27
 
28 28
 			<?php /* Start the Loop */ ?>
29
-			<?php while ( have_posts() ) : the_post(); ?>
29
+			<?php while (have_posts()) : the_post(); ?>
30 30
 
31 31
 				<?php
32 32
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 					 * If you want to overload this in a child theme then include a file
36 36
 					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
37 37
 					 */
38
-					get_template_part( 'content', get_post_format() );
38
+					get_template_part('content', get_post_format());
39 39
 				?>
40 40
 
41 41
 			<?php endwhile; ?>
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
 		<?php else : ?>
48 48
 
49
-			<?php get_template_part( 'no-results', 'archive' ); ?>
49
+			<?php get_template_part('no-results', 'archive'); ?>
50 50
 
51 51
 		<?php endif; ?>
52 52
 
Please login to merge, or discard this patch.
inc/template-tags.php 1 patch
Spacing   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -12,88 +12,88 @@  discard block
 block discarded – undo
12 12
  * Add custom header image to header area
13 13
  */
14 14
 function strip_header_background() {
15
-	if ( get_header_image() ) {
16
-		$css = '.site-branding { background-image: url(' . esc_url( get_header_image() ) . '); }';
17
-		wp_add_inline_style( 'strip-style', $css );
15
+	if (get_header_image()) {
16
+		$css = '.site-branding { background-image: url(' . esc_url(get_header_image()) . '); }';
17
+		wp_add_inline_style('strip-style', $css);
18 18
 	}
19 19
 }
20
-add_action( 'wp_enqueue_scripts', 'strip_header_background', 11 );
20
+add_action('wp_enqueue_scripts', 'strip_header_background', 11);
21 21
 
22
-if ( ! function_exists( 'strip_content_nav' ) ) :
22
+if ( ! function_exists('strip_content_nav')) :
23 23
 
24 24
 	/**
25 25
 	 * Display navigation to next/previous pages when applicable
26 26
 	 *
27 27
 	 * @param $string $nav_id strip_content_nav.
28 28
 	 */
29
-	function strip_content_nav( $nav_id ) {
29
+	function strip_content_nav($nav_id) {
30 30
 
31
-		$nav_class = ( is_single() || is_post_type( 'comic' ) ) ? 'post-navigation' : 'paging-navigation' ;
31
+		$nav_class = (is_single() || is_post_type('comic')) ? 'post-navigation' : 'paging-navigation';
32 32
 
33 33
 		?> <div class="wrap clear">
34 34
 
35
-		<nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo esc_attr( $nav_class ); ?> clear">
36
-		<h1 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'strip' ); ?></h1>
35
+		<nav role="navigation" id="<?php echo esc_attr($nav_id); ?>" class="<?php echo esc_attr($nav_class); ?> clear">
36
+		<h1 class="screen-reader-text"><?php esc_html_e('Post navigation', 'strip'); ?></h1>
37 37
 
38
-		<?php  if ( 'comic' === get_post_type() && ( is_single() ) ) : // comics navigation links.
38
+		<?php  if ('comic' === get_post_type() && (is_single())) : // comics navigation links.
39 39
 
40 40
 			$nav_class .= ' navigation-comic'; ?>
41 41
 
42 42
 				<div class="navigation-comic">
43
-				<nav class="nav-first"><a href="<?php echo esc_url( first_comic_link() ); ?>"><?php esc_html_e( 'Start', 'strip' ); ?></a></nav>
44
-				<nav class="nav-previous"><?php previous_post_link( '%link', __( 'Previous', 'strip' ), true, '', 'story' ); ?></nav>
45
-				<nav class="nav-title"><?php the_title( '<h4 class="series-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h4>' ); ?></nav>
46
-				<nav class="nav-next"><?php next_post_link( '%link', __( 'Next', 'strip' ), true, '', 'story' ); ?></nav>
47
-				<nav class="nav-last"><a href="<?php echo esc_url( last_comic_link() ); ?>"><?php esc_html_e( 'Last', 'strip' ); ?></a></nav>
43
+				<nav class="nav-first"><a href="<?php echo esc_url(first_comic_link()); ?>"><?php esc_html_e('Start', 'strip'); ?></a></nav>
44
+				<nav class="nav-previous"><?php previous_post_link('%link', __('Previous', 'strip'), true, '', 'story'); ?></nav>
45
+				<nav class="nav-title"><?php the_title('<h4 class="series-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h4>'); ?></nav>
46
+				<nav class="nav-next"><?php next_post_link('%link', __('Next', 'strip'), true, '', 'story'); ?></nav>
47
+				<nav class="nav-last"><a href="<?php echo esc_url(last_comic_link()); ?>"><?php esc_html_e('Last', 'strip'); ?></a></nav>
48 48
 			</div><!-- .navigation-comic -->
49 49
 
50
-		<?php elseif ( is_single() ) : // navigation links for single posts. ?>
50
+		<?php elseif (is_single()) : // navigation links for single posts. ?>
51 51
 
52
-		<?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '&#8592;', 'Previous post link', 'strip' ) . '</span> %title' ); ?>
53
-		<?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '&#8594;', 'Next post link', 'strip' ) . '</span>' ); ?>
52
+		<?php previous_post_link('<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x('&#8592;', 'Previous post link', 'strip') . '</span> %title'); ?>
53
+		<?php next_post_link('<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x('&#8594;', 'Next post link', 'strip') . '</span>'); ?>
54 54
 
55 55
 		<?php endif; ?>
56 56
 
57 57
 				</div><!-- .entry-wrap -->
58
-			</nav><!-- #<?php echo esc_attr( $nav_id ); ?> -->
58
+			</nav><!-- #<?php echo esc_attr($nav_id); ?> -->
59 59
 			<?php
60 60
 	}
61 61
 endif; // strip_content_nav.
62 62
 
63
-if ( ! function_exists( 'strip_entry_meta' ) ) :
63
+if ( ! function_exists('strip_entry_meta')) :
64 64
 	/**
65 65
 	 * Prints HTML with meta information for the current post-date/time and author.
66 66
 	 */
67 67
 	function strip_entry_meta() {
68
-		if ( is_sticky() && is_home() ) {
68
+		if (is_sticky() && is_home()) {
69 69
 			printf(
70
-				wp_kses( '<span class="featured-post"><a href="%1$s" title="%2$s" rel="bookmark">Sticky</a></span>', 'strip' ),
71
-				esc_url( get_permalink() ),
72
-				esc_attr( get_the_time() )
70
+				wp_kses('<span class="featured-post"><a href="%1$s" title="%2$s" rel="bookmark">Sticky</a></span>', 'strip'),
71
+				esc_url(get_permalink()),
72
+				esc_attr(get_the_time())
73 73
 			);
74 74
 		}
75 75
 
76
-		if ( 'post' === get_post_type() ) {
76
+		if ('post' === get_post_type()) {
77 77
 			printf(
78
-				wp_kses_post( '<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s">%4$s</time></a></span><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span>', 'strip' ),
79
-				esc_url( get_permalink() ),
80
-				esc_attr( get_the_time() ),
81
-				esc_attr( get_the_date( 'c' ) ),
78
+				wp_kses_post('<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s">%4$s</time></a></span><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span>', 'strip'),
79
+				esc_url(get_permalink()),
80
+				esc_attr(get_the_time()),
81
+				esc_attr(get_the_date('c')),
82 82
 				get_the_date(),
83
-				esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
84
-				esc_attr( sprintf( __( 'View all posts by %s', 'strip' ), get_the_author() ) ),
83
+				esc_url(get_author_posts_url(get_the_author_meta('ID'))),
84
+				esc_attr(sprintf(__('View all posts by %s', 'strip'), get_the_author())),
85 85
 				get_the_author()
86 86
 			);
87 87
 		}
88 88
 
89
-		$tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'strip' ) );
90
-		if ( $tags_list ) {
91
-			printf( '<span class="tags-links">' . esc_html( '%1$s', 'strip' ) . '</span>', $tags_list ); // WPCS: XSS OK.
89
+		$tags_list = get_the_tag_list('', _x(', ', 'Used between list items, there is a space after the comma.', 'strip'));
90
+		if ($tags_list) {
91
+			printf('<span class="tags-links">' . esc_html('%1$s', 'strip') . '</span>', $tags_list); // WPCS: XSS OK.
92 92
 		}
93 93
 	}
94 94
 endif;
95 95
 
96
-if ( ! function_exists( 'strip_term_description' ) ) :
96
+if ( ! function_exists('strip_term_description')) :
97 97
 	/**
98 98
 	 * Display optional term description for category, tag and custom taxonomy pages.
99 99
 	 *
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
 		// Show an optional term description.
104 104
 		$term_description = term_description();
105 105
 
106
-		if ( is_post_type_archive( 'comic' ) || is_category() || is_tag() || is_tax( 'story' ) && ! empty( $term_description ) ) :
107
-			printf( '<div class="taxonomy-description">%s</div>', $term_description, 'strip' ); // WPCS: XSS OK.
106
+		if (is_post_type_archive('comic') || is_category() || is_tag() || is_tax('story') && ! empty($term_description)) :
107
+			printf('<div class="taxonomy-description">%s</div>', $term_description, 'strip'); // WPCS: XSS OK.
108 108
 			endif;
109 109
 	}
110 110
 endif; // ends check for strip_term_description.
@@ -115,25 +115,25 @@  discard block
 block discarded – undo
115 115
  * @return bool
116 116
  */
117 117
 function strip_categorized_blog() {
118
-	$category_count = get_transient( 'strip_categories' );
118
+	$category_count = get_transient('strip_categories');
119 119
 
120
-	if ( false === $category_count ) {
120
+	if (false === $category_count) {
121 121
 		// Create an array of all the categories that are attached to posts.
122
-		$categories = get_categories( array(
122
+		$categories = get_categories(array(
123 123
 			'fields'     => 'ids',
124 124
 			'hide_empty' => 1,
125 125
 			// We only need to know if there is more than one category.
126 126
 			'number'     => 2,
127
-		) );
127
+		));
128 128
 
129 129
 		// Count the number of categories that are attached to the posts.
130
-		$category_count = count( $categories );
130
+		$category_count = count($categories);
131 131
 
132
-		set_transient( 'strip_categories', $category_count );
132
+		set_transient('strip_categories', $category_count);
133 133
 	}
134 134
 
135 135
 	// Allow viewing case of 0 or 1 categories in post preview.
136
-	if ( is_preview() ) {
136
+	if (is_preview()) {
137 137
 		return true;
138 138
 	}
139 139
 
@@ -145,16 +145,16 @@  discard block
 block discarded – undo
145 145
  * Flush out the transients used in strip_categorized_blog.
146 146
  */
147 147
 function strip_category_transient_flusher() {
148
-	if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
148
+	if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
149 149
 		return;
150 150
 	}
151 151
 	// Like, beat it. Dig?
152
-	delete_transient( 'strip_categories' );
152
+	delete_transient('strip_categories');
153 153
 }
154
-add_action( 'edit_category', 'strip_category_transient_flusher' );
155
-add_action( 'save_post',     'strip_category_transient_flusher' );
154
+add_action('edit_category', 'strip_category_transient_flusher');
155
+add_action('save_post', 'strip_category_transient_flusher');
156 156
 
157
-if ( ! function_exists( 'strip_the_custom_logo' ) ) :
157
+if ( ! function_exists('strip_the_custom_logo')) :
158 158
 	/**
159 159
 	 * Displays the optional custom logo.
160 160
 	 *
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 	 * @since strip 1.0
164 164
 	 */
165 165
 	function strip_the_custom_logo() {
166
-		if ( function_exists( 'the_custom_logo' ) ) {
166
+		if (function_exists('the_custom_logo')) {
167 167
 			the_custom_logo();
168 168
 		}
169 169
 	}
@@ -179,10 +179,10 @@  discard block
 block discarded – undo
179 179
  * @param string $taxonomy       Optional. Taxonomy, if $in_same_term is true. Default 'category'.
180 180
  * @return mixed Array containing the boundary post object if successful, null otherwise.
181 181
  */
182
-function get_comic_boundary_post( $in_same_term = false, $start = true, $taxonomy = 'category' ) {
182
+function get_comic_boundary_post($in_same_term = false, $start = true, $taxonomy = 'category') {
183 183
 	global $post;
184
-	setup_postdata( $post );
185
-	if ( ! taxonomy_exists( $taxonomy ) ) {
184
+	setup_postdata($post);
185
+	if ( ! taxonomy_exists($taxonomy)) {
186 186
 		return null;
187 187
 	}
188 188
 
@@ -196,37 +196,37 @@  discard block
 block discarded – undo
196 196
 	);
197 197
 
198 198
 	$term_array = array();
199
-	if ( $in_same_term ) {
200
-		if ( $in_same_term ) {
201
-			$term_array = wp_get_object_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) );
199
+	if ($in_same_term) {
200
+		if ($in_same_term) {
201
+			$term_array = wp_get_object_terms($post->ID, $taxonomy, array('fields' => 'ids'));
202 202
 		}
203
-		$query_args['tax_query'] = array( array(
203
+		$query_args['tax_query'] = array(array(
204 204
 			'taxonomy' => $taxonomy,
205
-			'terms' => array_merge( $term_array ),
205
+			'terms' => array_merge($term_array),
206 206
 		),
207 207
 		);
208 208
 	}
209 209
 
210 210
 	$get_posts = new wp_query;
211
-	return $get_posts -> query( $query_args );
211
+	return $get_posts -> query($query_args);
212 212
 }
213 213
 
214 214
 /**
215 215
  * Link to the first comic post in same term
216 216
  */
217 217
 function first_comic_link() {
218
-	$first = get_comic_boundary_post( true, true, 'story' );
219
-	apply_filters( 'the_title', $first[0]->post_title );
218
+	$first = get_comic_boundary_post(true, true, 'story');
219
+	apply_filters('the_title', $first[0]->post_title);
220 220
 
221
-	echo esc_html( get_permalink( $first[0]->ID ) );
221
+	echo esc_html(get_permalink($first[0]->ID));
222 222
 }
223 223
 
224 224
 /**
225 225
  * Link to the last comic post in same term
226 226
  */
227 227
 function last_comic_link() {
228
-	$last = get_comic_boundary_post( true, false, 'story' );
229
-	apply_filters( 'the_title', $last[0]->post_title );
228
+	$last = get_comic_boundary_post(true, false, 'story');
229
+	apply_filters('the_title', $last[0]->post_title);
230 230
 
231
-	echo esc_html( get_permalink( $last[0]->ID ) );
231
+	echo esc_html(get_permalink($last[0]->ID));
232 232
 }
Please login to merge, or discard this patch.
assets/admin.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -25,20 +25,20 @@  discard block
 block discarded – undo
25 25
  */
26 26
 function disable_default_dashboard_widgets() {
27 27
 	global $wp_meta_boxes;
28
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity'] );        // Activity Widget.
29
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments'] ); // Comments Widget.
30
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links'] );  // Incoming Links Widget.
31
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins'] );         // Plugins Widget.
28
+	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']); // Activity Widget.
29
+	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); // Comments Widget.
30
+	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); // Incoming Links Widget.
31
+	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); // Plugins Widget.
32 32
 
33
-	unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press'] );       // Quick Press Widget.
34
-	unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts'] );     // Recent Drafts Widget.
35
-	unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_primary'] );           // WordPress related feed.
36
-	unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary'] );         //
33
+	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); // Quick Press Widget.
34
+	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']); // Recent Drafts Widget.
35
+	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); // WordPress related feed.
36
+	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); //
37 37
 
38 38
 	// remove plugin dashboard boxes
39
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['yoast_db_widget'] );           // Yoast's SEO Plugin Widget.
40
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['rg_forms_dashboard'] );        // Gravity Forms Plugin Widget.
41
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['bbp-dashboard-right-now'] );   // bbPress Plugin Widget.
39
+	unset($wp_meta_boxes['dashboard']['normal']['core']['yoast_db_widget']); // Yoast's SEO Plugin Widget.
40
+	unset($wp_meta_boxes['dashboard']['normal']['core']['rg_forms_dashboard']); // Gravity Forms Plugin Widget.
41
+	unset($wp_meta_boxes['dashboard']['normal']['core']['bbp-dashboard-right-now']); // bbPress Plugin Widget.
42 42
 
43 43
 	/*
44 44
 	Have more plugin widgets you'd like to remove?
@@ -61,31 +61,31 @@  discard block
 block discarded – undo
61 61
  * RSS Dasboars Widget
62 62
  */
63 63
 function strip_rss_dashboard_widget() {
64
-	if ( function_exists( 'fetch_feed' ) ) {
65
-		$feed = fetch_feed( 'https://silent-comics.tumblr.com/rss/' );// specify the source feed.
66
-		if ( is_wp_error( $feed ) ) {
64
+	if (function_exists('fetch_feed')) {
65
+		$feed = fetch_feed('https://silent-comics.tumblr.com/rss/'); // specify the source feed.
66
+		if (is_wp_error($feed)) {
67 67
 			return;
68 68
 		}
69
-			$limit = $feed->get_item_quantity( 7 );                        // specify number of items.
70
-			$items = $feed->get_items( 0, $limit );                        // create an array of items.
69
+			$limit = $feed->get_item_quantity(7); // specify number of items.
70
+			$items = $feed->get_items(0, $limit); // create an array of items.
71 71
 	}
72
-	if ( 0 ) { echo '<div>The RSS Feed is either empty or unavailable.</div>'; // fallback message.
72
+	if (0) { echo '<div>The RSS Feed is either empty or unavailable.</div>'; // fallback message.
73 73
 		return;
74 74
 	}
75
-	foreach ( $items as $item ) { ?>
75
+	foreach ($items as $item) { ?>
76 76
 
77 77
 			<h4 style="margin-bottom: 1em; max-width: 384px;">
78
-				<a href="<?php echo esc_url( $item->get_permalink() ); ?>" title="" target="_blank">
79
-					<?php echo esc_attr( $item->get_title() ); ?>
78
+				<a href="<?php echo esc_url($item->get_permalink()); ?>" title="" target="_blank">
79
+					<?php echo esc_attr($item->get_title()); ?>
80 80
 					<br>
81 81
 				</a>
82 82
 			</h4>
83 83
 
84
-			<?php echo esc_html( mysql2date( __( 'j F Y @ g:i a', 'strip' ), $item->get_date( 'Y-m-d H:i:s' ) ) ); ?>
84
+			<?php echo esc_html(mysql2date(__('j F Y @ g:i a', 'strip'), $item->get_date('Y-m-d H:i:s'))); ?>
85 85
 
86 86
 			<p style="margin-top: 1.2em;
87 87
 					  #strip_rss_dashboard_widget .postbox.postbox-container { width: 12px; }">
88
-			<?php echo wp_kses_post( substr( $item->get_description(), 0, 742 ) ); ?>
88
+			<?php echo wp_kses_post(substr($item->get_description(), 0, 742)); ?>
89 89
 			</p>
90 90
 			<?php
91 91
 	}
@@ -95,16 +95,16 @@  discard block
 block discarded – undo
95 95
  * Calling all custom dashboard widgets.
96 96
  */
97 97
 function strip_custom_dashboard_widgets() {
98
-	wp_add_dashboard_widget( 'strip_rss_dashboard_widget', __( 'SILENT COMICS on tumblr', 'strip' ), 'strip_rss_dashboard_widget' );
98
+	wp_add_dashboard_widget('strip_rss_dashboard_widget', __('SILENT COMICS on tumblr', 'strip'), 'strip_rss_dashboard_widget');
99 99
 	/**
100 100
 	* Be sure to drop any other created Dashboard Widgets.
101 101
 	* in this function and they will all load.
102 102
 	*/
103 103
 }
104 104
 // removing the dashboard widgets.
105
-add_action( 'wp_dashboard_setup', 'disable_default_dashboard_widgets' );
105
+add_action('wp_dashboard_setup', 'disable_default_dashboard_widgets');
106 106
 // adding any custom widgets.
107
-add_action( 'wp_dashboard_setup', 'strip_custom_dashboard_widgets' );
107
+add_action('wp_dashboard_setup', 'strip_custom_dashboard_widgets');
108 108
 
109 109
 
110 110
 /************* CUSTOM LOGIN PAGE *****************/
@@ -115,10 +115,10 @@  discard block
 block discarded – undo
115 115
  * See http://codex.wordpress.org/Plugin_API/Action_Reference/login_enqueue_scripts.
116 116
  */
117 117
 function strip_login_css() {
118
-	 wp_enqueue_style( 'strip_login_css', get_template_directory_uri() . '/assets/css/login.css', false );
118
+	 wp_enqueue_style('strip_login_css', get_template_directory_uri() . '/assets/css/login.css', false);
119 119
 
120 120
 	// Enqueue custom font to the login form.
121
-	wp_enqueue_style( 'strip_inconsolata_css', get_template_directory_uri() . '/assets/fonts/inconsolata.css', array(), null );
121
+	wp_enqueue_style('strip_inconsolata_css', get_template_directory_uri() . '/assets/fonts/inconsolata.css', array(), null);
122 122
 }
123 123
 
124 124
 /**
@@ -135,12 +135,12 @@  discard block
 block discarded – undo
135 135
 	 * @return blog title.
136 136
 	 */
137 137
 function strip_login_title() {
138
-	return get_option( 'blogname' ); }
138
+	return get_option('blogname'); }
139 139
 
140 140
 // calling only on the login page.
141
-add_action( 'login_enqueue_scripts', 'strip_login_css', 10 );
142
-add_filter( 'login_headerurl', 'strip_login_url' );
143
-add_filter( 'login_headertitle', 'strip_login_title' );
141
+add_action('login_enqueue_scripts', 'strip_login_css', 10);
142
+add_filter('login_headerurl', 'strip_login_url');
143
+add_filter('login_headertitle', 'strip_login_title');
144 144
 
145 145
 /************* CUSTOMIZE ADMIN *******************/
146 146
 
@@ -156,10 +156,10 @@  discard block
 block discarded – undo
156 156
  */
157 157
 function strip_custom_admin_footer() {
158 158
 	?>
159
-	<span id="footer-thankyou"><a href="<?php echo esc_url( __( 'http://silent-comics.com/', 'strip' ) ); ?>"><?php printf( esc_html__( 'Developed by %s', 'strip' ), 'Silent Comics' ); ?></a>
159
+	<span id="footer-thankyou"><a href="<?php echo esc_url(__('http://silent-comics.com/', 'strip')); ?>"><?php printf(esc_html__('Developed by %s', 'strip'), 'Silent Comics'); ?></a>
160 160
 			<span class="sep"> | </span>
161
-			<a href="<?php echo esc_url( __( 'https://github.com/SilentComics/Strip/', 'strip' ) ); ?>"><?php printf( esc_html__( 'Contribute on %s', 'strip' ), 'GitHub' ); ?></a>
161
+			<a href="<?php echo esc_url(__('https://github.com/SilentComics/Strip/', 'strip')); ?>"><?php printf(esc_html__('Contribute on %s', 'strip'), 'GitHub'); ?></a>
162 162
 <?php }
163 163
 
164 164
 // adding it to the admin area.
165
-add_filter( 'admin_footer_text', 'strip_custom_admin_footer' );
165
+add_filter('admin_footer_text', 'strip_custom_admin_footer');
Please login to merge, or discard this patch.
inc/extras.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -14,30 +14,30 @@  discard block
 block discarded – undo
14 14
  * @param array $classes group-blog.
15 15
  * @return array
16 16
  */
17
-function strip_body_classes( $classes ) {
17
+function strip_body_classes($classes) {
18 18
 	// Adds a class of group-blog to blogs with more than 1 published author.
19
-	if ( is_multi_author() ) {
19
+	if (is_multi_author()) {
20 20
 		$classes[] = 'group-blog';
21 21
 	}
22 22
 
23 23
 	return $classes;
24 24
 }
25
-add_filter( 'body_class', 'strip_body_classes' );
25
+add_filter('body_class', 'strip_body_classes');
26 26
 
27 27
 /**
28 28
  * Disable emojis introduced in WordPress 4.2.
29 29
  */
30 30
 function disable_emojis() {
31
-	remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
32
-	remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
33
-	remove_action( 'wp_print_styles', 'print_emoji_styles' );
34
-	remove_action( 'admin_print_styles', 'print_emoji_styles' );
35
-	remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
36
-	remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
37
-	remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
38
-	add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
39
-	add_filter( 'wp_resource_hints', 'disable_emojis_remove_dns_prefetch', 10, 2 );
40
-} add_action( 'init', 'disable_emojis' );
31
+	remove_action('wp_head', 'print_emoji_detection_script', 7);
32
+	remove_action('admin_print_scripts', 'print_emoji_detection_script');
33
+	remove_action('wp_print_styles', 'print_emoji_styles');
34
+	remove_action('admin_print_styles', 'print_emoji_styles');
35
+	remove_filter('the_content_feed', 'wp_staticize_emoji');
36
+	remove_filter('comment_text_rss', 'wp_staticize_emoji');
37
+	remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
38
+	add_filter('tiny_mce_plugins', 'disable_emojis_tinymce');
39
+	add_filter('wp_resource_hints', 'disable_emojis_remove_dns_prefetch', 10, 2);
40
+} add_action('init', 'disable_emojis');
41 41
 
42 42
 /**
43 43
  * Filter function used to remove the tinymce emoji plugin.
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
  * @param array $plugins disable_emojis_tinymce.
46 46
  * @return array Difference betwen the two arrays.
47 47
  */
48
-function disable_emojis_tinymce( $plugins ) {
49
-	if ( is_array( $plugins ) ) {
50
-		return array_diff( $plugins, array( 'wpemoji' ) );
48
+function disable_emojis_tinymce($plugins) {
49
+	if (is_array($plugins)) {
50
+		return array_diff($plugins, array('wpemoji'));
51 51
 	} return array();
52 52
 }
53 53
 	/**
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
 	 * @param string $relation_type The relation type the URLs are printed for.
58 58
 	 * @return array Difference betwen the two arrays.
59 59
 	 */
60
-function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
61
-	if ( 'dns-prefetch' !== $relation_type ) { /** This filter is documented in wp-includes/formatting.php */
62
-		$emoji_svg_url = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/' );
63
-		$urls = array_diff( $urls, array( $emoji_svg_url ) );
60
+function disable_emojis_remove_dns_prefetch($urls, $relation_type) {
61
+	if ('dns-prefetch' !== $relation_type) { /** This filter is documented in wp-includes/formatting.php */
62
+		$emoji_svg_url = apply_filters('emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/');
63
+		$urls = array_diff($urls, array($emoji_svg_url));
64 64
 	}
65 65
 	return $urls; }
Please login to merge, or discard this patch.
image.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * @subpackage Strip
7 7
  */
8 8
 
9
-get_header( 'lite' );
9
+get_header('lite');
10 10
 $content_width = 1920;
11 11
 ?>
12 12
 	<div id="primary" class="content-area image-attachment">
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 	<?php
16 16
 	// Start the loop.
17
-	while ( have_posts() ) :
17
+	while (have_posts()) :
18 18
 		the_post(); ?>
19 19
 
20 20
 			<article id="post-<?php the_ID(); ?>">
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
 					 *
31 31
 					 * @param string $image_size Image size. Default 'full'.
32 32
 					 */
33
-					$image_size = apply_filters( 'strip_attachment_size', 'full' );
33
+					$image_size = apply_filters('strip_attachment_size', 'full');
34 34
 
35
-					echo wp_get_attachment_image( get_the_ID(), $image_size );
35
+					echo wp_get_attachment_image(get_the_ID(), $image_size);
36 36
 
37 37
 					?>
38 38
 
@@ -41,18 +41,18 @@  discard block
 block discarded – undo
41 41
 		<?php // image navigation. ?>
42 42
 <nav role="navigation" id="image-navigation" class="image-navigation">
43 43
 
44
-				<div class="previous"><?php previous_image_link( false, __( '<span class="meta-nav">&larr;</span> <span class="text-nav">Previous panel</span>', 'strip' ) ); ?></div>
45
-				<div class="next"><?php next_image_link( false, __( '<span class="meta-nav">&rarr;</span> <span class="text-nav">Next panel</span>', 'strip' ) ); ?></div>
44
+				<div class="previous"><?php previous_image_link(false, __('<span class="meta-nav">&larr;</span> <span class="text-nav">Previous panel</span>', 'strip')); ?></div>
45
+				<div class="next"><?php next_image_link(false, __('<span class="meta-nav">&rarr;</span> <span class="text-nav">Next panel</span>', 'strip')); ?></div>
46 46
 
47 47
 				<nav class="post-parent-title">
48
-					<?php printf( '<a href="%s" class="post-parent-title">%s</a>',
49
-						esc_url( get_permalink( $post->post_parent ) ),
50
-						esc_html( get_the_title( $post->post_parent ) )
48
+					<?php printf('<a href="%s" class="post-parent-title">%s</a>',
49
+						esc_url(get_permalink($post->post_parent)),
50
+						esc_html(get_the_title($post->post_parent))
51 51
 					); ?>
52 52
 				</nav>
53 53
 </nav><!-- #image-navigation -->
54 54
 
55
-		<?php if ( has_excerpt() ) : ?>
55
+		<?php if (has_excerpt()) : ?>
56 56
 					<div class="entry-caption">
57 57
 		<?php the_excerpt(); ?>
58 58
 					</div><!-- .entry-caption -->
@@ -67,4 +67,4 @@  discard block
 block discarded – undo
67 67
 		</div><!-- #content -->
68 68
 	</div><!-- #primary -->
69 69
 
70
-<?php get_footer( 'lite' ); ?>
70
+<?php get_footer('lite'); ?>
Please login to merge, or discard this patch.
functions.php 1 patch
Spacing   +227 added lines, -227 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@  discard block
 block discarded – undo
9 9
  */
10 10
 
11 11
 	// Set the content width based on the theme's design and stylesheet.
12
-if ( ! isset( $content_width ) ) {
12
+if ( ! isset($content_width)) {
13 13
 		$content_width = 1920;
14 14
 } /* pixels */
15 15
 
16
-if ( ! function_exists( 'strip_setup' ) ) :
16
+if ( ! function_exists('strip_setup')) :
17 17
 	/**
18 18
 	 * Sets up theme defaults and registers support for various WordPress features.
19 19
 	 *
@@ -28,29 +28,29 @@  discard block
 block discarded – undo
28 28
 * adding custom login css
29 29
 * changing text in footer of admin
30 30
 */
31
-		require_once( 'assets/admin.php' );
31
+		require_once('assets/admin.php');
32 32
 		/**
33 33
 * Make theme available for translation
34 34
 * Translations can be filed in the /languages/ directory
35 35
 * If you're building a theme based on strip, use a find and replace
36 36
 * to change 'strip' to the name of your theme in all the template files
37 37
 */
38
-		load_theme_textdomain( 'strip', get_template_directory() . '/languages' );
38
+		load_theme_textdomain('strip', get_template_directory() . '/languages');
39 39
 
40 40
 		// Add default posts and comments RSS feed links to head.
41
-		add_theme_support( 'automatic-feed-links' );
41
+		add_theme_support('automatic-feed-links');
42 42
 
43 43
 		/**
44 44
 * Enable support for title-tag. Allows themes to add document title tag to HTML <head> (since version 4.1.).
45 45
 */
46
-		add_theme_support( 'title-tag' );
46
+		add_theme_support('title-tag');
47 47
 
48 48
 		/**
49 49
 * Enable support for custom logo.
50 50
 *
51 51
 * @since strip 1.0
52 52
 */
53
-		add_theme_support( 'custom-logo', array(
53
+		add_theme_support('custom-logo', array(
54 54
 			'height'      => 156,
55 55
 			'width'       => 312,
56 56
 			'flex-height' => true,
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
 *
64 64
 * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
65 65
 */
66
-		add_theme_support( 'post-thumbnails' );
67
-		add_image_size( 'stri-featured-image', 1920, 960, true );
68
-		add_image_size( 'strip-large', 1920, 960, true ); // cropped.
69
-		add_image_size( 'strip-medium', 624, 312, true ); // cropped.
70
-		add_image_size( 'strip-thumbnail', 312, 156, true ); // cropped.
66
+		add_theme_support('post-thumbnails');
67
+		add_image_size('stri-featured-image', 1920, 960, true);
68
+		add_image_size('strip-large', 1920, 960, true); // cropped.
69
+		add_image_size('strip-medium', 624, 312, true); // cropped.
70
+		add_image_size('strip-thumbnail', 312, 156, true); // cropped.
71 71
 
72 72
 		/**
73 73
 		 * Remove paragraph tags around images.
@@ -78,35 +78,35 @@  discard block
 block discarded – undo
78 78
 		 * @see http://codex.wordpress.org/Function_Reference/wpautop gets the same result
79 79
 		 * but it removes line blocks: remove_filter( 'the_content', 'wpautop' );
80 80
 		 */
81
-		function filter_ptags_on_images( $content ) {
82
-			return preg_replace( '/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content );
81
+		function filter_ptags_on_images($content) {
82
+			return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content);
83 83
 		}
84
-		add_filter( 'the_content', 'filter_ptags_on_images' );
84
+		add_filter('the_content', 'filter_ptags_on_images');
85 85
 
86 86
 		/**
87 87
 	 	* This theme uses wp_nav_menu() in one location.
88 88
 	 	*/
89 89
 		register_nav_menus(array(
90
-			'primary' => __( 'Primary Menu', 'strip' ),
90
+			'primary' => __('Primary Menu', 'strip'),
91 91
 		));
92 92
 
93 93
 		/*
94 94
 		* Switch default core markup for search form, comment form, and comments
95 95
 		* to output valid HTML5.
96 96
 		*/
97
-		add_theme_support( 'html5', array(
97
+		add_theme_support('html5', array(
98 98
 			'search-form',
99 99
 			'comment-form',
100 100
 			'comment-list',
101 101
 			'gallery',
102 102
 			'caption',
103 103
 			'widgets',
104
-		) );
104
+		));
105 105
 
106 106
 		/**
107 107
 	 * Enable support for Post Formats
108 108
 	 */
109
-		add_theme_support( 'post-formats', array(
109
+		add_theme_support('post-formats', array(
110 110
 			'image',
111 111
 			'video',
112 112
 			'quote',
@@ -114,13 +114,13 @@  discard block
 block discarded – undo
114 114
 			'gallery',
115 115
 			'audio',
116 116
 			'chat',
117
-		) );
117
+		));
118 118
 
119 119
 		// Setup the WordPress core custom background feature.
120 120
 		add_theme_support('custom-background', apply_filters('strip_custom_background_args', array(
121 121
 			'default-color' => 'ffffff',
122 122
 			'default-image' => '',
123
-		) ) );
123
+		)));
124 124
 	}
125 125
 
126 126
 	/**
@@ -130,22 +130,22 @@  discard block
 block discarded – undo
130 130
 	 * @link: http://cubiq.org/clean-up-and-optimize-wordpress-for-your-next-theme
131 131
 	 */
132 132
 	function strip_cleanup() {
133
-			remove_action( 'wp_head', 'wp_generator' );					// WP Version.
134
-			remove_action( 'wp_head', 'wlwmanifest_link' );
135
-			remove_action( 'wp_head', 'rsd_link' );
136
-			remove_action( 'wp_head', 'rel_canonical', 10, 0 );
137
-			remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
133
+			remove_action('wp_head', 'wp_generator'); // WP Version.
134
+			remove_action('wp_head', 'wlwmanifest_link');
135
+			remove_action('wp_head', 'rsd_link');
136
+			remove_action('wp_head', 'rel_canonical', 10, 0);
137
+			remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0);
138 138
 
139
-			remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );// Parent rel link.
140
-			remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );	// Start post rel link.
141
-			remove_action( 'wp_head', 'index_rel_link' );
139
+			remove_action('wp_head', 'parent_post_rel_link', 10, 0); // Parent rel link.
140
+			remove_action('wp_head', 'start_post_rel_link', 10, 0); // Start post rel link.
141
+			remove_action('wp_head', 'index_rel_link');
142 142
 
143
-			remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); // Adjacent post rel link.
143
+			remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0); // Adjacent post rel link.
144 144
 
145
-			add_filter( 'the_generator', '__return_false' );
145
+			add_filter('the_generator', '__return_false');
146 146
 
147
-			remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
148
-			remove_action( 'wp_print_styles', 'print_emoji_styles' );
147
+			remove_action('wp_head', 'print_emoji_detection_script', 7);
148
+			remove_action('wp_print_styles', 'print_emoji_styles');
149 149
 	}
150 150
 	/**
151 151
 	 * Cleanup head remove rss version
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
 	 * @param array $headers remove x pingback.
162 162
 	 * @since    1.1.3
163 163
 	 */
164
-	function strip_remove_x_pingback( $headers ) {
165
-		unset( $headers['X-Pingback'] );
164
+	function strip_remove_x_pingback($headers) {
165
+		unset($headers['X-Pingback']);
166 166
 		return $headers;
167 167
 	}
168 168
 
@@ -173,11 +173,11 @@  discard block
 block discarded – undo
173 173
 	 */
174 174
 	function strip_remove_comments_inline_styles() {
175 175
 		global $wp_widget_factory;
176
-		if ( has_filter( 'wp_head', 'wp_widget_recent_comments_style' ) ) {
177
-			remove_filter( 'wp_head', 'wp_widget_recent_comments_style' );
176
+		if (has_filter('wp_head', 'wp_widget_recent_comments_style')) {
177
+			remove_filter('wp_head', 'wp_widget_recent_comments_style');
178 178
 		}
179 179
 
180
-		remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
180
+		remove_action('wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style'));
181 181
 	}
182 182
 
183 183
 
@@ -185,22 +185,22 @@  discard block
 block discarded – undo
185 185
 	* This theme styles the visual editor to resemble the theme style,
186 186
 	* specifically font, colors, icons, and column width.
187 187
 	*/
188
-	add_editor_style( array( '/assets/css/editor-style.css', '/assets/fonts/fenix.css' ) );
188
+	add_editor_style(array('/assets/css/editor-style.css', '/assets/fonts/fenix.css'));
189 189
 
190 190
 	// Indicate widget sidebars can use selective refresh in the Customizer.
191 191
 	// See https://make.wordpress.org/core/2016/03/22/implementing-selective-refresh-support-for-widgets/ for detail.
192
-	add_theme_support( 'customize-selective-refresh-widgets' );
192
+	add_theme_support('customize-selective-refresh-widgets');
193 193
 endif; // strip_setup.
194
-add_action( 'after_setup_theme', 'strip_setup' );
194
+add_action('after_setup_theme', 'strip_setup');
195 195
 
196 196
 /**
197 197
  * Register widgetized area and update sidebar with default widgets
198 198
  */
199 199
 function strip_widgets_init() {
200 200
 	register_sidebar(array(
201
-		'name'          => __( 'Main Sidebar', 'strip' ),
201
+		'name'          => __('Main Sidebar', 'strip'),
202 202
 		'id'            => 'sidebar',
203
-		'description'   => __( 'The main body widget area', 'strip' ),
203
+		'description'   => __('The main body widget area', 'strip'),
204 204
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
205 205
 		'after_widget'	=> '</aside>',
206 206
 		'before_title'	=> '<h2 class="widget-title">',
@@ -208,10 +208,10 @@  discard block
 block discarded – undo
208 208
 	));
209 209
 
210 210
 	// First footer widget area, located in the footer. Empty by default.
211
-	register_sidebar( array(
212
-		'name'          => __( 'First Footer Widget', 'strip' ),
211
+	register_sidebar(array(
212
+		'name'          => __('First Footer Widget', 'strip'),
213 213
 		'id'            => 'first-footer-widget',
214
-		'description'   => __( 'The first footer widget', 'strip' ),
214
+		'description'   => __('The first footer widget', 'strip'),
215 215
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
216 216
 		'after_widget'	=> '</aside>',
217 217
 		'before_title'	=> '<h3 class="widget-title">',
@@ -220,9 +220,9 @@  discard block
 block discarded – undo
220 220
 
221 221
 	// Second Footer Widget Area, located in the footer. Empty by default.
222 222
 	register_sidebar(array(
223
-		'name'          => __( 'Second Footer Widget', 'strip' ),
223
+		'name'          => __('Second Footer Widget', 'strip'),
224 224
 		'id'            => 'second-footer-widget',
225
-		'description'   => __( 'The second footer widget', 'strip' ),
225
+		'description'   => __('The second footer widget', 'strip'),
226 226
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
227 227
 		'after_widget'	=> '</aside>',
228 228
 		'before_title'	=> '<h3 class="widget-title">',
@@ -231,9 +231,9 @@  discard block
 block discarded – undo
231 231
 
232 232
 	// Third Footer Widget Area, located in the footer. Empty by default.
233 233
 	register_sidebar(array(
234
-		'name'          => __( 'Third Footer Widget', 'strip' ),
234
+		'name'          => __('Third Footer Widget', 'strip'),
235 235
 		'id'            => 'third-footer-widget',
236
-		'description'   => __( 'The third footer widget', 'strip' ),
236
+		'description'   => __('The third footer widget', 'strip'),
237 237
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
238 238
 		'after_widget'	=> '</aside>',
239 239
 		'before_title'	=> '<h3 class="widget-title">',
@@ -242,9 +242,9 @@  discard block
 block discarded – undo
242 242
 
243 243
 	// Fourth Footer Widget Area, located in the footer. Empty by default.
244 244
 	register_sidebar(array(
245
-		'name'           => __( 'Fourth Footer Widget', 'strip' ),
245
+		'name'           => __('Fourth Footer Widget', 'strip'),
246 246
 		'id'             => 'fourth-footer-widget',
247
-		'description'    => __( 'The fourth footer widget', 'strip' ),
247
+		'description'    => __('The fourth footer widget', 'strip'),
248 248
 		'before_widget'  => '<aside id="%1$s" class="widget %2$s">',
249 249
 		'after_widget'	 => '</aside>',
250 250
 		'before_title'	 => '<h3 class="widget-title">',
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 	));
253 253
 
254 254
 }
255
-add_action( 'widgets_init', 'strip_widgets_init' );
255
+add_action('widgets_init', 'strip_widgets_init');
256 256
 
257 257
 /**
258 258
  * Handles JavaScript detection.
@@ -264,47 +264,47 @@  discard block
 block discarded – undo
264 264
 function strip_javascript_detection() {
265 265
 	echo "<script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>\n";
266 266
 }
267
-add_action( 'wp_head', 'strip_javascript_detection', 0 );
267
+add_action('wp_head', 'strip_javascript_detection', 0);
268 268
 
269 269
 /**
270 270
  * Enqueue_styles for custom fonts.
271 271
  */
272 272
 function strip_scripts() {
273 273
 	// add custom font here if any.
274
-	wp_enqueue_style( 'fenix', get_template_directory_uri() . '/assets/fonts/fenix.css', array(), null );
274
+	wp_enqueue_style('fenix', get_template_directory_uri() . '/assets/fonts/fenix.css', array(), null);
275 275
 
276
-	wp_enqueue_style( 'inconsolata', get_template_directory_uri() . '/assets/fonts/inconsolata.css', array(), null );
276
+	wp_enqueue_style('inconsolata', get_template_directory_uri() . '/assets/fonts/inconsolata.css', array(), null);
277 277
 
278 278
 	// Theme stylesheet.
279
-	wp_enqueue_style( 'strip-style', get_stylesheet_uri() );
279
+	wp_enqueue_style('strip-style', get_stylesheet_uri());
280 280
 
281 281
 	// Load the Internet Explorer specific stylesheet. Conditional stylesheet — tested and works with IE9 on Windows7.
282
-	wp_enqueue_style( 'strip-ie', get_template_directory_uri() . 'assets/css/ie.css', array( 'strip-style' ), '20160305' );
283
-	wp_style_add_data( 'strip-ie', 'conditional', 'lt IE 10' );
282
+	wp_enqueue_style('strip-ie', get_template_directory_uri() . 'assets/css/ie.css', array('strip-style'), '20160305');
283
+	wp_style_add_data('strip-ie', 'conditional', 'lt IE 10');
284 284
 
285
-	if ( has_nav_menu( 'primary' ) ) {
286
-		wp_enqueue_script( 'strip-navigation', get_template_directory_uri() . '/assets/js/min/navigation-min.js', array(), '1.0', true );
285
+	if (has_nav_menu('primary')) {
286
+		wp_enqueue_script('strip-navigation', get_template_directory_uri() . '/assets/js/min/navigation-min.js', array(), '1.0', true);
287 287
 	}
288 288
 
289 289
 	// Load the html5 shiv.
290
-	wp_enqueue_script( 'strip-html5', get_template_directory_uri() . '/assets/js/min/html5-min.js', array(), '3.7.3' );
291
-	wp_script_add_data( 'strip-html5', 'conditional', 'lt IE 9' );
290
+	wp_enqueue_script('strip-html5', get_template_directory_uri() . '/assets/js/min/html5-min.js', array(), '3.7.3');
291
+	wp_script_add_data('strip-html5', 'conditional', 'lt IE 9');
292 292
 
293
-	wp_enqueue_script( 'strip-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/min/skip-link-focus-fix-min.js', array(), '1.0', true );
293
+	wp_enqueue_script('strip-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/min/skip-link-focus-fix-min.js', array(), '1.0', true);
294 294
 
295 295
 	// toggle comments js.
296
-	wp_enqueue_script( 'strip-toggle-comments', get_template_directory_uri() . '/assets/js/min/toggle-comments-min.js', array( 'jquery' ), '1.2', true );
296
+	wp_enqueue_script('strip-toggle-comments', get_template_directory_uri() . '/assets/js/min/toggle-comments-min.js', array('jquery'), '1.2', true);
297 297
 
298
-	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
299
-		wp_enqueue_script( 'comment-reply' );
298
+	if (is_singular() && comments_open() && get_option('thread_comments')) {
299
+		wp_enqueue_script('comment-reply');
300 300
 
301
-		if ( is_single() && wp_attachment_is_image() ) {
302
-			wp_enqueue_script( 'strip-keyboard-image-navigation', get_template_directory_uri() . '/assets/js/min/keyboard-image-navigation-min.js', array( 'jquery' ), '20160412', true );
301
+		if (is_single() && wp_attachment_is_image()) {
302
+			wp_enqueue_script('strip-keyboard-image-navigation', get_template_directory_uri() . '/assets/js/min/keyboard-image-navigation-min.js', array('jquery'), '20160412', true);
303 303
 		}
304 304
 	}
305 305
 }
306 306
 
307
-add_action( 'wp_enqueue_scripts', 'strip_scripts' );
307
+add_action('wp_enqueue_scripts', 'strip_scripts');
308 308
 
309 309
 /**
310 310
  * Implement the Custom Header feature.
@@ -331,14 +331,14 @@  discard block
 block discarded – undo
331 331
  */
332 332
 require get_template_directory() . '/inc/jetpack.php';
333 333
 
334
-add_action( 'wp_enqueue_scripts', 'enqueue_royal_sliders' );
334
+add_action('wp_enqueue_scripts', 'enqueue_royal_sliders');
335 335
 /**
336 336
  * Register RoyalSLider
337 337
  */
338 338
 function enqueue_royal_sliders() {
339
-	if ( function_exists( 'register_new_royalslider_files' ) ) {
339
+	if (function_exists('register_new_royalslider_files')) {
340 340
 		// you could try this: if ( is_single() && is_archive() ) { but you don't really need it.
341
-			register_new_royalslider_files( 1 ); // place register_new_royalslider_files function here, 1 is your slider's configuration number
341
+			register_new_royalslider_files(1); // place register_new_royalslider_files function here, 1 is your slider's configuration number
342 342
 		// add } if use is_single etc.
343 343
 	}
344 344
 }
@@ -353,22 +353,22 @@  discard block
 block discarded – undo
353 353
 function get_first_image() {
354 354
 	global $post;
355 355
 	$first_img = '';
356
-	preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', do_shortcode( $post->post_content, 'gallery' ), $matches );
357
-	  $first_img = isset( $matches[1][0] ) ? $matches[1][0] : null;
356
+	preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', do_shortcode($post->post_content, 'gallery'), $matches);
357
+	  $first_img = isset($matches[1][0]) ? $matches[1][0] : null;
358 358
 
359
-	if ( empty( $first_img ) ) {
359
+	if (empty($first_img)) {
360 360
 			return get_template_directory_uri() . '/assets/images/empty.png'; // path to default image.
361 361
 	}
362 362
 
363 363
 		// Now we have the $first_img but we want the thumbnail of that image.
364
-		$explode = explode( '.', $first_img );
365
-		$count = count( $explode );
364
+		$explode = explode('.', $first_img);
365
+		$count = count($explode);
366 366
 		$size = '-624x312'; // Panel ratio (2:1) 312x156 for lighther page, 624x312 for retina; use add_image_size() and Force Regenerate Thumbnails plugin when changing sizes.
367
-		$explode[ $count -2 ] = $explode[ $count -2 ] . '' . $size;
368
-		$thumb_img = implode( '.', $explode );
367
+		$explode[$count - 2] = $explode[$count - 2] . '' . $size;
368
+		$thumb_img = implode('.', $explode);
369 369
 		return $thumb_img;
370 370
 }
371
-	add_filter( 'get_first_image', 'thumbnail' );
371
+	add_filter('get_first_image', 'thumbnail');
372 372
 
373 373
 /**
374 374
  * Register Custom Post Type for comics
@@ -376,26 +376,26 @@  discard block
 block discarded – undo
376 376
 function comic_post_type() {
377 377
 
378 378
 	$labels = array(
379
-		'name'                       => _x( 'Comics', 'Post Type General Name', 'strip' ),
380
-		'singular_name'              => _x( 'Comic', 'Post Type Singular Name', 'strip' ),
381
-		'menu_name'                  => _x( 'Comics', 'admin menu', 'strip' ),
382
-		'name_admin_bar'             => _x( 'Comic', 'add new on admin bar', 'strip' ),
383
-		'archives'             			 => __( 'Item Archives', 'strip' ),
384
-		'attributes'           			 => __( 'Item Attributes', 'strip' ),
385
-		'parent_item_colon'	         => __( 'Parent Comic:', 'strip' ),
386
-		'all_items'                  => __( 'All Comics', 'strip' ),
387
-		'add_new_item'               => __( 'Add New Comic', 'strip' ),
388
-		'add_new'                    => __( 'Add New Comic', 'strip' ),
389
-		'new_item'                   => __( 'New Comic', 'strip' ),
390
-		'edit_item'                  => __( 'Edit Comic', 'strip' ),
391
-		'update_item'                => __( 'Update Comic', 'strip' ),
392
-		'view_item'                  => __( 'View Comic', 'strip' ),
393
-		'search_items'               => __( 'Search Item', 'strip' ),
394
-		'not_found'                  => __( 'No Comics found', 'strip' ),
395
-		'not_found_in_trash'         => __( 'No Comics found in Trash', 'strip' ),
396
-		'items_list'                 => __( 'Comics list', 'strip' ),
397
-		'items_list_navigation'      => __( 'Comics list navigation', 'strip' ),
398
-		'filter_items_list'          => __( 'Filter Comics list', 'strip' ),
379
+		'name'                       => _x('Comics', 'Post Type General Name', 'strip'),
380
+		'singular_name'              => _x('Comic', 'Post Type Singular Name', 'strip'),
381
+		'menu_name'                  => _x('Comics', 'admin menu', 'strip'),
382
+		'name_admin_bar'             => _x('Comic', 'add new on admin bar', 'strip'),
383
+		'archives'             			 => __('Item Archives', 'strip'),
384
+		'attributes'           			 => __('Item Attributes', 'strip'),
385
+		'parent_item_colon'	         => __('Parent Comic:', 'strip'),
386
+		'all_items'                  => __('All Comics', 'strip'),
387
+		'add_new_item'               => __('Add New Comic', 'strip'),
388
+		'add_new'                    => __('Add New Comic', 'strip'),
389
+		'new_item'                   => __('New Comic', 'strip'),
390
+		'edit_item'                  => __('Edit Comic', 'strip'),
391
+		'update_item'                => __('Update Comic', 'strip'),
392
+		'view_item'                  => __('View Comic', 'strip'),
393
+		'search_items'               => __('Search Item', 'strip'),
394
+		'not_found'                  => __('No Comics found', 'strip'),
395
+		'not_found_in_trash'         => __('No Comics found in Trash', 'strip'),
396
+		'items_list'                 => __('Comics list', 'strip'),
397
+		'items_list_navigation'      => __('Comics list navigation', 'strip'),
398
+		'filter_items_list'          => __('Filter Comics list', 'strip'),
399 399
 	);
400 400
 
401 401
 	$supports = array(
@@ -412,11 +412,11 @@  discard block
 block discarded – undo
412 412
 	);
413 413
 
414 414
 	$args = array(
415
-		'label'                      => __( 'Comic', 'strip' ),
416
-		'description'                => __( 'Publish Comics and Webcomics', 'strip' ),
415
+		'label'                      => __('Comic', 'strip'),
416
+		'description'                => __('Publish Comics and Webcomics', 'strip'),
417 417
 		'labels'                     => $labels,
418 418
 		'supports'                   => $supports,
419
-		'taxonomies'                 => array( 'story', 'story_term', 'draft' ),
419
+		'taxonomies'                 => array('story', 'story_term', 'draft'),
420 420
 		'hierarchical'               => true,
421 421
 		'public'                     => true,
422 422
 		'show_ui'                    => true,
@@ -429,40 +429,40 @@  discard block
 block discarded – undo
429 429
 		'has_archive'                => true,
430 430
 		'feeds'                      => true,
431 431
 		'exclude_from_search'        => false,
432
-		'rewrite'                    => array( 'slug' => 'stories', 'with_front' => true ),
432
+		'rewrite'                    => array('slug' => 'stories', 'with_front' => true),
433 433
 		'publicly_queryable'	       => true,
434 434
 		'capability_type'            => 'post',
435 435
 	);
436
-	register_post_type( 'comic', $args );
436
+	register_post_type('comic', $args);
437 437
 }
438 438
 
439 439
 // Hook into the 'init' action.
440
-add_action( 'init', 'comic_post_type', 0 ); // End of register_cpt_comic().
440
+add_action('init', 'comic_post_type', 0); // End of register_cpt_comic().
441 441
 
442 442
 	/**
443 443
 	 * Register Custom Taxonomy 'story'
444 444
 	 */
445 445
 function comic_story_taxonomy() {
446 446
 	$labels = array(
447
-		'name'                       => _x( 'Comic Story', 'Taxonomy General Name', 'strip' ),
448
-		'singular_name'              => _x( 'Comic Story', 'Taxonomy Singular Name', 'strip' ),
449
-		'menu_name'                  => __( 'Comic Stories', 'strip' ),
450
-		'all_items'                  => __( 'All Comic Stories', 'strip' ),
451
-		'parent_item'                => __( 'Parent Story', 'strip' ),
452
-		'parent_item_colon'          => __( 'Parent Story:', 'strip' ),
453
-		'new_item_name'              => __( 'New Comic Story', 'strip' ),
454
-		'add_new_item'               => __( 'Add New Story', 'strip' ),
455
-		'edit_item'                  => __( 'Edit Story', 'strip' ),
456
-		'update_item'                => __( 'Update Story', 'strip' ),
457
-		'view_item'                  => __( 'View Item', 'strip' ),
458
-		'separate_items_with_commas' => __( 'Separate stories with commas', 'strip' ),
459
-		'add_or_remove_items'        => __( 'Add or Remove Stories', 'strip' ),
460
-		'choose_from_most_used'      => __( 'Choose from the most used stories', 'strip' ),
461
-		'popular_items'              => __( 'Popular comic stories', 'strip' ),
462
-		'search_items'               => __( 'Search Stories', 'strip' ),
463
-		'not_found'                  => __( 'No comic Stories found', 'strip' ),
464
-		'items_list'                 => __( 'Comic Stories list', 'strip' ),
465
-		'items_list_navigation'      => __( 'Comic Stories list navigation', 'strip' ),
447
+		'name'                       => _x('Comic Story', 'Taxonomy General Name', 'strip'),
448
+		'singular_name'              => _x('Comic Story', 'Taxonomy Singular Name', 'strip'),
449
+		'menu_name'                  => __('Comic Stories', 'strip'),
450
+		'all_items'                  => __('All Comic Stories', 'strip'),
451
+		'parent_item'                => __('Parent Story', 'strip'),
452
+		'parent_item_colon'          => __('Parent Story:', 'strip'),
453
+		'new_item_name'              => __('New Comic Story', 'strip'),
454
+		'add_new_item'               => __('Add New Story', 'strip'),
455
+		'edit_item'                  => __('Edit Story', 'strip'),
456
+		'update_item'                => __('Update Story', 'strip'),
457
+		'view_item'                  => __('View Item', 'strip'),
458
+		'separate_items_with_commas' => __('Separate stories with commas', 'strip'),
459
+		'add_or_remove_items'        => __('Add or Remove Stories', 'strip'),
460
+		'choose_from_most_used'      => __('Choose from the most used stories', 'strip'),
461
+		'popular_items'              => __('Popular comic stories', 'strip'),
462
+		'search_items'               => __('Search Stories', 'strip'),
463
+		'not_found'                  => __('No comic Stories found', 'strip'),
464
+		'items_list'                 => __('Comic Stories list', 'strip'),
465
+		'items_list_navigation'      => __('Comic Stories list navigation', 'strip'),
466 466
 	);
467 467
 	$args = array(
468 468
 		'labels'                     => $labels,
@@ -474,14 +474,14 @@  discard block
 block discarded – undo
474 474
 		'show_in_nav_menus'          => true,
475 475
 		'show_tagcloud'              => true,
476 476
 		'query_var'	                 => true,
477
-		'rewrite'                    => array( 'slug' => 'story' ),
477
+		'rewrite'                    => array('slug' => 'story'),
478 478
 	);
479
-	register_taxonomy( 'story', array( 'comic' ), $args );
480
-	register_taxonomy_for_object_type( 'story', 'comic' );
479
+	register_taxonomy('story', array('comic'), $args);
480
+	register_taxonomy_for_object_type('story', 'comic');
481 481
 }
482 482
 
483 483
 // Hook into the 'init' action.
484
-add_action( 'init', 'comic_story_taxonomy', 0 );
484
+add_action('init', 'comic_story_taxonomy', 0);
485 485
 
486 486
 /**
487 487
  * Function strip rewrite rules.
@@ -490,31 +490,31 @@  discard block
 block discarded – undo
490 490
 	flush_rewrite_rules();
491 491
 }
492 492
 /* Flush rewrite rules for custom post types. */
493
-add_action( 'after_switch_theme', 'strip_rewrite_rules' );
493
+add_action('after_switch_theme', 'strip_rewrite_rules');
494 494
 
495 495
 // Add Print taxonomy, NOT hierarchical (like tags)
496 496
 // Register Custom Taxonomy.
497 497
 	$labels = array(
498
-		'name'                       => _x( 'Prints', 'Taxonomy General Name', 'strip' ),
499
-		'singular_name'              => _x( 'Print', 'Taxonomy Singular Name', 'strip' ),
500
-		'menu_name'                  => __( 'Print', 'strip' ),
501
-		'all_items'                  => __( 'All Prints', 'strip' ),
502
-		'parent_item'                => __( 'Parent Print', 'strip' ),
503
-		'parent_item_colon'          => __( 'Parent Print:', 'strip' ),
504
-		'new_item_name'              => __( 'New Print Name', 'strip' ),
505
-		'add_new_item'               => __( 'Add New Print', 'strip' ),
506
-		'edit_item'                  => __( 'Edit Print', 'strip' ),
507
-		'update_item'                => __( 'Update Pring', 'strip' ),
508
-		'view_item'                  => __( 'View Print', 'strip' ),
509
-		'separate_items_with_commas' => __( 'Separate prints with commas', 'strip' ),
510
-		'add_or_remove_items'        => __( 'Add or remove prints', 'strip' ),
511
-		'choose_from_most_used'      => __( 'Choose from the most used', 'strip' ),
512
-		'popular_items'              => __( 'Popular Prints', 'strip' ),
513
-		'search_items'               => __( 'Search Prints', 'strip' ),
514
-		'not_found'                  => __( 'Not Found', 'strip' ),
515
-		'no_terms'                   => __( 'No prints', 'strip' ),
516
-		'items_list'                 => __( 'Prints list', 'strip' ),
517
-		'items_list_navigation'      => __( 'Prints list navigation', 'strip' ),
498
+		'name'                       => _x('Prints', 'Taxonomy General Name', 'strip'),
499
+		'singular_name'              => _x('Print', 'Taxonomy Singular Name', 'strip'),
500
+		'menu_name'                  => __('Print', 'strip'),
501
+		'all_items'                  => __('All Prints', 'strip'),
502
+		'parent_item'                => __('Parent Print', 'strip'),
503
+		'parent_item_colon'          => __('Parent Print:', 'strip'),
504
+		'new_item_name'              => __('New Print Name', 'strip'),
505
+		'add_new_item'               => __('Add New Print', 'strip'),
506
+		'edit_item'                  => __('Edit Print', 'strip'),
507
+		'update_item'                => __('Update Pring', 'strip'),
508
+		'view_item'                  => __('View Print', 'strip'),
509
+		'separate_items_with_commas' => __('Separate prints with commas', 'strip'),
510
+		'add_or_remove_items'        => __('Add or remove prints', 'strip'),
511
+		'choose_from_most_used'      => __('Choose from the most used', 'strip'),
512
+		'popular_items'              => __('Popular Prints', 'strip'),
513
+		'search_items'               => __('Search Prints', 'strip'),
514
+		'not_found'                  => __('Not Found', 'strip'),
515
+		'no_terms'                   => __('No prints', 'strip'),
516
+		'items_list'                 => __('Prints list', 'strip'),
517
+		'items_list_navigation'      => __('Prints list navigation', 'strip'),
518 518
 	);
519 519
 
520 520
 	$args = array(
@@ -526,21 +526,21 @@  discard block
 block discarded – undo
526 526
 		'show_in_nav_menus'          => true,
527 527
 		'show_tagcloud'              => true,
528 528
 	);
529
-	register_taxonomy( 'print', array( 'comic' ), $args );
529
+	register_taxonomy('print', array('comic'), $args);
530 530
 
531 531
 	/*
532 532
 	* WooCommerce Hooks
533 533
 	* Layout
534 534
 	*/
535
-	remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
536
-	remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
537
-	remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 );
538
-	remove_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );
539
-	remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
540
-	remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
535
+	remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
536
+	remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
537
+	remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
538
+	remove_action('woocommerce_after_shop_loop', 'woocommerce_pagination', 10);
539
+	remove_action('woocommerce_before_shop_loop', 'woocommerce_result_count', 20);
540
+	remove_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30);
541 541
 
542
-	add_action( 'woocommerce_before_main_content', 'strip_wrapper_start', 10 );
543
-	add_action( 'woocommerce_after_main_content', 'strip_wrapper_end', 10 );
542
+	add_action('woocommerce_before_main_content', 'strip_wrapper_start', 10);
543
+	add_action('woocommerce_after_main_content', 'strip_wrapper_end', 10);
544 544
 
545 545
 		 /**
546 546
 		  * WooCommerce wrapper
@@ -556,13 +556,13 @@  discard block
 block discarded – undo
556 556
 		echo '</section>';
557 557
 	}
558 558
 
559
-	add_action( 'after_setup_theme', 'woocommerce_support' );
559
+	add_action('after_setup_theme', 'woocommerce_support');
560 560
 	/**
561 561
 	 * Add WooCommerce support
562 562
 	 * https://docs.woothemes.com/document/third-party-custom-theme-compatibility/*
563 563
 	 */
564 564
 	function woocommerce_support() {
565
-		add_theme_support( 'woocommerce' );
565
+		add_theme_support('woocommerce');
566 566
 	}
567 567
 
568 568
 	/**
@@ -570,13 +570,13 @@  discard block
 block discarded – undo
570 570
 	 */
571 571
 	function wp_enqueue_woocommerce_style() {
572 572
 
573
-			wp_register_style( 'strip-woocommerce', get_template_directory_uri() . '/assets/css/woocommerce-min.css' );
574
-		if ( class_exists( 'woocommerce' ) ) {
575
-			wp_enqueue_style( 'strip-woocommerce' );
573
+			wp_register_style('strip-woocommerce', get_template_directory_uri() . '/assets/css/woocommerce-min.css');
574
+		if (class_exists('woocommerce')) {
575
+			wp_enqueue_style('strip-woocommerce');
576 576
 		}
577 577
 	}
578 578
 
579
-	add_action( 'wp_enqueue_scripts', 'wp_enqueue_woocommerce_style' );
579
+	add_action('wp_enqueue_scripts', 'wp_enqueue_woocommerce_style');
580 580
 
581 581
 	/**
582 582
 * Optimize WooCommerce Scripts
@@ -587,53 +587,53 @@  discard block
 block discarded – undo
587 587
 * @link https://gist.github.com/DevinWalker/7621777
588 588
 * @link http://dessky.com/blog/disable-woocommerce-scripts-and-styles/
589 589
 */
590
-	add_action( 'wp_enqueue_scripts', 'strip_manage_woocommerce_styles', 99 );
590
+	add_action('wp_enqueue_scripts', 'strip_manage_woocommerce_styles', 99);
591 591
 
592 592
 	/**
593 593
 	 * Remove some WooCommerce queries.
594 594
 	 */
595 595
 	function strip_manage_woocommerce_styles() {
596 596
 		// remove generator meta tag.
597
-		remove_action( 'wp_head', array( 'woocommerce', 'generator' ) ); // this line when used with $GLOBALS['woocommerce'] prompts an error when Woo is deactivated though.
597
+		remove_action('wp_head', array('woocommerce', 'generator')); // this line when used with $GLOBALS['woocommerce'] prompts an error when Woo is deactivated though.
598 598
 		// first check that woo exists to prevent fatal errors.
599
-		if ( function_exists( 'strip_is_woocommerce_activated' ) ) {
599
+		if (function_exists('strip_is_woocommerce_activated')) {
600 600
 			// dequeue scripts and styles, unless we're in the store.
601
-			if ( ! is_woocommerce() && ! is_cart() && ! is_checkout() ) {
602
-				wp_dequeue_style( 'woocommerce_frontend_styles' );
603
-				wp_dequeue_style( 'woocommerce-general' );
604
-				wp_dequeue_style( 'woocommerce-layout' );
605
-				wp_dequeue_style( 'woocommerce-smallscreen' );
606
-				wp_dequeue_style( 'woocommerce_fancybox_styles' );
607
-				wp_dequeue_style( 'woocommerce_chosen_styles' );
608
-				wp_dequeue_style( 'woocommerce_prettyPhoto_css' );
609
-				wp_dequeue_style( 'select2' );
610
-				wp_dequeue_style( 'strip-woocommerce' ); // the theme's CSS overwrite.
611
-				wp_dequeue_script( 'wc-add-payment-method' );
612
-				wp_dequeue_script( 'wc-lost-password' );
613
-				wp_dequeue_script( 'wc_price_slider' );
614
-				wp_dequeue_script( 'wc-single-product' );
615
-				wp_dequeue_script( 'wc-add-to-cart' );
616
-				wp_dequeue_script( 'wc-cart-fragments' );
617
-				wp_dequeue_script( 'wc-credit-card-form' );
618
-				wp_dequeue_script( 'wc-checkout' );
619
-				wp_dequeue_script( 'wc-add-to-cart-variation' );
620
-				wp_dequeue_script( 'wc-single-product' );
621
-				wp_dequeue_script( 'wc-cart' );
622
-				wp_dequeue_script( 'wc-chosen' );
623
-				wp_dequeue_script( 'woocommerce' );
624
-				wp_dequeue_script( 'jquery-cookie' );
625
-				wp_dequeue_script( 'prettyPhoto' );
626
-				wp_dequeue_script( 'prettyPhoto-init' );
627
-				wp_dequeue_script( 'jquery-blockui' );
628
-				wp_dequeue_script( 'jquery-placeholder' );
629
-				wp_dequeue_script( 'jquery-payment' );
630
-				wp_dequeue_script( 'fancybox' );
631
-				wp_dequeue_script( 'jqueryui' );
601
+			if ( ! is_woocommerce() && ! is_cart() && ! is_checkout()) {
602
+				wp_dequeue_style('woocommerce_frontend_styles');
603
+				wp_dequeue_style('woocommerce-general');
604
+				wp_dequeue_style('woocommerce-layout');
605
+				wp_dequeue_style('woocommerce-smallscreen');
606
+				wp_dequeue_style('woocommerce_fancybox_styles');
607
+				wp_dequeue_style('woocommerce_chosen_styles');
608
+				wp_dequeue_style('woocommerce_prettyPhoto_css');
609
+				wp_dequeue_style('select2');
610
+				wp_dequeue_style('strip-woocommerce'); // the theme's CSS overwrite.
611
+				wp_dequeue_script('wc-add-payment-method');
612
+				wp_dequeue_script('wc-lost-password');
613
+				wp_dequeue_script('wc_price_slider');
614
+				wp_dequeue_script('wc-single-product');
615
+				wp_dequeue_script('wc-add-to-cart');
616
+				wp_dequeue_script('wc-cart-fragments');
617
+				wp_dequeue_script('wc-credit-card-form');
618
+				wp_dequeue_script('wc-checkout');
619
+				wp_dequeue_script('wc-add-to-cart-variation');
620
+				wp_dequeue_script('wc-single-product');
621
+				wp_dequeue_script('wc-cart');
622
+				wp_dequeue_script('wc-chosen');
623
+				wp_dequeue_script('woocommerce');
624
+				wp_dequeue_script('jquery-cookie');
625
+				wp_dequeue_script('prettyPhoto');
626
+				wp_dequeue_script('prettyPhoto-init');
627
+				wp_dequeue_script('jquery-blockui');
628
+				wp_dequeue_script('jquery-placeholder');
629
+				wp_dequeue_script('jquery-payment');
630
+				wp_dequeue_script('fancybox');
631
+				wp_dequeue_script('jqueryui');
632 632
 			}
633 633
 		}
634 634
 	}
635 635
 
636
-	add_action( 'pre_get_posts', 'strip_set_posts_per_page' );
636
+	add_action('pre_get_posts', 'strip_set_posts_per_page');
637 637
 	/**
638 638
 	 * Set posts, WooCommerce products & comics number per archive page
639 639
 	 * Fixes 404 error on pagination due to CTP conflicting with WordPress posts_per_page default
@@ -642,28 +642,28 @@  discard block
 block discarded – undo
642 642
 	 * @param string $query strip_set_posts_per_page.
643 643
 	 * @return the posts per page.
644 644
 	 */
645
-	function strip_set_posts_per_page( $query ) {
645
+	function strip_set_posts_per_page($query) {
646 646
 		  global $wp_the_query;
647
-		if (  ( $query === $wp_the_query ) && ( is_home() ) && ( is_search() ) ) {
648
-			$wp_the_query->set( 'post_type', array( 'post', 'comic', 'posts_per_page', 12 ) );
647
+		if (($query === $wp_the_query) && (is_home()) && (is_search())) {
648
+			$wp_the_query->set('post_type', array('post', 'comic', 'posts_per_page', 12));
649 649
 		}
650
-		if ( ( $query === $wp_the_query ) && ( is_post_type_archive( 'product' ) ) ) {
651
-			$wp_the_query->set( 'posts_per_page', 4 );
652
-		} elseif ( ( $query === $wp_the_query ) && ( is_archive() ) && ( is_tax( 'story' ) ) ) {
653
-			$wp_the_query->set( 'posts_per_page', 3 );
650
+		if (($query === $wp_the_query) && (is_post_type_archive('product'))) {
651
+			$wp_the_query->set('posts_per_page', 4);
652
+		} elseif (($query === $wp_the_query) && (is_archive()) && (is_tax('story'))) {
653
+			$wp_the_query->set('posts_per_page', 3);
654 654
 		}
655 655
 		return $wp_the_query;
656 656
 	}
657 657
 
658
-	add_action( 'pre_get_posts', 'add_my_post_types_to_query' );
658
+	add_action('pre_get_posts', 'add_my_post_types_to_query');
659 659
 	/**
660 660
 	 * Show 'comics' post types on home page.
661 661
 	 *
662 662
 	 * @param string $query add_my_post_types_to_query.
663 663
 	 */
664
-	function add_my_post_types_to_query( $query ) {
665
-		if ( is_home() && $query->is_main_query() ) {
666
-			$query->set( 'post_type', array( 'post', 'page', 'comic' ) );
664
+	function add_my_post_types_to_query($query) {
665
+		if (is_home() && $query->is_main_query()) {
666
+			$query->set('post_type', array('post', 'page', 'comic'));
667 667
 
668 668
 		}
669 669
 		  return $query;
@@ -676,35 +676,35 @@  discard block
 block discarded – undo
676 676
 	 * @param	string $post_id set_default_object_terms.
677 677
 	 * @param	string $post set_default_object_terms.
678 678
 	 */
679
-	function set_default_object_terms( $post_id, $post ) {
680
-		if ( 'publish' === $post->post_status && 'comic' === $post->post_type ) {
679
+	function set_default_object_terms($post_id, $post) {
680
+		if ('publish' === $post->post_status && 'comic' === $post->post_type) {
681 681
 			$defaults = array(
682
-			'story' => array( 'draft' ),
682
+			'story' => array('draft'),
683 683
 			);
684
-			$taxonomies = get_object_taxonomies( $post->post_type );
685
-			foreach ( (array) $taxonomies as $taxonomy ) {
686
-				$terms = get_the_terms( $post_id, $taxonomy );
687
-				if ( empty( $terms ) && array_key_exists( $taxonomy, $defaults ) ) {
688
-					wp_set_object_terms( $post_id, $defaults[ $taxonomy ], $taxonomy );
684
+			$taxonomies = get_object_taxonomies($post->post_type);
685
+			foreach ((array) $taxonomies as $taxonomy) {
686
+				$terms = get_the_terms($post_id, $taxonomy);
687
+				if (empty($terms) && array_key_exists($taxonomy, $defaults)) {
688
+					wp_set_object_terms($post_id, $defaults[$taxonomy], $taxonomy);
689 689
 				}
690 690
 			}
691 691
 		}
692 692
 	}
693
-	add_action( 'save_post', 'set_default_object_terms', 0, 2 );
693
+	add_action('save_post', 'set_default_object_terms', 0, 2);
694 694
 
695 695
 	/**
696 696
 	 * Remove jquery migrate $scripts for enhanced performance.
697 697
 	 *
698 698
 	 * @param strings $scripts remove_jquery_migrate.
699 699
 	 */
700
-	function remove_jquery_migrate( $scripts ) {
701
-		if ( is_admin() ) {
700
+	function remove_jquery_migrate($scripts) {
701
+		if (is_admin()) {
702 702
 			return;
703 703
 		}
704
-		 $scripts->remove( 'jquery' );
705
-		 $scripts->add( 'jquery', false, array( 'jquery-core' ), '1.10.2' );
704
+		 $scripts->remove('jquery');
705
+		 $scripts->add('jquery', false, array('jquery-core'), '1.10.2');
706 706
 	}
707
-		add_action( 'wp_default_scripts', 'remove_jquery_migrate' );
707
+		add_action('wp_default_scripts', 'remove_jquery_migrate');
708 708
 
709 709
 		/**
710 710
 		 * Remove login errors notices (security)
@@ -712,4 +712,4 @@  discard block
 block discarded – undo
712 712
 	function no_wordpress_errors() {
713 713
 		return 'Something is wrong!';
714 714
 	}
715
-		add_filter( 'login_errors', 'no_wordpress_errors' );
715
+		add_filter('login_errors', 'no_wordpress_errors');
Please login to merge, or discard this patch.