Permalink
Browse files

Fix build errors, add more obvious excludes

  • Loading branch information...
ronilaukkarinen committed Mar 6, 2018
1 parent 5d33032 commit 159c21f2b2df7e020b356d429480c900b0725a99
Showing with 22 additions and 10 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 functions.php
  3. +1 −1 inc/functions.php
  4. +3 −3 inc/nav-walker.php
  5. +1 −1 package.json
  6. +12 −1 phpcs.xml
  7. +1 −1 sass/layout/_typography.scss
  8. +1 −1 style.css
  9. +1 −1 template-parts/content-search.php
View
@@ -1,3 +1,4 @@
content/
move_out.sh
move_in.sh
theme_tests.sh
View
@@ -5,7 +5,7 @@
* @package air
*/
define( 'AIR_VERSION', '3.7.5' );
define( 'AIR_VERSION', '3.7.6' );
/**
* Requires.
View
@@ -50,7 +50,7 @@ function air_comments( $comment, $args, $depth ) {
<h4 class="comment-author"><?php echo get_comment_author_link(); ?></h4>
<?php if ( '0' === $comment->comment_approved ) : ?>
<p><em><?php _e( 'Your comment is awaiting approval.', 'air' ); ?></em></p>
<p><em><?php esc_html_e( 'Your comment is awaiting approval.', 'air' ); ?></em></p>
<?php endif; ?>
<p class="comment-time">
View
@@ -32,11 +32,11 @@ public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0
*/
if ( strcasecmp( $item->attr_title, 'divider' ) === 0 && 1 === $depth ) {
$output .= $indent . '<li class="divider">';
} else if ( strcasecmp( $item->title, 'divider') === 0 && 1 === $depth ) {
} else if ( strcasecmp( $item->title, 'divider' ) === 0 && 1 === $depth ) {
$output .= $indent . '<li class="divider">';
} else if ( strcasecmp( $item->attr_title, 'dropdown-header') === 0 && 1 === $depth ) {
} else if ( strcasecmp( $item->attr_title, 'dropdown-header' ) === 0 && 1 === $depth ) {
$output .= $indent . '<li class="dropdown-header">' . esc_attr( $item->title );
} else if ( strcasecmp($item->attr_title, 'disabled' ) === 0 ) {
} else if ( strcasecmp( $item->attr_title, 'disabled' ) === 0 ) {
$output .= $indent . '<li class="disabled"><a href="#">' . esc_attr( $item->title ) . '</a>';
} else {
$class_names = $value = '';
View
@@ -1,6 +1,6 @@
{
"name": "air",
"version": "3.7.5",
"version": "3.7.6",
"description": "A minimalist WordPress starter theme.",
"author": "Digitoimisto Dude Oy (moro@dude.fi)",
"devDependencies": {
View
@@ -32,25 +32,36 @@
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
<exclude name="WordPress.Arrays.ArrayIndentation.ItemNotAligned" />
<exclude name="WordPress.Arrays.ArrayIndentation.MultiLineArrayItemNotAligned" />
<exclude name="WordPress.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed" />
<!-- Don't require too strict inline commenting, it's a good thing to documentate, let's not make it frustrating -->
<exclude name="Squiz.Commenting.FunctionComment.WrongStyle" />
<exclude name="Squiz.Commenting.ClassComment.WrongStyle" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
<exclude name="Squiz.Commenting.FunctionComment.Missing" />
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
<exclude name="Squiz.Commenting.InlineComment.SpacingAfter" />
<exclude name="Squiz.Commenting.FileComment.Missing" />
<exclude name="Squiz.Commenting.LongConditionClosingComment.Missing" />
<!-- General code style related excludes -->
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" />
<exclude name="Squiz.PHP.EmbeddedPhp.MultipleStatements" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterOpen" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeEnd" />
<exclude name="Generic.Formatting.DisallowMultipleStatements.SameLine" />
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeKeyFound" />
<!-- General WordPress stuff we like to overrule -->
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<!-- Very strict VIP rules not needed -->
<!-- Very strict VIP/discouraged rules that are not needed -->
<exclude name="WordPress.VIP.RestrictedFunctions" />
<exclude name="WordPress.VIP.AdminBarRemoval.RemovalDetected" />
<exclude name="WordPress.VIP.OrderByRand" />
<exclude name="WordPress.VIP.OrderByRand.orderby" />
<exclude name="WordPress.XSS.EscapeOutput.OutputNotEscaped" />
<exclude name="WordPress.Functions.DontExtract.extract_extract" />
<!-- Translations related, not always necessary, too strict -->
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
@@ -447,4 +447,4 @@ pre {
word-break: break-all;
word-wrap: break-word;
margin-bottom: 2rem;
}
}
View
@@ -4,7 +4,7 @@ Theme URI: https://github.com/digitoimistodude/air
Author: Digitoimisto Dude Oy
Author URI: https://www.dude.fi
Description: A minimalist WordPress starter theme.
Version: 3.7.5
Version: 3.7.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: air
@@ -15,7 +15,7 @@
<?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<p class="entry-time"><time datetime="<?php the_time('c'); ?>"><?php the_time('l'); ?>, <?php the_time('j.'); ?><?php the_time('n.'); ?><?php the_time('Y'); ?></time></p>
<p class="entry-time"><time datetime="<?php the_time( 'c' ); ?>"><?php the_time( 'l' ); ?>, <?php the_time( 'j.' ); ?><?php the_time( 'n.' ); ?><?php the_time( 'Y' ); ?></time></p>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->

0 comments on commit 159c21f

Please sign in to comment.