PluginProbe
Polylang / 2.8
Polylang v2.8
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 | modules/wizard/wizard.php +13 -9 2.7.22.8 View file →
@@ -1,6 +1,10 @@
1 1 <?php
2 2 /**
3 + * @package Polylang
4 + */
5 +
6 +/**
3 7 * Main class for Polylang wizard.
4 8 *
5 9 * @since 2.7
6 10 */
@@ -229,9 +233,9 @@
229 233 * @since 2.7
230 234 */
231 235 public function wizard_notice() {
232 236 ob_start();
233 - include PLL_MODULES_INC . '/wizard/html-wizard-notice.php';
237 + include __DIR__ . '/html-wizard-notice.php';
234 238 return ob_get_clean();
235 239 }
236 240
237 241 /**
@@ -240,9 +244,9 @@
240 244 * @since 2.7
241 245 */
242 246 public function display_wizard_page() {
243 247 set_current_screen();
244 - include PLL_MODULES_INC . '/wizard/view-wizard-page.php';
248 + include __DIR__ . '/view-wizard-page.php';
245 249 }
246 250
247 251 /**
248 252 * Enqueue scripts and styles for the wizard
@@ -346,9 +350,9 @@
346 350 *
347 351 * @since 2.7
348 352 */
349 353 public function display_step_licenses() {
350 - include PLL_MODULES_INC . '/wizard/view-wizard-step-licenses.php';
354 + include __DIR__ . '/view-wizard-step-licenses.php';
351 355 }
352 356
353 357 /**
354 358 * Execute the languages step
@@ -457,9 +461,9 @@
457 461 *
458 462 * @since 2.7
459 463 */
460 464 public function display_step_languages() {
461 - include PLL_MODULES_INC . '/wizard/view-wizard-step-languages.php';
465 + include __DIR__ . '/view-wizard-step-languages.php';
462 466 }
463 467
464 468 /**
465 469 * Execute the languages step
@@ -470,9 +474,9 @@
470 474 check_admin_referer( 'pll-wizard', '_pll_nonce' );
471 475
472 476 $existing_languages = $this->model->get_languages_list();
473 477
474 - $all_languages = include PLL_SETTINGS_INC . '/languages.php';
478 + $all_languages = include POLYLANG_DIR . '/settings/languages.php';
475 479 $languages = isset( $_POST['languages'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_POST['languages'] ) ) : false;
476 480 $saved_languages = array();
477 481
478 482 // If there is no language added or defined.
@@ -564,9 +568,9 @@
564 568 *
565 569 * @since 2.7
566 570 */
567 571 public function display_step_media() {
568 - include PLL_MODULES_INC . '/wizard/view-wizard-step-media.php';
572 + include __DIR__ . '/view-wizard-step-media.php';
569 573 }
570 574
571 575 /**
572 576 * Execute the media step
@@ -613,9 +617,9 @@
613 617 *
614 618 * @since 2.7
615 619 */
616 620 public function display_step_untranslated_contents() {
617 - include PLL_MODULES_INC . '/wizard/view-wizard-step-untranslated-contents.php';
621 + include __DIR__ . '/view-wizard-step-untranslated-contents.php';
618 622 }
619 623
620 624 /**
621 625 * Execute the untranslated contents step
@@ -676,9 +680,9 @@
676 680 *
677 681 * @since 2.7
678 682 */
679 683 public function display_step_home_page() {
680 - include PLL_MODULES_INC . '/wizard/view-wizard-step-home-page.php';
684 + include __DIR__ . '/view-wizard-step-home-page.php';
681 685 }
682 686
683 687 /**
684 688 * Execute the home page step
@@ -766,9 +770,9 @@
766 770 */
767 771 public function display_step_last() {
768 772 // We ran the wizard once. So we can dismiss its notice.
769 773 PLL_Admin_Notices::dismiss( 'wizard' );
770 - include PLL_MODULES_INC . '/wizard/view-wizard-step-last.php';
774 + include __DIR__ . '/view-wizard-step-last.php';
771 775 }
772 776
773 777 /**
774 778 * Execute the last step