Skip to content

Commit 896aa3c

Browse files
committed
Minor cleanup in the main Plugin.php file
1 parent 0019a90 commit 896aa3c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ classifai_define( 'CLASSIFAI_PLUGIN', __DIR__ . '/classifai.php' );
1010
classifai_define( 'CLASSIFAI_PLUGIN_VERSION', $plugin_version );
1111
classifai_define( 'CLASSIFAI_PLUGIN_DIR', __DIR__ );
1212
classifai_define( 'CLASSIFAI_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
13-
classifai_define( 'CLASSIFAI_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
13+
classifai_define( 'CLASSIFAI_PLUGIN_BASENAME', plugin_basename( __DIR__ . '/classifai.php' ) );
1414

1515
// IBM Watson constants
1616

includes/Classifai/Plugin.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ public function init() {
5353
*/
5454
do_action( 'before_classifai_init' );
5555

56-
// Initialize the services, each services handles the providers
56+
// Initialize the services; each service handles their features.
5757
$this->init_services();
5858

59+
// TODO: is there a better place for this?
5960
$post_types = get_supported_post_types();
6061
foreach ( $post_types as $post_type ) {
6162
register_meta(
@@ -69,11 +70,11 @@ public function init() {
6970
);
7071
}
7172

72-
// Initialize the classifAI Onboarding.
73+
// Initialize the ClassifAI Onboarding.
7374
$onboarding = new Admin\Onboarding();
7475
$onboarding->init();
7576

76-
// Initialize the classifAI User Profile.
77+
// Initialize the ClassifAI User Profile.
7778
$user_profile = new Admin\UserProfile();
7879
$user_profile->init();
7980

@@ -126,7 +127,7 @@ public function init_services() {
126127
}
127128

128129
/**
129-
* Initiates classes providing admin feature sfor the plugin.
130+
* Initiates classes providing admin features.
130131
*
131132
* @since 1.4.0
132133
*/
@@ -216,10 +217,9 @@ public function enqueue_admin_assets() {
216217
* Add the action links to the plugin page.
217218
*
218219
* @param array $links The Action links for the plugin.
219-
*
220220
* @return array
221221
*/
222-
public function filter_plugin_action_links( $links ) {
222+
public function filter_plugin_action_links( $links ): array {
223223

224224
if ( ! is_array( $links ) ) {
225225
return $links;

0 commit comments

Comments
 (0)