Skip to content

Commit fdce773

Browse files
committed
Merge pull request #43 from ScottSmith95/3.0.9
Decode 3.0.9
2 parents fce02d1 + 08b82b3 commit fdce773

File tree

7 files changed

+114
-100
lines changed

7 files changed

+114
-100
lines changed

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function decode_scripts() {
143143
wp_enqueue_style( 'decode-font-stylesheet', '//fonts.googleapis.com/css?family=Oxygen' );
144144
}
145145

146-
wp_enqueue_script( 'decode-scripts', get_template_directory_uri() . '/scripts/decode.js', array(), '3.0.6', true );
146+
wp_enqueue_script( 'decode-scripts', get_template_directory_uri() . '/scripts/decode.js', array(), '3.0.9', true );
147147

148148
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
149149
wp_enqueue_script( 'comment-reply' );

gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ gulp.task('copy', ['styles'], function() {
3838
.pipe(gulp.dest('./'));
3939
});
4040

41-
gulp.task('scripts', ['modernizr'], function() {
41+
gulp.task('scripts', function() {
4242
var decodeScript = gulp.src(paths.decodeScript)
4343
.pipe(sourcemaps.init())
4444
.pipe(concat('decode.js'))
@@ -60,15 +60,15 @@ gulp.task('modernizr', function() {
6060
gulp.src('scripts/src/*.js').pipe(modernizr({
6161
cache: true,
6262
dest: 'scripts/src/modernizr.js',
63-
options: ['mq', 'html5printshiv'],
63+
options: ['setClasses', 'mq', 'html5printshiv'],
6464
tests: ['csstransforms', 'flexbox', 'inlinesvg', 'touchevents'],
6565
crawl: false
6666
}))
6767
.pipe(gulp.dest('scripts/src/'));
6868
});
6969

7070
gulp.task('watch', function() {
71-
gulp.watch(paths.styles, ['styles']);
71+
gulp.watch(paths.styles, ['styles', 'copy']);
7272
gulp.watch([paths.decodeScript, paths.customizerScript], ['scripts']);
7373
});
7474

header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
1818
<link rel="profile" href="http://gmpg.org/xfn/11">
1919
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
20-
<?php if ( get_theme_mod( 'favicon_image', '' ) ) { echo '<link rel="icon" href="' . esc_url( get_theme_mod( 'favicon_image', '' ) ) . '">' . "\n" .
20+
<?php if ( get_theme_mod( 'favicon_image', '' ) && decode_has_site_icon() ) { echo '<link rel="icon" href="' . esc_url( get_theme_mod( 'favicon_image', '' ) ) . '">' . "\n" .
2121
'<link rel="apple-touch-icon-precomposed" href="' . esc_url( get_theme_mod( 'favicon_image', '' ) ) . '">' . "\n"; } ?>
2222
<?php if ( get_background_image() ) { echo '<link rel="prefetch" href="' . get_background_image() . '">'; } ?>
2323

inc/customizer.php

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@ function decode_sidebar_is_enabled() {
9696
}
9797
}
9898

99+
function decode_has_site_icon() {
100+
if ( function_exists( 'has_site_icon' ) ) {
101+
if ( has_site_icon() ) {
102+
return true;
103+
}
104+
else {
105+
return false;
106+
}
107+
}
108+
else {
109+
return false;
110+
}
111+
}
112+
99113
function decode_social_icons_are_enabled() {
100114
if ( get_theme_mod( 'show_header_social_icons', false ) == true || get_theme_mod( 'show_footer_social_icons', false ) == true ) {
101115
return true;
@@ -730,7 +744,7 @@ public static function decode_customize_register( $wp_customize ) {
730744
'section' => 'decode_social_options',
731745
'active_callback' => 'decode_social_icons_are_enabled',
732746
'type' => 'text',
733-
//'type' => 'url', /* Uncomment for WP >= 4.4 */
747+
//'type' => 'url', /* Uncomment for WP >= 4.4 */
734748
'priority' => 15,
735749
) );
736750

@@ -819,7 +833,7 @@ public static function decode_customize_register( $wp_customize ) {
819833
'section' => 'decode_social_options',
820834
'active_callback' => 'decode_social_icons_are_enabled',
821835
'type' => 'text',
822-
//'type' => 'url', /* Uncomment for WP >= 4.4 */
836+
//'type' => 'url', /* Uncomment for WP >= 4.4 */
823837
'priority' => 26,
824838
) );
825839

@@ -836,7 +850,7 @@ public static function decode_customize_register( $wp_customize ) {
836850
'section' => 'decode_social_options',
837851
'active_callback' => 'decode_social_icons_are_enabled',
838852
'type' => 'text',
839-
//'type' => 'url', /* Uncomment for WP >= 4.4 */
853+
//'type' => 'url', /* Uncomment for WP >= 4.4 */
840854
'priority' => 28,
841855
) );
842856

@@ -893,7 +907,7 @@ public static function decode_customize_register( $wp_customize ) {
893907
'section' => 'decode_social_options',
894908
'active_callback' => 'decode_social_icons_are_enabled',
895909
'type' => 'text',
896-
//'type' => 'url', /* Uncomment for WP >= 4.4 */
910+
//'type' => 'url', /* Uncomment for WP >= 4.4 */
897911
'priority' => 35,
898912
) );
899913

@@ -918,7 +932,7 @@ public static function decode_customize_register( $wp_customize ) {
918932
'section' => 'decode_social_options',
919933
'active_callback' => 'decode_social_icons_are_enabled',
920934
'type' => 'text',
921-
//'type' => 'url', /* Uncomment for WP >= 4.4 */
935+
//'type' => 'url', /* Uncomment for WP >= 4.4 */
922936
'priority' => 38,
923937
) );
924938

@@ -944,7 +958,7 @@ public static function decode_customize_register( $wp_customize ) {
944958
'section' => 'decode_social_options',
945959
'active_callback' => 'decode_social_icons_are_enabled',
946960
'type' => 'text',
947-
//'type' => 'url', /* Uncomment for WP >= 4.4 */
961+
//'type' => 'url', /* Uncomment for WP >= 4.4 */
948962
'priority' => 41,
949963
) );
950964

