← All changes
|
includes/seo/class-content-optimization-manager.php
+2
-2
1.26.0
→
2.7.0
View file →
| @@ -1049,9 +1049,9 @@ | ||
| 1049 | 1049 | // Get recent posts for blog homepage |
| 1050 | 1050 | $recent_posts = get_posts(['numberposts' => 3]); |
| 1051 | 1051 | $content_parts = []; |
| 1052 | 1052 | foreach ($recent_posts as $post) { |
| 1053 | - $content_parts[] = $post->post_title . ' ' . wp_trim_words($post->post_content, 100); | |
| 1053 | + $content_parts[] = $post->post_title . ' ' . \ThinkRank\Core\Seo_Text::trim_words($post->post_content, 100, '...', 1000); | |
| 1054 | 1054 | } |
| 1055 | 1055 | $content = implode(' ', $content_parts); |
| 1056 | 1056 | } |
| 1057 | 1057 | break; |
| @@ -1402,9 +1402,9 @@ | ||
| 1402 | 1402 | // Word count recommendations |
| 1403 | 1403 | if (!empty($compliance['word_count_compliance']) && |
| 1404 | 1404 | $compliance['word_count_compliance']['status'] === 'non_compliant') { |
| 1405 | 1405 | $needed = $compliance['word_count_compliance']['min_required'] - |
| 1406 | - $compliance['word_count_compliance']['current_count']; | |
| 1406 | + $compliance['word_count_compliance']['current_count']; | |
| 1407 | 1407 | $recommendations[] = [ |
| 1408 | 1408 | 'type' => 'word_count', |
| 1409 | 1409 | 'priority' => 'high', |
| 1410 | 1410 | 'message' => "Add {$needed} more words to meet minimum requirements", |