Skip to content

Commit

Permalink
v 3.16.0
Browse files Browse the repository at this point in the history
- Update dependencies.
- Use WPU Base File Cache for embeds.
- Switch to branch « main »
  • Loading branch information
Darklg committed Jul 12, 2024
1 parent d5fb74f commit 5071fce
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 18 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: PHP Lint

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
phplint:
Expand All @@ -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

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.sass-cache
*.mo.php
/package-lock.json
/yarn.lock
17 changes: 15 additions & 2 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -36,7 +36,6 @@ aside,
audio,
canvas,
details,
dialog,
figure,
figcaption,
footer,
Expand Down Expand Up @@ -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;
Expand Down
10 changes: 7 additions & 3 deletions inc/theme/utilities/oembed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": "",
Expand Down
2 changes: 1 addition & 1 deletion scss/csscommon
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: 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
Expand Down

0 comments on commit 5071fce

Please sign in to comment.