Skip to content

Commit 38b78c3

Browse files
authored
Merge pull request #847 from cloudinary/uat
3.1.0
2 parents b1a2fd5 + f13d437 commit 38b78c3

File tree

86 files changed

+41491
-36121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+41491
-36121
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12
1+
16

.prettierrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"_comment": "workaround for deprecated jsxBracketSameLine set on @wordpress/prettier-config",
3+
"bracketSameLine": false
4+
}

.stylelintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"customSyntax": "postcss-scss",
23
"rules": {
34
"selector-class-pattern": null
45
}

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.9
1+
3.1.0

cloudinary.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
* @package Cloudinary
2929
*/
3030

31+
namespace Cloudinary;
32+
33+
use WP_CLI;
34+
3135
// Define Cloudinary Constants.
3236
define( 'CLDN_CORE', __FILE__ );
3337
define( 'CLDN_PATH', plugin_dir_path( __FILE__ ) );
@@ -37,24 +41,24 @@
3741
register_activation_hook( __FILE__, array( 'Cloudinary\Utils', 'install' ) );
3842
} else {
3943
if ( defined( 'WP_CLI' ) ) {
40-
WP_CLI::warning( _cloudinary_php_version_text() );
44+
WP_CLI::warning( php_version_text() );
4145
} else {
42-
add_action( 'admin_notices', '_cloudinary_php_version_error' );
46+
add_action( 'admin_notices', __NAMESPACE__ . '\php_version_error' );
4347
}
4448
}
4549

4650
/**
4751
* Admin notice for incompatible versions of PHP.
4852
*/
49-
function _cloudinary_php_version_error() {
50-
printf( '<div class="error"><p>%s</p></div>', esc_html( _cloudinary_php_version_text() ) );
53+
function php_version_error() {
54+
printf( '<div class="error"><p>%s</p></div>', esc_html( php_version_text() ) );
5155
}
5256

5357
/**
5458
* String describing the minimum PHP version.
5559
*
5660
* @return string
5761
*/
58-
function _cloudinary_php_version_text() {
62+
function php_version_text() {
5963
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' );
6064
}

css/cloudinary.css

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

css/front-overlay.css

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

css/gallery-block-rtl.css

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

css/gallery-ui.css

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

css/syntax-highlight.css

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)