Changeset 3455141
- Timestamp:
- 02/06/2026 05:35:34 AM (2 weeks ago)
- Location:
- contentpen
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.6 (copied) (copied from contentpen/trunk)
-
tags/1.0.6/README.txt (modified) (1 diff)
-
tags/1.0.6/contentpen-plugin.php (modified) (2 diffs)
-
tags/1.0.6/includes/class-contentpen-api.php (modified) (3 diffs)
-
trunk/README.txt (modified) (1 diff)
-
trunk/contentpen-plugin.php (modified) (2 diffs)
-
trunk/includes/class-contentpen-api.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contentpen/tags/1.0.6/README.txt
r3451786 r3455141 3 3 Tags: AI, content writing, SEO, blogging, content marketing 4 4 Requires at least: 5.8 5 Tested up to: 6. 86 Stable tag: 1.0. 55 Tested up to: 6.7 6 Stable tag: 1.0.6 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later -
contentpen/tags/1.0.6/contentpen-plugin.php
r3451786 r3455141 5 5 * Plugin URI: https://contentpen.ai 6 6 * Description: Contentpen is an AI-powered content writing assistant designed to help businesses create, optimize, and publish SEO-friendly blog posts at scale. By combining deep research with your brand's unique voice, Contentpen crafts high-impact articles that outperform your competition. 7 * Version: 1.0. 57 * Version: 1.0.6 8 8 * Requires at least: 5.8 9 9 * Requires PHP: 7.4 … … 20 20 } 21 21 22 define('CONTENTPEN_VERSION', '1.0. 5');22 define('CONTENTPEN_VERSION', '1.0.6'); 23 23 define('CONTENTPEN_PLUGIN_DIR', plugin_dir_path(__FILE__)); 24 24 define('CONTENTPEN_PLUGIN_URL', plugin_dir_url(__FILE__)); -
contentpen/tags/1.0.6/includes/class-contentpen-api.php
r3451786 r3455141 3 3 exit; 4 4 } 5 6 require_once plugin_dir_path(__FILE__) . 'class-gutenberg-converter.php'; 5 7 6 8 class ContentPen_API … … 190 192 $this->kses_remove_filters(); 191 193 194 // Convert HTML content to Gutenberg blocks 195 $content = ContentPen_Gutenberg_Converter::convert($params['content']); 196 192 197 // Prepare post data 198 // Note: Don't use wp_kses_post on $content as it strips Gutenberg block comments 193 199 $post_data = array( 194 200 'post_title' => sanitize_text_field($params['title']), 195 'post_content' => wp_kses_post($params['content']),201 'post_content' => $content, 196 202 'post_status' => isset($params['status']) ? sanitize_text_field($params['status']) : 'draft', 197 203 'post_author' => isset($params['author']) ? (int)$params['author'] : get_current_user_id(), … … 664 670 } 665 671 if (isset($params['content'])) { 666 $post_data['post_content'] = wp_kses_post($params['content']); 672 // Convert HTML content to Gutenberg blocks 673 // Note: Don't use wp_kses_post as it strips Gutenberg block comments 674 $content = ContentPen_Gutenberg_Converter::convert($params['content']); 675 $post_data['post_content'] = $content; 667 676 } 668 677 if (isset($params['status'])) { -
contentpen/trunk/README.txt
r3451786 r3455141 3 3 Tags: AI, content writing, SEO, blogging, content marketing 4 4 Requires at least: 5.8 5 Tested up to: 6. 86 Stable tag: 1.0. 55 Tested up to: 6.7 6 Stable tag: 1.0.6 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later -
contentpen/trunk/contentpen-plugin.php
r3451786 r3455141 5 5 * Plugin URI: https://contentpen.ai 6 6 * Description: Contentpen is an AI-powered content writing assistant designed to help businesses create, optimize, and publish SEO-friendly blog posts at scale. By combining deep research with your brand's unique voice, Contentpen crafts high-impact articles that outperform your competition. 7 * Version: 1.0. 57 * Version: 1.0.6 8 8 * Requires at least: 5.8 9 9 * Requires PHP: 7.4 … … 20 20 } 21 21 22 define('CONTENTPEN_VERSION', '1.0. 5');22 define('CONTENTPEN_VERSION', '1.0.6'); 23 23 define('CONTENTPEN_PLUGIN_DIR', plugin_dir_path(__FILE__)); 24 24 define('CONTENTPEN_PLUGIN_URL', plugin_dir_url(__FILE__)); -
contentpen/trunk/includes/class-contentpen-api.php
r3451786 r3455141 3 3 exit; 4 4 } 5 6 require_once plugin_dir_path(__FILE__) . 'class-gutenberg-converter.php'; 5 7 6 8 class ContentPen_API … … 190 192 $this->kses_remove_filters(); 191 193 194 // Convert HTML content to Gutenberg blocks 195 $content = ContentPen_Gutenberg_Converter::convert($params['content']); 196 192 197 // Prepare post data 198 // Note: Don't use wp_kses_post on $content as it strips Gutenberg block comments 193 199 $post_data = array( 194 200 'post_title' => sanitize_text_field($params['title']), 195 'post_content' => wp_kses_post($params['content']),201 'post_content' => $content, 196 202 'post_status' => isset($params['status']) ? sanitize_text_field($params['status']) : 'draft', 197 203 'post_author' => isset($params['author']) ? (int)$params['author'] : get_current_user_id(), … … 664 670 } 665 671 if (isset($params['content'])) { 666 $post_data['post_content'] = wp_kses_post($params['content']); 672 // Convert HTML content to Gutenberg blocks 673 // Note: Don't use wp_kses_post as it strips Gutenberg block comments 674 $content = ContentPen_Gutenberg_Converter::convert($params['content']); 675 $post_data['post_content'] = $content; 667 676 } 668 677 if (isset($params['status'])) {
Note: See TracChangeset
for help on using the changeset viewer.