Skip to content
Merged

3.1.0 #847

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
3fe5e2d
cron
DavidCramer Jun 29, 2022
1a301ce
WIP cron system
DavidCramer Jul 5, 2022
c68faf3
Add option to disable the delivery per type
Oct 7, 2022
eb5aeaf
Add delivery as optimization level
Oct 7, 2022
907ed62
Fix warnings on missing dimension assets as PDF
Oct 7, 2022
1995911
Use deliverable option to control sync
Oct 7, 2022
5579de0
Clean up metadata on running queues
Oct 7, 2022
9b53eb4
Add support for asset state for disabled delivery
Oct 7, 2022
5cdb1fd
Respect the disabled mime types when finding assets to sync
Oct 7, 2022
a8de086
Let the `set_usablity` to decide whether the asset is `known` or `unu…
Oct 10, 2022
59ab14f
Fix typo
Oct 10, 2022
3aab3f6
Media Library actions should reflect the deliverability of the asset
Oct 11, 2022
079ac6d
Add namespace to the file and register the check for rest api connect…
Oct 13, 2022
328bc86
Add REST API connectivity notices
Oct 13, 2022
9d10482
Add support for icon on notices
Oct 13, 2022
d4d3601
Warm the last uploaded items in the media library
Oct 13, 2022
8de1503
Get the history plan based
Oct 14, 2022
4c226e4
Upgrade history meta
Oct 14, 2022
8745af8
update develop
DavidCramer Oct 18, 2022
c7eae76
Bump shell-quote and @react-native-community/cli-tools
dependabot[bot] Oct 25, 2022
5c29704
Merge branch 'master' into uat
Oct 26, 2022
71fcb51
Merge branch 'master' into develop
Oct 26, 2022
07b7b93
Merge pull request #821 from cloudinary/dependabot/npm_and_yarn/shell…
pereirinha Oct 26, 2022
bffb48a
Bump glob-parent, @wordpress/scripts and webpack
dependabot[bot] Oct 25, 2022
27529bb
Merge pull request #822 from cloudinary/dependabot/npm_and_yarn/glob-…
pereirinha Oct 26, 2022
93c634c
Bump nth-check and @wordpress/scripts
dependabot[bot] Oct 25, 2022
5feb8c4
Merge pull request #823 from cloudinary/dependabot/npm_and_yarn/nth-c…
pereirinha Oct 26, 2022
27cd1fc
Bump markdown-it and @wordpress/scripts
dependabot[bot] Oct 25, 2022
fdfe7a6
Merge pull request #824 from cloudinary/dependabot/npm_and_yarn/markd…
pereirinha Oct 26, 2022
8ada8c7
Add the cron class and components
DavidCramer Oct 31, 2022
5dd876a
Use WP_CLI
Nov 7, 2022
0844780
Improvements
Nov 7, 2022
0cb6b15
Improvements
Nov 7, 2022
9477094
Replace `OptimizeCSSAssetsPlugin` by `CssMinimizerPlugin`
Nov 7, 2022
e95b7f0
Update webpackbar
Nov 7, 2022
cf21877
Update `package-lock.json`
Nov 7, 2022
234f89e
Update compiled assets
Nov 7, 2022
7750dad
Fix JS styling
Nov 7, 2022
1d93357
Update depenencies
Nov 7, 2022
cb61df0
Keep the deprecated rule with replacer
Nov 7, 2022
5824019
Add `customSyntax`
Nov 7, 2022
752c840
Update dependencies
Nov 7, 2022
d70a0d9
Update dependencies
Nov 7, 2022
bd78256
Minimize
Nov 7, 2022
c443af7
Update npm dependency
Nov 8, 2022
21bf29c
Update npm dependency
Nov 8, 2022
0356086
Use the `cloud_name` when the plan does not have a `plan` key
Nov 10, 2022
547a87c
Prevent running multiple times the update for the Cloudinary Status t…
Nov 11, 2022
90927ec
Merge pull request #828 from cloudinary/fix/depenencies
pereirinha Nov 14, 2022
d925968
Merge pull request #820 from cloudinary/feature/improve-history
pereirinha Nov 15, 2022
9175462
Merge pull request #819 from cloudinary/feature/warm-media-library
pereirinha Nov 15, 2022
412b8b2
Merge pull request #818 from cloudinary/feature/test-rest-api
pereirinha Nov 15, 2022
774ac56
Fix alignment
Nov 16, 2022
d810a47
Use constant for consistency
Nov 16, 2022
79106c6
Prevent warnings on `null` values
Nov 16, 2022
8798584
Check rest api connectivity hourly
Nov 16, 2022
9062c0f
Merge pull request #830 from cloudinary/fix/cloudinary-status
pereirinha Nov 16, 2022
e2aa664
Bump minimatch from 3.0.4 to 3.0.8
dependabot[bot] Nov 16, 2022
cafac6c
Bump loader-utils from 1.4.0 to 1.4.2
dependabot[bot] Nov 16, 2022
68870c6
Merge branch 'develop' into dependabot/npm_and_yarn/loader-utils-1.4.2
Nov 16, 2022
fc6d87c
Merge pull request #835 from cloudinary/dependabot/npm_and_yarn/loade…
pereirinha Nov 16, 2022
da3ed64
Merge branch 'develop' into dependabot/npm_and_yarn/minimatch-3.0.8
Nov 16, 2022
618f9a5
Merge pull request #834 from cloudinary/dependabot/npm_and_yarn/minim…
pereirinha Nov 16, 2022
f1be42c
Merge pull request #832 from cloudinary/fix/minor-fixes
pereirinha Nov 23, 2022
0a454b8
Merge pull request #816 from cloudinary/feature/disable-sync-per-type
pereirinha Nov 23, 2022
13a5372
Update the alt text and description for all instances of the same image
Nov 23, 2022
0aacd70
Merge pull request #837 from cloudinary/feature/update-all-instances
pereirinha Nov 28, 2022
eca77ed
Add sized transformations
Nov 5, 2022
7bf7ab1
Add get registered sizes Util
Nov 5, 2022
8ab1864
Leverage the sized transformations of Lazy Loaded images
Nov 5, 2022
0474a7a
Fix sizes for non-Lazy loaded images
Nov 5, 2022
c04e614
Fix detecting the crop sizes
Nov 5, 2022
f5cfdf4
Cleanup
Nov 5, 2022
33af9b1
Get registered sizes by attachment_id
Nov 6, 2022
4fe160d
WIP approach 1
Nov 6, 2022
113e4d8
WIP approach 2
Nov 6, 2022
e16d7d4
WIP approach 3
Nov 6, 2022
a944c86
refactor sizes and handling
DavidCramer Dec 6, 2022
5f2be81
Check if key is not empty
Dec 7, 2022
f29b256
Warm image_meta sizes for PDFs
Dec 7, 2022
c1adfbc
update components and saving
DavidCramer Dec 9, 2022
7a9b7cb
Place generic crop size settings under `cloudinary_enabled_crop_sizes…
Dec 19, 2022
35b16d0
Generic cleanup
Dec 19, 2022
b50ca79
Deliver sizes crop transformations
Dec 19, 2022
f198e12
Fix the get registered sizes
Dec 19, 2022
4c073c2
Typecast variables
Dec 19, 2022
df4c6d2
Add docblocks
Dec 19, 2022
a9a0905
Cleanup
Dec 19, 2022
c608e1a
Use the asset for the preview
Dec 19, 2022
19ffe41
Include `face` as the allowed gavities
Dec 19, 2022
a997f63
Prevent settings script to be spun up multiple times
Dec 19, 2022
0289982
Add crop transformation into the FE overlay
Dec 19, 2022
de2bfe9
Update built assets
Dec 19, 2022
8ef7945
Revert "Generic cleanup"
Dec 21, 2022
fd8fb87
Add crop sizes transformations to global settings
Dec 21, 2022
c24ae82
Check if storage setting is set to `dual_full` very early
Dec 21, 2022
a543781
Cleanup
Dec 21, 2022
f131b04
Add deactivated message
Dec 21, 2022
dcd81ef
Add back the wrapper ID
Dec 21, 2022
2191555
Fix settings pages
Dec 21, 2022
d8a4f02
Cleanup
Dec 21, 2022
e2f6720
Add todo comment
Dec 22, 2022
8da1907
Taken out my mistake
Dec 22, 2022
c6cd9fd
Merge pull request #842 from cloudinary/fix/crop-components
pereirinha Dec 23, 2022
7b1c69a
Add docbloc
Dec 23, 2022
023d154
Merge pull request #825 from cloudinary/feature/cron
pereirinha Dec 23, 2022
cebfb2a
Merge branch 'develop' into uat
Dec 23, 2022
40fb264
Bump plugin version
Dec 23, 2022
f1d61e9
Update translations
Dec 23, 2022
0072e08
Get a keyless array when getting the size from URL
Jan 9, 2023
4b44bfc
Do not test the REST API connectivity on activation hook and endpoint…
Jan 13, 2023
afddd32
Move away from WP cron into in house solution
Jan 13, 2023
dcbd3e9
Check if `cloud_name` is set, on new installs it is not
Jan 13, 2023
33437ea
Streamline the loopback request
Jan 13, 2023
3ad19e7
Fix typo
Jan 13, 2023
04c4782
Revert crop sizes
Jan 19, 2023
8731cc9
revise start time and cleanup display
DavidCramer Jan 20, 2023
92eca52
Merge pull request #844 from cloudinary/fix/3.1.0-build-2
pereirinha Jan 20, 2023
aeb6307
handle off and on
DavidCramer Jan 20, 2023
eae7344
Merge pull request #845 from cloudinary/fix/rest-api-check
pereirinha Jan 20, 2023
db8f760
Merge branch 'uat' into revert/crop-sizes
Jan 20, 2023
c630e9b
Merge pull request #849 from cloudinary/revert/crop-sizes
pereirinha Jan 20, 2023
b8452e7
Fix sizes for non-Lazy loaded images
Nov 5, 2022
4f70547
Merge pull request #850 from cloudinary/fix/non-lazy-load-sizes
pereirinha Jan 20, 2023
3077ec2
Merge branch 'uat' into fix/cron
pereirinha Jan 20, 2023
02ebda9
Warm image_meta sizes for PDFs
Dec 7, 2022
4372a05
Merge pull request #851 from cloudinary/hotfix/pdf
pereirinha Jan 20, 2023
a52b691
Add deactivated message
Dec 21, 2022
e9585dc
Check if storage setting is set to `dual_full` very early
Dec 21, 2022
50f5e3d
Add todo comment
Dec 22, 2022
02302d4
Update wording
Jan 20, 2023
c3d45bb
Use Settings API to test toggle disabled
Jan 23, 2023
b658a53
Merge pull request #852 from cloudinary/hotfix/asset-delivery
pereirinha Jan 24, 2023
52d9669
Merge pull request #848 from cloudinary/fix/cron
pereirinha Jan 24, 2023
d073939
Check against offload key
Jan 25, 2023
b04a606
Check if key is set before using it
Jan 25, 2023
2649836
Merge pull request #853 from cloudinary/hotfix/delivery-feature
pereirinha Jan 25, 2023
4ca766a
Bump plugin version
Jan 27, 2023
dbc45c4
Update filter doc
Jan 27, 2023
d64825a
Update translation template
Jan 27, 2023
ab7d148
Return -1, 0, or 1 on uksort
Jan 31, 2023
a716a08
Fix the upgrade of the history, and flush it, if needed
Jan 31, 2023
fb85e62
Merge pull request #855 from cloudinary/hotfix/uksort-warning
pereirinha Jan 31, 2023
ddbf9e6
Bump plugin version
Jan 31, 2023
1860b84
Fix detection for sized images
Feb 2, 2023
c8efc32
Fix readonly toogles
Feb 2, 2023
58168a7
Media tags are not just about images
Feb 3, 2023
faf1003
Attempt to find the video id in case not provided by the shortcode
Feb 3, 2023
623e528
Fix the video controls
Feb 3, 2023
9cd626d
Fix the expand of the video shortcode preview in the classic editor
Feb 3, 2023
94ffc6f
Merge pull request #856 from cloudinary/hotfix/build-4
pereirinha Feb 6, 2023
f5b3775
Bump plugin version
Feb 6, 2023
aae0127
Update translations template
Feb 6, 2023
825b728
Check if the asset is deliverable before attempting to do syncs
Feb 9, 2023
cbfc122
Conform is key is set before using it
Feb 9, 2023
6e20a29
Bust object caching on clear cache
Feb 9, 2023
219730c
Warm delivery property a bit later
Feb 9, 2023
e3da013
Merge pull request #859 from cloudinary/fix/import-without-delivery
pereirinha Feb 10, 2023
06d171f
The toggle stub should be an entity on its own
Feb 14, 2023
d9afca8
Initialize values before using them
Feb 15, 2023
fbb882e
Ensure to use cached results
Feb 15, 2023
ac4b25b
Use strict comparations
Feb 15, 2023
c7ace1b
All good with this include
Feb 15, 2023
334aa65
We do not need this
Feb 15, 2023
1e1d7ad
Merge pull request #861 from cloudinary/hotfix/on-off-warning
pereirinha Feb 15, 2023
d97c2a2
Merge pull request #862 from cloudinary/improvements/vip-feedback
pereirinha Feb 15, 2023
752cc99
Bump the plugin version
Feb 15, 2023
f221e9e
Update translation template
Feb 15, 2023
f13d437
version 3.1
bruckercloud Feb 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
16
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_comment": "workaround for deprecated jsxBracketSameLine set on @wordpress/prettier-config",
"bracketSameLine": false
}
1 change: 1 addition & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"customSyntax": "postcss-scss",
"rules": {
"selector-class-pattern": null
}
Expand Down
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.9
3.1.0
14 changes: 9 additions & 5 deletions cloudinary.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
* @package Cloudinary
*/

