← All changes
|
src/services/importing/aioseo/aioseo-replacevar-service.php
+4
-4
18.8
→
trunk
View file →
| @@ -10,11 +10,11 @@ | ||
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Mapping between the AiOSEO replace vars and the Yoast replace vars. |
| 13 | 13 | * |
| 14 | + * @see https://yoast.com/help/list-available-snippet-variables-yoast-seo/ | |
| 15 | + * | |
| 14 | 16 | * @var array |
| 15 | - * | |
| 16 | - * @see https://yoast.com/help/list-available-snippet-variables-yoast-seo/ | |
| 17 | 17 | */ |
| 18 | 18 | protected $replace_vars_map = [ |
| 19 | 19 | // The key is the AiOSEO replace var, the value is the Yoast replace var (see class-wpseo-replace-vars). |
| 20 | 20 | '#archive_title' => '%%archive_title%%', |
| @@ -80,9 +80,9 @@ | ||
| 80 | 80 | '/#custom_field-([a-zA-Z0-9_-]+)/', |
| 81 | 81 | static function ( $cf_matches ) { |
| 82 | 82 | return '%%cf_' . $cf_matches[1] . '%%'; |
| 83 | 83 | }, |
| 84 | - $yoast_replacevar | |
| 84 | + $yoast_replacevar, | |
| 85 | 85 | ); |
| 86 | 86 | |
| 87 | 87 | // Transform the '#tax_name-<custom-tax-name>' tags into '%%ct_<custom-tax-name>%%' ones. |
| 88 | 88 | $yoast_replacevar = \preg_replace_callback( |
| @@ -89,9 +89,9 @@ | ||
| 89 | 89 | '/#tax_name-([a-zA-Z0-9_-]+)/', |
| 90 | 90 | static function ( $ct_matches ) { |
| 91 | 91 | return '%%ct_' . $ct_matches[1] . '%%'; |
| 92 | 92 | }, |
| 93 | - $yoast_replacevar | |
| 93 | + $yoast_replacevar, | |
| 94 | 94 | ); |
| 95 | 95 | |
| 96 | 96 | return $yoast_replacevar; |
| 97 | 97 | } |