Skip to content

Commit b3d1600

Browse files
committed
capitalizes AI and updates email address
1 parent 141210b commit b3d1600

13 files changed

+38
-39
lines changed

CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at classifai@10up.com. All
58+
reported by contacting the project team at opensource@10up.com. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.

includes/Classifai/Admin/Notifications.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function maybe_render_notices() {
4040

4141
?>
4242
<div data-notice="auto-upgrade-disabled" class="notice notice-warning">
43-
<?php /* translators: %s: Classifai settings url */ ?>
43+
<?php /* translators: %s: ClassifAI settings url */ ?>
4444
<p><?php echo wp_kses_post( sprintf( __( '<a href="%s">Register ClassifAI</a> to receive important plugin updates and other ClassifAI news.', 'classifai' ), esc_url( $notice_url ) ) ); ?></p>
4545
</div>
4646
<?php

includes/Classifai/Admin/SavePostHandler.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Classifai\Admin;
44

55
/**
6-
* Classifies Posts based on the current Classifai configuration.
6+
* Classifies Posts based on the current ClassifAI configuration.
77
*/
88
class SavePostHandler {
99

@@ -40,7 +40,7 @@ public function can_register() {
4040
}
4141

4242
/**
43-
* If current post type support is enabled in Classifai settings, it
43+
* If current post type support is enabled in ClassifAI settings, it
4444
* is tagged using the IBM Watson classification result.
4545
*
4646
* Skips classification if running under the Gutenberg Metabox
@@ -73,7 +73,7 @@ public function did_save_post( $post_id ) {
7373
*/
7474
public function classify( $post_id ) {
7575
/**
76-
* Filter whether Classifai should classify a post.
76+
* Filter whether ClassifAI should classify a post.
7777
*
7878
* Default is true, return false to skip classifying a post.
7979
*

includes/Classifai/Admin/SettingsPage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class SettingsPage {
66

77
/**
8-
* @var string $option Option that stores the classifai settings
8+
* @var string $option Option that stores the ClassifAI settings
99
*/
1010
public $option = 'classifai_settings';
1111

includes/Classifai/Command/ClassifaiCommand.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
use Classifai\PostClassifier;
99

1010
/**
11-
* ClassifaiCommand is the command line interface of the Classifai plugin.
11+
* ClassifaiCommand is the command line interface of the ClassifAI plugin.
1212
* It provides subcommands to test classification results and batch
1313
* classify posts using the IBM Watson NLU API.
1414
*/
1515
class ClassifaiCommand extends \WP_CLI_Command {
1616

1717

1818
/**
19-
* Batch classifies post(s) using the current Classifai configuration.
19+
* Batch classifies post(s) using the current ClassifAI configuration.
2020
*
2121
* ## Options
2222
*
@@ -309,4 +309,3 @@ private function print( $output, $post_id ) {
309309
}
310310

311311
}
312-

includes/Classifai/Helpers.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
/**
66
* Miscellaneous Helper functions to access different parts of the
7-
* Classifai plugin.
7+
* ClassifAI plugin.
88
*/
99

1010
/**
11-
* Returns the Classifai plugin's singleton instance
11+
* Returns the ClassifAI plugin's singleton instance
1212
*
1313
* @return Plugin
1414
*/
@@ -17,14 +17,14 @@ function get_plugin() {
1717
}
1818

1919
/**
20-
* Returns the Classifai plugin's stored settings in the WP options
20+
* Returns the ClassifAI plugin's stored settings in the WP options
2121
*/
2222
function get_plugin_settings() {
2323
return get_option( 'classifai_settings' );
2424
}
2525

2626
/**
27-
* Overwrites the Classifai plugin's stored settings. Expected format is,
27+
* Overwrites the ClassifAI plugin's stored settings. Expected format is,
2828
*
2929
* [
3030
'post_types' => [ <list of post type names> ]
@@ -141,7 +141,7 @@ function get_watson_password() {
141141
}
142142

143143
/**
144-
* The list of post types that get the Classifai taxonomies. Defaults
144+
* The list of post types that get the ClassifAI taxonomies. Defaults
145145
* to 'post'.
146146
*
147147
* return array

includes/Classifai/Plugin.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Classifai\Taxonomy\TaxonomyFactory;
77

88
/**
9-
* The main Classifai plugin object. Used as a singleton.
9+
* The main ClassifAI plugin object. Used as a singleton.
1010
*/
1111
class Plugin {
1212

@@ -66,7 +66,7 @@ public function enqueue_editor_assets() {
6666
}
6767

6868
/**
69-
* Initializes the Classifai plugin modules and support objects.
69+
* Initializes the ClassifAI plugin modules and support objects.
7070
*/
7171
public function init() {
7272
do_action( 'before_classifai_init' );
@@ -119,7 +119,7 @@ public function init_admin_support() {
119119
}
120120

121121
/**
122-
* Adds Classifai Gutenberg Support if on the Gutenberg editor page
122+
* Adds ClassifAI Gutenberg Support if on the Gutenberg editor page
123123
*/
124124
public function init_admin_scripts() {
125125
if ( function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ) {
@@ -134,7 +134,7 @@ public function init_admin_scripts() {
134134
}
135135

136136
/**
137-
* Initializes the Classifai WP CLI integration
137+
* Initializes the ClassifAI WP CLI integration
138138
*/
139139
public function init_commands() {
140140
\WP_CLI::add_command(

includes/Classifai/Taxonomy/AbstractTaxonomy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Classifai\Taxonomy;
44

55
/**
6-
* Abstract Base Class for Classifai Taxonomies. A Taxonomy should
6+
* Abstract Base Class for ClassifAI Taxonomies. A Taxonomy should
77
* declare a constant in the config.php file.
88
*
99
* Usage:

includes/Classifai/Taxonomy/CategoryTaxonomy.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@
1717
class CategoryTaxonomy extends AbstractTaxonomy {
1818

1919
/**
20-
* Get the classifai category taxonomy name.
20+
* Get the ClassifAI category taxonomy name.
2121
*/
2222
public function get_name() {
2323
return WATSON_CATEGORY_TAXONOMY;
2424
}
2525

2626
/**
27-
* Get the classifai category taxonomy label.
27+
* Get the ClassifAI category taxonomy label.
2828
*/
2929
public function get_singular_label() {
3030
return esc_html__( 'Watson Category', 'classifai' );
3131
}
3232

3333
/**
34-
* Get the classifai category taxonomy plural label.
34+
* Get the ClassifAI category taxonomy plural label.
3535
*/
3636
public function get_plural_label() {
3737
return esc_html__( 'Watson Categories', 'classifai' );
3838
}
3939

4040
/**
41-
* Get the classifai category taxonomy visibility.
41+
* Get the ClassifAI category taxonomy visibility.
4242
*/
4343
public function get_visibility() {
4444
return \Classifai\get_feature_enabled( 'category' ) &&

includes/Classifai/Taxonomy/ConceptTaxonomy.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@
1717
class ConceptTaxonomy extends AbstractTaxonomy {
1818

1919
/**
20-
* Get the classifai concept taxonomy name.
20+
* Get the ClassifAI concept taxonomy name.
2121
*/
2222
public function get_name() {
2323
return WATSON_CONCEPT_TAXONOMY;
2424
}
2525

2626
/**
27-
* Get the classifai concept taxonomy label.
27+
* Get the ClassifAI concept taxonomy label.
2828
*/
2929
public function get_singular_label() {
3030
return esc_html__( 'Watson Concept', 'classifai' );
3131
}
3232

3333
/**
34-
* Get the classifai concept taxonomy plural label.
34+
* Get the ClassifAI concept taxonomy plural label.
3535
*/
3636
public function get_plural_label() {
3737
return esc_html__( 'Watson Concepts', 'classifai' );
3838
}
3939

4040
/**
41-
* Get the classifai concept taxonomy visibility.
41+
* Get the ClassifAI concept taxonomy visibility.
4242
*/
4343
public function get_visibility() {
4444
return \Classifai\get_feature_enabled( 'concept' ) &&

includes/Classifai/Taxonomy/EntityTaxonomy.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Classifai\Taxonomy;
44

55
/**
6-
* The Classifai Entity Taxonomy.
6+
* The ClassifAI Entity Taxonomy.
77
*
88
* Usage:
99
*
@@ -17,28 +17,28 @@
1717
class EntityTaxonomy extends AbstractTaxonomy {
1818

1919
/**
20-
* Get the classifai entity taxonomy name.
20+
* Get the ClassifAI entity taxonomy name.
2121
*/
2222
public function get_name() {
2323
return WATSON_ENTITY_TAXONOMY;
2424
}
2525

2626
/**
27-
* Get the classifai entity taxonomy label.
27+
* Get the ClassifAI entity taxonomy label.
2828
*/
2929
public function get_singular_label() {
3030
return esc_html__( 'Watson Entity', 'classifai' );
3131
}
3232

3333
/**
34-
* Get the classifai entity taxonomy plural label.
34+
* Get the ClassifAI entity taxonomy plural label.
3535
*/
3636
public function get_plural_label() {
3737
return esc_html__( 'Watson Entities', 'classifai' );
3838
}
3939

4040
/**
41-
* Get the classifai entity taxonomy visibility.
41+
* Get the ClassifAI entity taxonomy visibility.
4242
*/
4343
public function get_visibility() {
4444
return \Classifai\get_feature_enabled( 'entity' ) &&

includes/Classifai/Taxonomy/KeywordTaxonomy.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Classifai\Taxonomy;
44

55
/**
6-
* The Classifai Keyword Taxonomy.
6+
* The ClassifAI Keyword Taxonomy.
77
*
88
* Usage:
99
*
@@ -17,28 +17,28 @@
1717
class KeywordTaxonomy extends AbstractTaxonomy {
1818

1919
/**
20-
* Get the classifai keyword taxonomy name.
20+
* Get the ClassifAI keyword taxonomy name.
2121
*/
2222
public function get_name() {
2323
return WATSON_KEYWORD_TAXONOMY;
2424
}
2525

2626
/**
27-
* Get the classifai keyword taxonomy label.
27+
* Get the ClassifAI keyword taxonomy label.
2828
*/
2929
public function get_singular_label() {
3030
return esc_html__( 'Watson Keyword', 'classifai' );
3131
}
3232

3333
/**
34-
* Get the classifai keyword taxonomy plural label.
34+
* Get the ClassifAI keyword taxonomy plural label.
3535
*/
3636
public function get_plural_label() {
3737
return esc_html__( 'Watson Keywords', 'classifai' );
3838
}
3939

4040
/**
41-
* Get the classifai keyword taxonomy visibility.
41+
* Get the ClassifAI keyword taxonomy visibility.
4242
*/
4343
public function get_visibility() {
4444
return \Classifai\get_feature_enabled( 'keyword' ) &&

languages/classifai.pot

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ msgid "Error: Please run $ composer install in the classifai plugin directory."
2222
msgstr ""
2323

2424
#: includes/Classifai/Admin/Notifications.php:44
25-
#. translators: %s: Classifai settings url
25+
#. translators: %s: ClassifAI settings url
2626
msgid ""
2727
"<a href=\"%s\">Register ClassifAI</a> to receive important plugin updates "
2828
"and other ClassifAI news."
@@ -136,7 +136,7 @@ msgid "Post Types to Classify"
136136
msgstr ""
137137

138138
#: includes/Classifai/Admin/SettingsPage.php:261
139-
msgid "Classifai Settings"
139+
msgid "ClassifAI Settings"
140140
msgstr ""
141141

142142
#: includes/Classifai/Admin/SettingsPage.php:371

0 commit comments

Comments
 (0)