| @@ -1,8 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * @package Polylang | |
| 4 | - */ | |
| 5 | 2 | |
| 6 | 3 | /** |
| 7 | 4 | * Base class to manage the static front page and the page for posts |
| 8 | 5 | * |
| @@ -102,9 +99,9 @@ | ||
| 102 | 99 | * @return int |
| 103 | 100 | */ |
| 104 | 101 | public function translate_page_for_posts( $v ) { |
| 105 | 102 | // Don't attempt to translate in a 'switch_blog' action as there is a risk to call this function while initializing the languages cache |
| 106 | - return isset( $this->curlang->page_for_posts ) && ( $this->curlang->page_for_posts ) && ! doing_action( 'switch_blog' ) ? $this->curlang->page_for_posts : $v; | |
| 103 | + return isset( $this->curlang->page_for_posts ) && ! doing_action( 'switch_blog' ) ? $this->curlang->page_for_posts : $v; | |
| 107 | 104 | } |
| 108 | 105 | |
| 109 | 106 | /** |
| 110 | 107 | * Fixes the oembed for the translated static front page |