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