Skip to content

Commit fce02d1

Browse files
committed
Merge pull request #41 from ScottSmith95/3.0.8
Decode 3.0.8
2 parents 5accb40 + e6f0b6f commit fce02d1

34 files changed

+244
-605
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.gitignore export-ignore
2+
.gitattributes export-ignore
3+
.travis.yml export-ignore
4+
codesniffer.ruleset.xml export-ignore

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
21
config.codekit
3-
42
node_modules/
53

64
# Built Files
75
style.css
86
editor-style.css
7+
98
styles/*.css
10-
styles/*.map
9+
styles/**/*.map
1110
styles/src/.sass-cache/
12-
styles/src/reset/_normalize.scss
11+
1312
scripts/*.js
14-
scripts/srcmaps/
13+
scripts/**/*.map
1514
scripts/src/modernizr.js
15+
1616
docs/*.html

.travis.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ env:
2828
- WP_VERSION=master WP_MULTISITE=1
2929
# WordPress 4.1
3030
# @link https://github.com/WordPress/WordPress/tree/4.1-branch
31-
- WP_VERSION=4.1 WP_MULTISITE=0
32-
- WP_VERSION=4.1 WP_MULTISITE=1
31+
- WP_VERSION=4.2 WP_MULTISITE=0
32+
- WP_VERSION=4.2 WP_MULTISITE=1
3333
# WordPress 4.0
3434
# @link https://github.com/WordPress/WordPress/tree/4.0-branch
35-
- WP_VERSION=4.0 WP_MULTISITE=0
36-
- WP_VERSION=4.0 WP_MULTISITE=1
35+
- WP_VERSION=4.1 WP_MULTISITE=0
36+
- WP_VERSION=4.1 WP_MULTISITE=1
3737

3838
# Declare 5.6 beta in test matrix.
3939
# @link https://buddypress.trac.wordpress.org/ticket/5620
@@ -46,12 +46,15 @@ matrix:
4646
- php: 5.6
4747
fast_finish: true
4848

49+
before_install:
50+
- npm install -g npm # Update npm to latest version.
51+
4952
# Install devDependencies and build files with Grunt.
5053
install:
5154
- npm install
5255
- npm install # Do it again because it goes wrong often enough to make builds error.
53-
- npm install -g grunt-cli
54-
- grunt build
56+
- npm install -g gulp
57+
- gulp build
5558

5659
# Use this to prepare the system to install prerequisites or dependencies.
5760
# e.g. sudo apt-get update.

404.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
<section class="error-404 not-found">
1414
<header class="page-header">
15-
<h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'decode' ); ?></h1>
15+
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'decode' ); ?></h1>
1616
</header><!-- .page-header -->
1717

1818
<div class="page-content">
19-
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'decode' ); ?></p>
19+
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'decode' ); ?></p>
2020

2121
<?php get_search_form(); ?>
2222

@@ -29,7 +29,7 @@
2929

3030
<?php if ( decode_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
3131
<div class="widget widget_categories">
32-
<h2 class="widgettitle"><?php _e( 'Most Used Categories', 'decode' ); ?></h2>
32+
<h2 class="widgettitle"><?php esc_html_e( 'Most Used Categories', 'decode' ); ?></h2>
3333
<ul>
3434
<?php
3535
wp_list_categories( array(

archive.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* The template for displaying archive pages.
44
*
5-
* Learn more: http://codex.wordpress.org/Template_Hierarchy
5+
* Learn more: https://codex.wordpress.org/Template_Hierarchy
66
*
77
* @package Decode
88
*/

author.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* The template for displaying author pages.
44
*
5-
* Learn more: http://codex.wordpress.org/Template_Hierarchy
5+
* Learn more: https://codex.wordpress.org/Template_Hierarchy
66
*
77
* @package Decode
88
*/

codesniffer.ruleset.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
<!-- Include the WordPress ruleset, with exclusions. -->
99
<rule ref="WordPress">
10-
<exclude name="WordPress.XSS.EscapeOutput" />
11-
<exclude name="WordPress.WhiteSpace.ScopeIndent.Incorrect" />
12-
<exclude name="WordPress.VIP.PostsPerPage.posts_per_page" />
10+
1311
</rule>
1412
</ruleset>

comments.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
3333
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
34-
<h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'decode' ); ?></h2>
34+
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'decode' ); ?></h2>
3535
<div class="nav-links">
3636

3737
<div class="nav-previous"><?php previous_comments_link( __( 'Older Comments', 'decode' ) ); ?></div>
@@ -55,7 +55,7 @@
5555

5656
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
5757
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
58-
<h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'decode' ); ?></h2>
58+
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'decode' ); ?></h2>
5959
<div class="nav-links">
6060

6161
<div class="nav-previous"><?php previous_comments_link( __( 'Older Comments', 'decode' ) ); ?></div>
@@ -71,7 +71,7 @@
7171
// If comments are closed and there are comments, let's leave a little note, shall we?
7272
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
7373
?>
74-
<p class="no-comments"><?php _e( 'Comments are closed.', 'decode' ); ?></p>
74+
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'decode' ); ?></p>
7575
<?php endif; ?>
7676

