Skip to content

Commit

Permalink
1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign committed Feb 11, 2019
1 parent 33d50b1 commit e7a9df3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
12 changes: 12 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Reykjavik Changelog

## 1.5.1

* **Update**: Preventing JavaScript error for CSS variables incompatible browsers fallback

### Files changed:

changelog.md
readme.txt
style.css
library/includes/classes/class-css-variables.php


## 1.5.0

* **Update**: Improving touch screen navigation
Expand Down
11 changes: 8 additions & 3 deletions library/includes/classes/class-css-variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @subpackage Customize
*
* @since 1.4.0
* @version 1.4.1
* @version 1.5.1
*
* Contents:
*
Expand Down Expand Up @@ -259,7 +259,7 @@ public static function get_variable_declaration( $variable, $value ) {
* @link https://github.com/jhildenbiddle/css-vars-ponyfill
*
* @since 1.4.0
* @version 1.4.0
* @version 1.5.1
*/
public static function compatibility() {

Expand All @@ -274,7 +274,12 @@ public static function compatibility() {

wp_add_inline_script(
'css-vars-ponyfill',
"cssVars( { onlyVars: true, exclude: 'link:not([href^=\"" . esc_url_raw( get_theme_root_uri() ) . "\"])' } );"
'window.onload = function() {' . PHP_EOL .
"\t" . 'cssVars( {' . PHP_EOL .
"\t\t" . 'onlyVars: true,' . PHP_EOL .
"\t\t" . 'exclude: \'link:not([href^="' . esc_url_raw( get_theme_root_uri() ) . '"])\'' . PHP_EOL .
"\t" . '} );' . PHP_EOL .
'};'
);

} // /compatibility
Expand Down
6 changes: 3 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: webmandesign
Tags: one-column, two-columns, right-sidebar, grid-layout, flexible-header, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-image-header, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce, portfolio
Requires at least: 4.7.0
Tested up to: 5.0.3
Stable tag: 1.5.0
Stable tag: 1.5.1
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -37,8 +37,8 @@ Please see `changelog.md` file.

== Upgrade Notice ==

= 1.5.0 =
Improving navigation touch screen functionality, improving excerpt display, security and accessibility.
= 1.5.1 =
Preventing JavaScript error for CSS variables incompatible browsers fallback.


== Resources ==
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme Name: Reykjavik
Theme URI: https://www.webmandesign.eu/portfolio/reykjavik-wordpress-theme/
Author: WebMan Design
Author URI: https://www.webmandesign.eu/
Version: 1.5.0
Version: 1.5.1
Text Domain: reykjavik
Domain Path: /languages
License: GNU General Public License v3
Expand Down

0 comments on commit e7a9df3

Please sign in to comment.