← All changes
|
includes/abilities/content/class-get-post-content.php
+13
-8
2.7.0
→
2.14.0
View file →
| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | */ |
| 45 | 45 | public function __construct() { |
| 46 | 46 | $this->id = 'thinkrank/get-post-content'; |
| 47 | 47 | $this->label = __( 'Get ThinkRank Post Content', 'thinkrank' ); |
| 48 | - $this->description = __( 'Read a post or page\'s body content so you can judge what it is about before changing its SEO fields. Returns the text the page actually renders — resolved from the page builder when one owns the page — plus the raw stored post_content and which builder is in use. Read-only: use update-post-seo to change SEO fields. Use list-content-items to find ids.', 'thinkrank' ); | |
| 48 | + $this->description = __( 'Read a post or page\'s body content so you can judge what it is about before changing its SEO fields. Returns the text the page actually renders, resolved from the page builder when one owns the page, plus the raw stored post_content and which builder is in use. Read-only: use update-post-seo to change SEO fields. Use list-content-items to find ids.', 'thinkrank' ); | |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * {@inheritDoc} |
| @@ -206,16 +206,21 @@ | ||
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | // Same keys Builder_Content resolves through, in the same order. Kept |
| 209 | 209 | // as a local map because this one also needs a display label per key, |
| 210 | - // and Oxygen spans three of them across its generations — Oxygen 6 is | |
| 211 | - // Breakdance under the hood. | |
| 210 | + // and Oxygen spans several of them across its generations — Oxygen 6 is | |
| 211 | + // Breakdance under the hood, and Oxygen classic 4.8.3+ prefixes its | |
| 212 | + // keys with an underscore. Missing the JSON and prefixed keys, a | |
| 213 | + // current Oxygen classic page was reported as built in no builder. | |
| 212 | 214 | $labels = [ |
| 213 | - '_breakdance_data' => 'breakdance', | |
| 214 | - '_oxygen_data' => 'oxygen', | |
| 215 | - 'ct_builder_shortcodes' => 'oxygen', | |
| 216 | - '_elementor_data' => 'elementor', | |
| 217 | - '_fl_builder_data' => 'beaver-builder', | |
| 215 | + '_breakdance_data' => 'breakdance', | |
| 216 | + '_oxygen_data' => 'oxygen', | |
| 217 | + '_ct_builder_json' => 'oxygen', | |
| 218 | + 'ct_builder_json' => 'oxygen', | |
| 219 | + '_ct_builder_shortcodes' => 'oxygen', | |
| 220 | + 'ct_builder_shortcodes' => 'oxygen', | |
| 221 | + '_elementor_data' => 'elementor', | |
| 222 | + '_fl_builder_data' => 'beaver-builder', | |
| 218 | 223 | ]; |
| 219 | 224 | |
| 220 | 225 | foreach ( $labels as $key => $label ) { |
| 221 | 226 | $stored = get_post_meta( $post_id, $key, true ); |