@@ -543,6 +543,9 @@ discard block |
||
543 | 543 | return self::get_jetpack_plugin_version(); |
544 | 544 | } |
545 | 545 | |
546 | + /** |
|
547 | + * @return string |
|
548 | + */ |
|
546 | 549 | static function get_new_jetpack_version( $is_dev_version = false ) { |
547 | 550 | $manifest = self::get_beta_manifest(); |
548 | 551 | if ( $is_dev_version ) { |
@@ -645,6 +648,9 @@ discard block |
||
645 | 648 | return self::get_jetpack_plugin_info( JETPACK_DEV_PLUGIN_FILE ); |
646 | 649 | } |
647 | 650 | |
651 | + /** |
|
652 | + * @param string $plugin_file |
|
653 | + */ |
|
648 | 654 | static function get_jetpack_plugin_info( $plugin_file = null ) { |
649 | 655 | |
650 | 656 | if ( is_null( $plugin_file ) ) { |
@@ -678,6 +684,10 @@ discard block |
||
678 | 684 | return self::get_remote_data( JETPACK_ORG_API_URL, 'org_data' ); |
679 | 685 | } |
680 | 686 | |
687 | + /** |
|
688 | + * @param string $url |
|
689 | + * @param string $transient |
|
690 | + */ |
|
681 | 691 | static function get_remote_data( $url, $transient, $bypass = false ) { |
682 | 692 | $prefix = 'jetpack_beta_'; |
683 | 693 | $cache = get_site_transient( $prefix . $transient ); |
@@ -800,6 +810,9 @@ discard block |
||
800 | 810 | return $current_manifest_data; |
801 | 811 | } |
802 | 812 | |
813 | + /** |
|
814 | + * @param string $plugin_folder |
|
815 | + */ |
|
803 | 816 | static function proceed_to_install_and_activate( $url, $plugin_folder = JETPACK_DEV_PLUGIN_SLUG, $section ) { |
804 | 817 | self::proceed_to_install( $url, $plugin_folder, $section ); |
805 | 818 | |
@@ -854,6 +867,10 @@ discard block |
||
854 | 867 | return false; |
855 | 868 | } |
856 | 869 | |
870 | + /** |
|
871 | + * @param string $current_plugin |
|
872 | + * @param string $replace_with_plugin |
|
873 | + */ |
|
857 | 874 | static function replace_active_plugin( $current_plugin, $replace_with_plugin = null, $force_activate = false ) { |
858 | 875 | if ( self::is_network_active() ) { |
859 | 876 | $new_active_plugins = array(); |
@@ -1180,7 +1197,7 @@ discard block |
||
1180 | 1197 | /** |
1181 | 1198 | * Checks if a dir is empty |
1182 | 1199 | * |
1183 | - * @param [type] $dir The absolute directory path to check |
|
1200 | + * @param string $dir The absolute directory path to check |
|
1184 | 1201 | * @return boolean |
1185 | 1202 | */ |
1186 | 1203 | static function is_dir_empty( $dir ) { |