Skip to content

Commit 2a0d9d7

Browse files
committed
Release: (bfb3822) Merge branch 'develop' into trunk
1 parent cd59199 commit 2a0d9d7

30 files changed

+933
-329
lines changed

classifai.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://github.com/10up/classifai
55
* Update URI: https://classifaiplugin.com
66
* Description: Enhance your WordPress content with Artificial Intelligence and Machine Learning services.
7-
* Version: 2.3.0
7+
* Version: 2.4.0
88
* Requires at least: 5.8
99
* Requires PHP: 7.4
1010
* Author: 10up
@@ -87,7 +87,7 @@ classifai_define( 'CLASSIFAI_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
8787
/**
8888
* Loads the CLASSIFAI PHP autoloader if possible.
8989
*
90-
* @return bool True or false if autoloading was successfull.
90+
* @return bool True or false if autoloading was successful.
9191
*/
9292
function classifai_autoload() {
9393
if ( classifai_can_autoload() ) {

config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* declared here instead of a Class.
55
*/
66

7-
$plugin_version = '2.3.0';
7+
$plugin_version = '2.4.0';
88

99
if ( file_exists( __DIR__ . '/.commit' ) ) {
1010
$plugin_version .= '-' . file_get_contents( __DIR__ . '/.commit' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents

dist/admin.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' => 'b88da674f852dcc57e0e');
1+
<?php return array('dependencies' => array('wp-i18n'), 'version' => 'c640880b75ab1a186669');

dist/admin.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.

dist/admin.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.

includes/Classifai/Admin/SavePostHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function is_configured() {
6464
*
6565
* Skips classification if running under the Gutenberg Metabox
6666
* compatibility request. The classification is performed during the REST
67-
* lifecyle when using Gutenberg.
67+
* lifecycle when using Gutenberg.
6868
*
6969
* @param int $post_id The post that was saved
7070
*/

includes/Classifai/Blocks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function blocks_styles() {
4848
'recommended-content-block-style',
4949
CLASSIFAI_PLUGIN_URL . 'dist/recommended-content-block-frontend.css',
5050
[],
51-
CLASSIFAI_PLUGIN_VERSION
51+
get_asset_info( 'recommended-content-block-frontend', 'version' )
5252
);
5353

5454
wp_enqueue_script(

includes/Classifai/Command/ClassifaiCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ private function should_transcribe_attachment( $attachment, int $attachment_id,
750750
* ## Options
751751
*
752752
* [<attachment_ids>]
753-
* : Comma delimeted Attachment IDs to classify
753+
* : Comma delimited Attachment IDs to classify
754754
*
755755
* [--limit=<limit>]
756756
* : Limit classification to N attachments. Default 100.
@@ -1219,7 +1219,7 @@ private function get_attachment_to_classify( $opts = [] ) {
12191219
/**
12201220
* Prints the output from the NLU API.
12211221
*
1222-
* @param mixed $output The variable to oputput.
1222+
* @param mixed $output The variable to output.
12231223
* @param int $post_id The post id.
12241224
*/
12251225
private function print( $output, $post_id ) {

includes/Classifai/Plugin.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,22 +158,24 @@ public function add_privacy_policy_content() {
158158

159159
/**
160160
* Enqueue the admin scripts.
161+
*
162+
* @since 2.4.0 Use get_asset_info to get the asset version and dependencies.
161163
*/
162164
public function enqueue_admin_assets() {
163165

164166
wp_enqueue_style(
165167
'classifai-admin-style',
166168
CLASSIFAI_PLUGIN_URL . 'dist/admin.css',
167169
array(),
168-
CLASSIFAI_PLUGIN_VERSION,
170+
get_asset_info( 'admin', 'version' ),
169171
'all'
170172
);
171173

172174
wp_enqueue_script(
173175
'classifai-admin-script',
174176
CLASSIFAI_PLUGIN_URL . 'dist/admin.js',
175-
[],
176-
CLASSIFAI_PLUGIN_VERSION,
177+
get_asset_info( 'admin', 'dependencies' ),
178+
get_asset_info( 'admin', 'version' ),
177179
true
178180
);
179181

includes/Classifai/Providers/Azure/ComputerVision.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ public function sanitize_settings( $settings ) {
11931193
}
11941194

11951195
/**
1196-
* Authenitcates our credentials.
1196+
* Authenticates our credentials.
11971197
*
11981198
* @param string $url Endpoint URL.
11991199
* @param string $api_key Api Key.

0 commit comments

Comments
 (0)