| @@ -216,10 +216,13 @@ | ||
| 216 | 216 | 'meta_title' => !empty($meta_title), |
| 217 | 217 | 'meta_description' => !empty($meta_description), |
| 218 | 218 | 'seo_title_raw' => $seo_title_raw, |
| 219 | 219 | 'meta_description_raw' => $meta_description_raw, |
| 220 | - 'effective_title' => $meta_title, | |
| 221 | - 'effective_description' => $meta_description, | |
| 220 | + // Placeholders in Quick Edit, so decoded to the text the page | |
| 221 | + // shows: get_the_title() texturizes "&" into `&`, which | |
| 222 | + // esc_attr() then carried into the field verbatim. | |
| 223 | + 'effective_title' => \ThinkRank\Core\Seo_Text::as_displayed($meta_title), | |
| 224 | + 'effective_description' => \ThinkRank\Core\Seo_Text::as_displayed($meta_description), | |
| 222 | 225 | 'pillar_content' => $this->is_link_suggestions_enabled(get_post_type($post_id)) && get_post_meta($post_id, '_thinkrank_pillar_content', true) === '1', |
| 223 | 226 | ]; |
| 224 | 227 | } |
| 225 | 228 | |
| @@ -741,9 +744,8 @@ | ||
| 741 | 744 | 'actionGet' => \ThinkRank\Admin\Seo_Quick_Edit_Ajax::get_ajax_action_get(), |
| 742 | 745 | 'actionSave' => \ThinkRank\Admin\Seo_Quick_Edit_Ajax::get_ajax_action_save(), |
| 743 | 746 | 'titleMax' => 60, |
| 744 | 747 | 'descriptionMax' => 160, |
| 745 | - 'keywordLimit' => \ThinkRank\SEO\Focus_Keywords::limit(), | |
| 746 | 748 | 'i18n' => [ |
| 747 | 749 | 'modalTitle' => __('Quick Edit SEO', 'thinkrank'), |
| 748 | 750 | 'seoTitle' => __('SEO Title', 'thinkrank'), |
| 749 | 751 | 'seoTitleHelp' => __('Keep it under 60 characters for best results.', 'thinkrank'), |
| @@ -749,10 +751,9 @@ | ||
| 749 | 751 | 'seoTitleHelp' => __('Keep it under 60 characters for best results.', 'thinkrank'), |
| 750 | 752 | 'metaDescription' => __('Meta Description', 'thinkrank'), |
| 751 | 753 | 'metaDescriptionHelp' => __('Keep it under 160 characters for best results.', 'thinkrank'), |
| 752 | 754 | 'focusKeywords' => __('Focus Keywords', 'thinkrank'), |
| 753 | - /* translators: %d: maximum number of focus keywords */ | |
| 754 | - 'focusKeywordsHelp' => __('Separate keywords with commas. Up to %d keywords.', 'thinkrank'), | |
| 755 | + 'focusKeywordsHelp' => __('Separate keywords with commas. The first keyword is primary.', 'thinkrank'), | |
| 755 | 756 | 'inheritedHint' => __('Leave empty to inherit from your Global SEO pattern.', 'thinkrank'), |
| 756 | 757 | 'save' => __('Save', 'thinkrank'), |
| 757 | 758 | 'saving' => __('Saving…', 'thinkrank'), |
| 758 | 759 | 'cancel' => __('Cancel', 'thinkrank'), |
| @@ -782,6 +783,5 @@ | ||
| 782 | 783 | ] |
| 783 | 784 | ] |
| 784 | 785 | ); |
| 785 | 786 | } |
| 786 | - | |
| 787 | 787 | } |