Changeset 3461553
- Timestamp:
- 02/14/2026 11:26:33 PM (6 weeks ago)
- Location:
- draftseo-ai
- Files:
-
- 26 added
- 3 edited
-
tags/1.0.4 (added)
-
tags/1.0.4/LICENSE.txt (added)
-
tags/1.0.4/README.md (added)
-
tags/1.0.4/admin (added)
-
tags/1.0.4/admin/css (added)
-
tags/1.0.4/admin/css/admin-styles.css (added)
-
tags/1.0.4/admin/css/index.php (added)
-
tags/1.0.4/admin/index.php (added)
-
tags/1.0.4/admin/js (added)
-
tags/1.0.4/admin/js/admin-scripts.js (added)
-
tags/1.0.4/admin/js/index.php (added)
-
tags/1.0.4/admin/settings-page.php (added)
-
tags/1.0.4/draftseo-ai.php (added)
-
tags/1.0.4/includes (added)
-
tags/1.0.4/includes/class-api-client.php (added)
-
tags/1.0.4/includes/class-content-processor.php (added)
-
tags/1.0.4/includes/class-image-handler.php (added)
-
tags/1.0.4/includes/class-rest-api.php (added)
-
tags/1.0.4/includes/class-seo-handler.php (added)
-
tags/1.0.4/includes/class-settings.php (added)
-
tags/1.0.4/includes/index.php (added)
-
tags/1.0.4/index.php (added)
-
tags/1.0.4/languages (added)
-
tags/1.0.4/languages/index.php (added)
-
tags/1.0.4/readme.txt (added)
-
tags/1.0.4/uninstall.php (added)
-
trunk/README.md (modified) (1 diff)
-
trunk/draftseo-ai.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
draftseo-ai/trunk/README.md
r3461540 r3461553 173 173 ## Changelog 174 174 175 ### 1.0.4 176 177 Pipeline ordering and content processing fixes for YouTube embeds and headings. 178 179 - **YouTube pipeline order fix** — The YouTube-to-Gutenberg-block converter was running after the markdown link converter and paragraph wrapper, which had already transformed YouTube URLs into `<a>` tags or wrapped them in `<p>` tags — making them unrecognizable. YouTube conversion now runs at the front of the pipeline, before any markdown or paragraph processing occurs. 180 - **Gutenberg block comment preservation** — The `removeHtmlComments()` cleanup step was stripping ALL HTML comments, including the essential `<!-- wp:embed -->` and `<!-- /wp:embed -->` markers that WordPress needs to render video blocks. The function now preserves any comments starting with `<!-- wp:` or `<!-- /wp:` while still removing other HTML comments. 181 - **Paragraph wrapper Gutenberg awareness** — The `wrapLooseParagraphs()` function was wrapping Gutenberg block comment lines in `<p>` tags, breaking the block structure. It now recognizes `<!-- wp:` and `<!-- /wp:` lines as block-level content and leaves them untouched. 182 - **Heading after image fix** — The markdown image converter (`convertMarkdownImages`) was not adding a newline after the closing `</figure>` tag. When the AI placed a heading immediately after an image (`\n### Heading`), the heading was glued to `</figure>` on the same line, preventing the heading converter from matching it. A trailing newline is now added after every `</figure>`. 183 - **Removed auto-generated figcaptions** — The image converter was duplicating the image's alt text into a visible `<figcaption>` element below every image. Alt text like "lizard aquarium – Creating the Ideal Environment" appeared as bold text under the photo. Alt text is metadata for accessibility (screen readers) and SEO — it should not be displayed as visible content. The `<figcaption>` generation has been removed; images now only use the `alt` attribute. 184 175 185 ### 1.0.3 176 186 -
draftseo-ai/trunk/draftseo-ai.php
r3461540 r3461553 4 4 * Plugin URI: https://draftseo.ai/wp-plugin 5 5 * Description: Publish AI-generated blogs from DraftSEO.AI platform directly to WordPress. Transfers images from Nebius CDN to WordPress media library while maintaining SEO optimization. 6 * Version: 1.0. 36 * Version: 1.0.4 7 7 * Author: DraftSEO.AI 8 8 * Author URI: https://draftseo.ai … … 38 38 39 39 // Define plugin constants 40 define('DRAFTSEO_VERSION', '1.0. 3');40 define('DRAFTSEO_VERSION', '1.0.4'); 41 41 define('DRAFTSEO_PLUGIN_DIR', plugin_dir_path(__FILE__)); 42 42 define('DRAFTSEO_PLUGIN_URL', plugin_dir_url(__FILE__)); -
draftseo-ai/trunk/readme.txt
r3461540 r3461553 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 37 Stable tag: 1.0.4 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 106 106 107 107 == Changelog == 108 109 = 1.0.4 = 110 111 Pipeline ordering and content processing fixes for YouTube embeds and headings. 112 113 * Fixed YouTube videos not rendering on WordPress — the content processing pipeline was converting YouTube URLs to Gutenberg embed blocks too late, after other processors had already transformed them into unrecognizable formats. YouTube conversion now runs before markdown and paragraph processing 114 * Fixed Gutenberg embed block markers being stripped — the HTML comment cleaner was removing all comments including the essential `<!-- wp:embed -->` and `<!-- /wp:embed -->` markers. Comment cleaner now preserves WordPress block comments 115 * Fixed paragraph wrapper breaking Gutenberg blocks — lines containing Gutenberg block markers were being incorrectly wrapped in `<p>` tags, breaking the block structure. Paragraph wrapper now recognizes `<!-- wp:` lines as block-level content 116 * Fixed markdown headings appearing as raw text after images — the image-to-figure converter did not add a newline after `</figure>`, causing the next line's heading (e.g., `### Heading`) to be glued to the figure tag and unrecognized by the heading converter 117 * Removed auto-generated figcaptions from images — image alt text was being duplicated as a visible `<figcaption>` below every image, showing descriptive text that should only be used for accessibility (screen readers). Images now use alt text in the `alt` attribute only 108 118 109 119 = 1.0.3 = … … 217 227 == Upgrade Notice == 218 228 229 = 1.0.4 = 230 Fixes YouTube videos not rendering on WordPress by correcting pipeline order and preserving Gutenberg block markers. Also fixes headings appearing as raw markdown after images. 231 219 232 = 1.0.3 = 220 233 Fixes YouTube videos being stripped when publishing to WordPress. Also fixes headings rendering as plain text and malformed citation links.
Note: See TracChangeset
for help on using the changeset viewer.