@@ -1082,7 +1096,7 @@ public static function decode_customize_register( $wp_customize ) {
10821096
'section' => 'decode_social_options',
10831097
'active_callback' => 'decode_social_icons_are_enabled',
10841098
'type' => 'text',
1085-
//'type' => 'email', /* Uncomment for WP >= 4.4 */
1099+
//'type' => 'email', /* Uncomment for WP >= 4.4 */
10861100
'priority' => 58,
10871101
) );
10881102

@@ -1091,7 +1105,7 @@ public static function decode_customize_register( $wp_customize ) {
10911105
'section' => 'decode_social_options',
10921106
'active_callback' => 'decode_social_icons_are_enabled',
10931107
'type' => 'text',
1094-
//'type' => 'url', /* Uncomment for WP >= 4.4 */
1108+
//'type' => 'url', /* Uncomment for WP >= 4.4 */
10951109
'priority' => 59,
10961110
) );
10971111

@@ -1312,7 +1326,7 @@ public static function decode_customize_register( $wp_customize ) {
13121326
*/
13131327

13141328
$wp_customize->add_section( 'decode_other_options', array(
1315-
'title' => __( 'Other Options', 'decode' ),
1329+
'title' => __( 'Other Options', 'decode' ),
13161330
'description' => __( 'Custom CSS is longer recommended. This feature may be removed in a future update. To continue using your tweaks, copy and paste your CSS into a custom CSS plugin such as <a href="http://jetpack.me/install/">Jetpack</a>. Get help <a href="http://jetpack.me/support/custom-css/">here</a>.', 'decode' ),
13171331
'priority' => 38,
13181332
) );

0 commit comments

Comments
 (0)