@@ 884-889 (lines=6) @@ | ||
881 | self::replace_active_plugin( 'jetpack-pressable-beta/jetpack.php' ); |
|
882 | } |
|
883 | ||
884 | if ( 'stable' === $section && |
|
885 | file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_PLUGIN_FILE ) ) { |
|
886 | self::replace_active_plugin( JETPACK_DEV_PLUGIN_FILE, JETPACK_PLUGIN_FILE, true ); |
|
887 | self::update_option( $branch, $section ); |
|
888 | return; |
|
889 | } |
|
890 | ||
891 | if ( self::get_branch_and_section_dev() === array( $branch, $section ) |
|
892 | && file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_DEV_PLUGIN_FILE ) ) { |
|
@@ 891-896 (lines=6) @@ | ||
888 | return; |
|
889 | } |
|
890 | ||
891 | if ( self::get_branch_and_section_dev() === array( $branch, $section ) |
|
892 | && file_exists( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . JETPACK_DEV_PLUGIN_FILE ) ) { |
|
893 | self::replace_active_plugin( JETPACK_PLUGIN_FILE, JETPACK_DEV_PLUGIN_FILE, true ); |
|
894 | self::update_option( $branch, $section ); |
|
895 | return; |
|
896 | } |
|
897 | ||
898 | self::proceed_to_install_and_activate( |
|
899 | self::get_install_url( $branch, $section ), |