PluginProbe
Polylang / 3.1
Polylang v3.1
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | settings/settings-url.php +21 -2 2.83.1 View file →
@@ -16,8 +16,15 @@
16 16 */
17 17 public $priority = 10;
18 18
19 19 /**
20 + * The page id of the static front page.
21 + *
22 + * @var int
23 + */
24 + protected $page_on_front;
25 +
26 + /**
20 27 * Constructor
21 28 *
22 29 * @since 1.8
23 30 *
@@ -33,9 +40,8 @@
33 40 'configure' => true,
34 41 )
35 42 );
36 43
37 - $this->links_model = &$polylang->links_model;
38 44 $this->page_on_front = &$polylang->static_pages->page_on_front;
39 45 }
40 46
41 47 /**
@@ -41,11 +47,14 @@
41 47 /**
42 48 * Displays the fieldset to choose how the language is set
43 49 *
44 50 * @since 1.8
51 + *
52 + * @return void
45 53 */
46 54 protected function force_lang() {
47 55 ?>
56 + <p class="description"><?php esc_html_e( 'Some themes or plugins may not be fully compatible with the language defined by the content or by domains.', 'polylang' ); ?></p>
48 57 <label>
49 58 <?php
50 59 printf(
51 60 '<input name="force_lang" type="radio" value="0" %s /> %s',
@@ -106,8 +115,10 @@
106 115 /**
107 116 * Displays the fieldset to choose to hide the default language information in url
108 117 *
109 118 * @since 1.8
119 + *
120 + * @return void
110 121 */
111 122 protected function hide_default() {
112 123 ?>
113 124 <label>
@@ -125,8 +136,10 @@
125 136 /**
126 137 * Displays the fieldset to choose to hide /language/ in url
127 138 *
128 139 * @since 1.8
140 + *
141 + * @return void
129 142 */
130 143 protected function rewrite() {
131 144 ?>
132 145 <label>
@@ -157,8 +170,10 @@
157 170 /**
158 171 * Displays the fieldset to choose to redirect the home page to language page
159 172 *
160 173 * @since 1.8
174 + *
175 + * @return void
161 176 */
162 177 protected function redirect_lang() {
163 178 ?>
164 179 <label>
@@ -165,9 +180,9 @@
165 180 <?php
166 181 printf(
167 182 '<input name="redirect_lang" type="checkbox" value="1" %s/> %s',
168 183 checked( $this->options['redirect_lang'], 1, false ),
169 - esc_html__( 'The front page url contains the language code instead of the page name or page id', 'polylang' )
184 + esc_html__( 'The front page URL contains the language code instead of the page name or page id', 'polylang' )
170 185 );
171 186 ?>
172 187 </label>
173 188 <p class="description">
@@ -189,8 +204,10 @@
189 204 /**
190 205 * Displays the settings
191 206 *
192 207 * @since 1.8
208 + *
209 + * @return void
193 210 */
194 211 public function form() {
195 212 ?>
196 213 <div class="pll-settings-url-col">
@@ -229,8 +246,9 @@
229 246 *
230 247 * @since 1.8
231 248 *
232 249 * @param array $options
250 + * @return array
233 251 */
234 252 protected function update( $options ) {
235 253 $newoptions = array();
236 254
@@ -284,8 +302,9 @@
284 302 *
285 303 * @since 1.8
286 304 *
287 305 * @param array $options new set of options to test
306 + * @return void
288 307 */
289 308 protected function check_domains( $options ) {
290 309 $options = array_merge( $this->options, $options );
291 310 $model = new PLL_Model( $options );