11<?php
22/**
33 * Plugin Name: Relevant Density Optimizer
4- * Description: Highlight relevant terms in Gutenberg editor and optimize density.
4+ * Description: Highlight relevant terms in Gutenberg editor and optimize density for SEO .
55 * Author: Infinitnet
6- * Version: 1.6
6+ * Author URI: https://infinitnet.io/
7+ * Plugin URI: https://infinitnet.io/relevant-density-optimizer/
8+ * Update URI: https://github.com/infinitnet/relevant-density-optimizer
9+ * Version: 1.6.1
10+ * License: GPLv3
11+ * Text Domain: relevant-density-optimizer
712 */
813
14+ namespace Infinitnet \RDO ;
15+
16+ define ('RDO_VERSION ' , '1.6.1 ' );
17+
918function rdo_enqueue_block_editor_assets () {
10- if (!wp_script_is ('rdo-editor -js ' , 'enqueued ' )) {
11- wp_enqueue_script ('rdo-editor -js ' , plugin_dir_url (__FILE__ ) . 'editor .js ' , array ('wp-plugins ' , 'wp-edit-post ' , 'wp-element ' , 'wp-data ' , 'wp-compose ' , 'wp-components ' ), ' 1.1 ' , true );
19+ if (!wp_script_is ('rdo-plugin -js ' , 'enqueued ' )) {
20+ wp_enqueue_script ('rdo-plugin -js ' , plugin_dir_url (__FILE__ ) . 'rdo .js ' , array ('wp-plugins ' , 'wp-edit-post ' , 'wp-element ' , 'wp-data ' , 'wp-compose ' , 'wp-components ' ), RDO_VERSION , true );
1221 }
1322
14- wp_enqueue_style ('rdo-editor -css ' , plugin_dir_url (__FILE__ ) . 'editor .css ' , array (), ' 1.1 ' );
23+ wp_enqueue_style ('rdo-plugin -css ' , plugin_dir_url (__FILE__ ) . 'rdo .css ' , array (), RDO_VERSION );
1524}
1625
17- add_action ('enqueue_block_editor_assets ' , 'rdo_enqueue_block_editor_assets ' );
18-
1926function rdo_register_meta () {
2027 register_meta ('post ' , '_important_terms ' , array (
2128 'show_in_rest ' => true ,
@@ -27,4 +34,5 @@ function rdo_register_meta() {
2734 ));
2835}
2936
30- add_action ('init ' , 'rdo_register_meta ' );
37+ add_action ('enqueue_block_editor_assets ' , __NAMESPACE__ . '\rdo_enqueue_block_editor_assets ' );
38+ add_action ('init ' , __NAMESPACE__ . '\rdo_register_meta ' );
0 commit comments