Skip to content

Commit 355a6d5

Browse files
authored
Merge pull request #1161 from cloudinary/wp-7.0
Ensure compatibility with WP 7.0
2 parents b52246e + 1f4aa4b commit 355a6d5

23 files changed

Lines changed: 136 additions & 46 deletions

cloudinary.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
define( 'CLDN_CORE', __FILE__ );
3737
define( 'CLDN_PATH', plugin_dir_path( __FILE__ ) );
3838

39-
if ( version_compare( phpversion(), '5.6', '>=' ) ) {
39+
if ( version_compare( phpversion(), '7.4', '>=' ) ) {
4040
require_once __DIR__ . '/instance.php';
4141
register_activation_hook( __FILE__, array( 'Cloudinary\Utils', 'install' ) );
4242
} else { // phpcs:ignore Universal.ControlStructures.DisallowLonelyIf.Found
@@ -60,5 +60,5 @@ function php_version_error() {
6060
* @return string
6161
*/
6262
function php_version_text() {
63-
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' );
63+
return __( 'Cloudinary plugin error: Your version of PHP is too old to run this plugin. You must be running PHP 7.4 or higher.', 'cloudinary' );
6464
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"config": {
1717
"platform": {
18-
"php": "5.6.20"
18+
"php": "7.4"
1919
},
2020
"allow-plugins": {
2121
"dealerdirect/phpcodesniffer-composer-installer": true

js/block-editor.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-i18n'), 'version' => 'b2f0bbe921dc49b7d514');
1+
<?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'aab7b2e0606348e43cc2');

js/block-editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/gallery-block.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '98e435d77738ea4c4f99');
1+
<?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '98f4cd2c29395fad0b1e');

js/gallery-block.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/gallery.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '9cc411f20e1aa5754b7f');
1+
<?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'ce273b9408344c97f28b');

js/gallery.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/terms-order.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array(), 'version' => '0085d1c205e96a2bbe85');
1+
<?php return array('dependencies' => array(), 'version' => '2f7f1b83c7516fc1c316');

js/terms-order.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)