| @@ -1,5 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | +/** | |
| 3 | + * @package Polylang | |
| 4 | + */ | |
| 2 | 5 | |
| 3 | 6 | /** |
| 4 | 7 | * Links model abstract class |
| 5 | 8 | * |
| @@ -115,10 +118,10 @@ | ||
| 115 | 118 | if ( ( defined( 'PLL_CACHE_LANGUAGES' ) && ! PLL_CACHE_LANGUAGES ) || ( defined( 'PLL_CACHE_HOME_URL' ) && ! PLL_CACHE_HOME_URL ) ) { |
| 116 | 119 | $this->set_home_url( $language ); |
| 117 | 120 | } |
| 118 | 121 | |
| 119 | - // Ensures that the ( possibly cached ) home url uses the right scheme http or https | |
| 120 | - $language->set_home_url_scheme(); | |
| 122 | + // Ensures that the ( possibly cached ) home and flag urls use the right scheme http or https. | |
| 123 | + $language->set_url_scheme(); | |
| 121 | 124 | } |
| 122 | 125 | return $languages; |
| 123 | 126 | } |
| 124 | 127 | |