diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 036a0a8..c55b4e3 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -2,9 +2,9 @@ name: PHP Lint on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: phplint: @@ -13,8 +13,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: PHP Lint uses: michaelw90/PHP-Lint@2.1.0 - diff --git a/.gitignore b/.gitignore index 3306a83..50169cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .sass-cache *.mo.php +/package-lock.json +/yarn.lock diff --git a/css/main.css b/css/main.css index 3e5728b..903ea11 100644 --- a/css/main.css +++ b/css/main.css @@ -3,7 +3,7 @@ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre, a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp, small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset, form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside, -audio,canvas,datalist,details,dialog,figure,footer,header, +audio,canvas,datalist,details,figure,footer,header, menu,nav,section,video,abbr,mark,meter,time,progress,output{ margin:0; padding:0; @@ -36,7 +36,6 @@ aside, audio, canvas, details, -dialog, figure, figcaption, footer, @@ -343,6 +342,20 @@ overflow:hidden !important; white-space:nowrap !important; opacity:0.001 !important; } +dialog{ +padding:1em; +border:1px solid; +font:inherit; +vertical-align:baseline; +outline:0; +color:#000; +background:transparent no-repeat top left; +background-color:#FFF; +} +dialog::backdrop{ +opacity:0.75; +background-color:#000; +} .cssc-oneline{ max-width:100%; overflow:hidden; diff --git a/inc/theme/utilities/oembed.php b/inc/theme/utilities/oembed.php index 1051851..f5fa37d 100644 --- a/inc/theme/utilities/oembed.php +++ b/inc/theme/utilities/oembed.php @@ -17,8 +17,12 @@ function wputh_get_oembed_infos($url) { return false; } - $transient_id = 'wputh_oembed_cache_' . md5($url); - if (false === ($infos = get_transient($transient_id))) { + $wputheme_wpubasefilecache = wputheme_get_wpubasefilecache(); + $cache_duration = WEEK_IN_SECONDS; + $cache_id = 'wputh_oembed_cache_' . md5($url); + + $infos = $wputheme_wpubasefilecache->get_cache($cache_id, $cache_duration); + if ($infos === false) { require_once ABSPATH . WPINC . '/class-wp-oembed.php'; $oembed = new WP_oEmbed(); $url = esc_url_raw($url); @@ -28,7 +32,7 @@ function wputh_get_oembed_infos($url) { /* Load biggest available thumbnail */ $infos = wputh_get_oembed_infos__big_thumbnail($infos); - set_transient($transient_id, $infos, MONTH_IN_SECONDS); + $wputheme_wpubasefilecache->set_cache($cache_id, $infos); } return $infos; diff --git a/package.json b/package.json index 8af249b..879cf28 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,19 @@ { "name": "wputheme", - "version": "3.15.1", + "version": "3.16.0", "description": "WPUTheme", - "dependencies": {}, "devDependencies": { "gulp": "^4.0.2", "gulp-autoprefixer": "^8.0.0", "gulp-remove-empty-lines": "^0.1.0", - "gulp-replace": "^1.1.3", - "gulp-sass": "^5.0.0", + "gulp-replace": "^1.1.4", + "gulp-sass": "^5.1.0", "gulp-sass-glob": "^1.1.0", "gulp-strip-css-comments": "^2.0.0", - "gulp-stylelint": "^13.0.0", + "gulp-stylelint": "13.0.0", "gulp-trimlines": "^1.0.1", - "sass": "^1.56.1", - "stylelint": "^13.13.1" + "sass": "^1.77.6", + "stylelint": "13.13.1" }, "scripts": {}, "author": "", diff --git a/scss/csscommon b/scss/csscommon index 7a5511c..e9a08fc 160000 --- a/scss/csscommon +++ b/scss/csscommon @@ -1 +1 @@ -Subproject commit 7a5511c80921b9f6f20a5544fb49a61b11977798 +Subproject commit e9a08fc895dfc8e509bd7a2e7d46db4c3d0e6833 diff --git a/style.css b/style.css index 52ba888..a476a83 100644 --- a/style.css +++ b/style.css @@ -3,7 +3,7 @@ Theme Name: WP Utilities Base Theme Theme URI: https://github.com/WordPressUtilities/WPUTheme Update URI: https://github.com/WordPressUtilities/WPUTheme Description: A Framework WordPress Theme -Version: 3.15.1 +Version: 3.16.0 Author: Darklg Author URI: https://darklg.me/ License: GPLv2 or later