7777
<?php

content-excerpt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</div><!-- .entry-summary -->
3131

3232
<footer class="entry-footer">
33-
<a class="read-more-link" href="<?php echo get_permalink(); ?>"><?php _e( 'Read More&hellip;', 'decode' ); ?></a>
33+
<a class="read-more-link" href="<?php echo get_permalink(); ?>"><?php esc_html_e( 'Read More&hellip;', 'decode' ); ?></a>
3434

3535
<?php edit_post_link( __( 'Edit', 'decode' ), '<div class="edit-link">', '</div>' ); ?>
3636

content-link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<p class="tags"><?php the_tags( __( 'Tagged as: ', 'decode' ),', ' ); ?></p>
4343
<?php endif; ?>
4444
<?php if ( get_theme_mod( 'show_categories', false ) == true ) : ?>
45-
<p class="categories"><?php _e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
45+
<p class="categories"><?php esc_html_e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
4646
<?php endif; ?>
4747
<?php if ( get_theme_mod( 'entry_date_position', 'below' ) == 'below' ) : ?>
4848
<p class="date"><?php decode_posted_on(); ?></p>

content-none.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
/**
33
* The template part for displaying a message that posts cannot be found.
44
*
5-
* Learn more: http://codex.wordpress.org/Template_Hierarchy
5+
* Learn more: https://codex.wordpress.org/Template_Hierarchy
66
*
77
* @package Decode
88
*/
99
?>
1010

1111
<section class="no-results not-found">
1212
<header class="page-header">
13-
<h1 class="page-title"><?php _e( 'Nothing Found', 'decode' ); ?></h1>
13+
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'decode' ); ?></h1>
1414
</header><!-- .page-header -->
1515

1616
<div class="page-content">
1717
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
1818

19-
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'decode' ), admin_url( 'post-new.php' ) ); ?></p>
19+
<p><?php printf( esc_html__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'decode' ), admin_url( 'post-new.php' ) ); ?></p>
2020

2121
<?php elseif ( is_search() ) : ?>
2222

23-
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'decode' ); ?></p>
23+
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'decode' ); ?></p>
2424
<?php get_search_form(); ?>
2525

2626
<?php else : ?>
2727

28-
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'decode' ); ?></p>
28+
<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'decode' ); ?></p>
2929
<?php get_search_form(); ?>
3030

3131
<?php endif; ?>

content-quote.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<p class="tags"><?php the_tags( __( 'Tagged as: ', 'decode' ),', ' ); ?></p>
3030
<?php endif; ?>
3131
<?php if ( get_theme_mod( 'show_categories', false ) == true ) : ?>
32-
<p class="categories"><?php _e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
32+
<p class="categories"><?php esc_html_e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
3333
<?php endif; ?>
3434
<p class="date"><?php decode_posted_on(); ?></p>
3535
</div>

content-single.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<div class="entry-meta">
2525
<p class="tags"><?php the_tags( __( 'Tagged as: ', 'decode' ),', ' ); ?></p>
26-
<p class="categories"><?php _e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
26+
<p class="categories"><?php esc_html_e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
2727
<p class="date"><?php decode_posted_on(); ?></p>
2828
</div>
2929
</footer><!-- .entry-footer -->
@@ -63,7 +63,7 @@
6363

6464
<div class="entry-meta">
6565
<p class="tags"><?php the_tags( __( 'Tagged as: ', 'decode' ),', ' ); ?></p>
66-
<p class="categories"><?php _e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
66+
<p class="categories"><?php esc_html_e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
6767
<?php if ( get_theme_mod( 'entry_date_position', 'below' ) == 'below' ) : ?>
6868
<p class="date"><?php decode_posted_on(); ?></p>
6969
<?php endif; ?>
@@ -112,7 +112,7 @@
112112

113113
<div class="entry-meta">
114114
<p class="tags"><?php the_tags( __( 'Tagged as: ', 'decode' ),', ' ); ?></p>
115-
<p class="categories"><?php _e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
115+
<p class="categories"><?php esc_html_e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
116116
<?php if ( get_theme_mod( 'entry_date_position', 'below' ) == 'below' ) : ?>
117117
<p class="date"><?php decode_posted_on(); ?></p>
118118
<?php endif; ?>

content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<p class="tags"><?php the_tags( __( 'Tagged as: ', 'decode' ),', ' ); ?></p>
4646
<?php endif; ?>
4747
<?php if ( get_theme_mod( 'show_categories', false ) == true ) : ?>
48-
<p class="categories"><?php _e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
48+
<p class="categories"><?php esc_html_e( 'Categorized in&#58; ', 'decode' ) . the_category( ', ' ); ?></p>
4949
<?php endif; ?>
5050
<?php if ( get_theme_mod( 'entry_date_position', 'below' ) == 'below' ) : ?>
5151
<p class="date"><?php decode_posted_on(); ?></p>

docs/src/CustomCSS.md

Lines changed: 0 additions & 69 deletions
This file was deleted.

docs/src/CustomCSSTemplate.html

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)