PluginProbe
Polylang / 2.9
Polylang v2.9
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 | include/class-polylang.php +2 -9 3.02.9 View file →
@@ -127,10 +127,8 @@
127 127 * Defines constants
128 128 * May be overridden by a plugin if set before plugins_loaded, 1
129 129 *
130 130 * @since 1.6
131 - *
132 - * @return void
133 131 */
134 132 public static function define_constants() {
135 133 // Cookie name. no cookie will be used if set to false
136 134 if ( ! defined( 'PLL_COOKIE' ) ) {
@@ -157,10 +155,8 @@
157 155 * Polylang initialization
158 156 * setups models and separate admin and frontend
159 157 *
160 158 * @since 1.2
161 - *
162 - * @return void
163 159 */
164 160 public function init() {
165 161 global $polylang;
166 162
@@ -240,13 +236,10 @@
240 236
241 237 require_once __DIR__ . '/api.php'; // Loads the API
242 238
243 239 // Loads the modules.
244 - $load_scripts = glob( POLYLANG_DIR . '/modules/*/load.php', GLOB_NOSORT );
245 - if ( is_array( $load_scripts ) ) {
246 - foreach ( $load_scripts as $load_script ) {
247 - require_once $load_script; // phpcs:ignore WordPressVIPMinimum.Files.IncludingFile.UsingVariable
248 - }
240 + foreach ( glob( POLYLANG_DIR . '/modules/*/load.php', GLOB_NOSORT ) as $load_script ) {
241 + require_once $load_script; // phpcs:ignore WordPressVIPMinimum.Files.IncludingFile.UsingVariable
249 242 }
250 243
251 244 $polylang->init();
252 245