← All changes
|
includes/abilities/settings/class-get-author-archives-settings.php
+4
-4
1.28.0
→
2.9.0
View file →
| @@ -35,10 +35,10 @@ | ||
| 35 | 35 | /** |
| 36 | 36 | * String settings: API alias => [ storage_key, default ]. |
| 37 | 37 | */ |
| 38 | 38 | private const STRING_MAP = [ |
| 39 | - 'title' => [ 'author_archives_title', '%author_name% – %site_title% %page%' ], | |
| 40 | - 'meta_description' => [ 'author_archives_meta_desc', 'Articles written by %author_name% on %site_title%' ], | |
| 39 | + 'title' => [ 'author_archives_title', Settings::DEFAULT_AUTHOR_ARCHIVES_TITLE ], | |
| 40 | + 'meta_description' => [ 'author_archives_meta_desc', Settings::DEFAULT_AUTHOR_ARCHIVES_META_DESC ], | |
| 41 | 41 | ]; |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * Constructor. |
| @@ -45,9 +45,9 @@ | ||
| 45 | 45 | */ |
| 46 | 46 | public function __construct() { |
| 47 | 47 | $this->id = 'thinkrank/get-author-archives-settings'; |
| 48 | 48 | $this->label = __( 'Get ThinkRank Author Archives Settings', 'thinkrank' ); |
| 49 | - $this->description = __( 'Retrieve ThinkRank author archives settings: enable/index toggles, empty-archive visibility, and the SEO title/meta description templates.', 'thinkrank' ); | |
| 49 | + $this->description = __( 'Retrieve ThinkRank author archives settings: enable/index toggles, empty-archive visibility, and the SEO title/meta description templates. Use update-author-archives-settings to change them.', 'thinkrank' ); | |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * {@inheritDoc} |
| @@ -72,9 +72,9 @@ | ||
| 72 | 72 | public function get_input_schema() { |
| 73 | 73 | return [ |
| 74 | 74 | 'type' => 'object', |
| 75 | 75 | 'additionalProperties' => false, |
| 76 | - 'properties' => [], | |
| 76 | + 'properties' => self::empty_properties(), | |
| 77 | 77 | ]; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |