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 | install/upgrade.php +4 -5 2.92.8 View file →
@@ -91,9 +91,9 @@
91 91 *
92 92 * @since 1.2
93 93 */
94 94 public function _upgrade() {
95 - foreach ( array( '0.9', '1.0', '1.1', '1.2', '1.2.1', '1.2.3', '1.3', '1.4', '1.4.1', '1.4.4', '1.5', '1.6', '1.7.4', '1.8', '2.0.8', '2.1', '2.7', '2.8.1' ) as $version ) {
95 + foreach ( array( '0.9', '1.0', '1.1', '1.2', '1.2.1', '1.2.3', '1.3', '1.4', '1.4.1', '1.4.4', '1.5', '1.6', '1.7.4', '1.8', '2.0.8', '2.1', '2.7', '2.8' ) as $version ) {
96 96 if ( version_compare( $this->options['version'], $version, '<' ) ) {
97 97 call_user_func( array( $this, 'upgrade_' . str_replace( '.', '_', $version ) ) );
98 98 }
99 99 }
@@ -634,18 +634,17 @@
634 634 PLL_Admin_Notices::dismiss( 'wizard' );
635 635 }
636 636
637 637 /**
638 - * Upgrades if the previous version is < 2.8.1
638 + * Upgrades if the previous version is < 2.8
639 639 *
640 640 * Deletes language cache due to:
641 641 * - 'redirect_lang' option removed for subdomains and multiple domains in 2.2
642 642 * - W3C and Facebook locales added to PLL_Language objects in 2.3
643 643 * - flags moved to a different directory in Polylang Pro 2.8
644 - * - bug of flags url returning html fixed in 2.8.1
645 644 *
646 - * @since 2.8.1
645 + * @since 2.8
647 646 */
648 - protected function upgrade_2_8_1() {
647 + protected function upgrade_2_8() {
649 648 delete_transient( 'pll_languages_list' );
650 649 }
651 650 }