namespace Cloudinary;

use WP_CLI;

// Define Cloudinary Constants.
define( 'CLDN_CORE', __FILE__ );
define( 'CLDN_PATH', plugin_dir_path( __FILE__ ) );
Expand All @@ -37,24 +41,24 @@
register_activation_hook( __FILE__, array( 'Cloudinary\Utils', 'install' ) );
} else {
if ( defined( 'WP_CLI' ) ) {
WP_CLI::warning( _cloudinary_php_version_text() );
WP_CLI::warning( php_version_text() );
} else {
add_action( 'admin_notices', '_cloudinary_php_version_error' );
add_action( 'admin_notices', __NAMESPACE__ . '\php_version_error' );
}
}

/**
* Admin notice for incompatible versions of PHP.
*/
function _cloudinary_php_version_error() {
printf( '<div class="error"><p>%s</p></div>', esc_html( _cloudinary_php_version_text() ) );
function php_version_error() {
printf( '<div class="error"><p>%s</p></div>', esc_html( php_version_text() ) );
}

/**
* String describing the minimum PHP version.
*
* @return string
*/
function _cloudinary_php_version_text() {
function php_version_text() {
return __( 'Cloudinary plugin error: Your version of PHP is too old to run this plugin. You must be running PHP 5.6 or higher.', 'cloudinary' );
}
2 changes: 1 addition & 1 deletion css/cloudinary.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/front-overlay.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/gallery-block-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/gallery-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/syntax-highlight.css

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ module.exports = function ( grunt ) {
expand: true,
},
package: {
src:
'<%= tester_dir %>/cloudinary-wordpress-<%= pluginVersion %>.zip',
dest:
'<%= package_dir %>/cloudinary-wordpress-<%= pluginVersion %>.zip',
src: '<%= tester_dir %>/cloudinary-wordpress-<%= pluginVersion %>.zip',
dest: '<%= package_dir %>/cloudinary-wordpress-<%= pluginVersion %>.zip',
},
},

Expand Down
2 changes: 1 addition & 1 deletion js/asset-edit.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/asset-manager.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/block-editor.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '75ffdfd0a0adf0f4bcf66377b16aa9ea');
<?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'd1555845f87e82870945');
Loading