|
@@ 62-68 (lines=7) @@
|
| 59 |
|
/** |
| 60 |
|
* Returns active plugin slug string (jetpack|jetpack-dev). |
| 61 |
|
*/ |
| 62 |
|
public static function get_plugin_slug() { |
| 63 |
|
$installed = self::get_branch_and_section(); |
| 64 |
|
if ( empty( $installed ) || 'stable' === $installed[1] || 'tags' === $installed[1] ) { |
| 65 |
|
return 'jetpack'; |
| 66 |
|
} |
| 67 |
|
return JETPACK_DEV_PLUGIN_SLUG; |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
/** |
| 71 |
|
* Builds URL to the admin area for the current site and specified query param. |
|
@@ 168-174 (lines=7) @@
|
| 165 |
|
/** |
| 166 |
|
* Check if Jetpack version is 'stable' version. |
| 167 |
|
*/ |
| 168 |
|
public static function is_on_stable() { |
| 169 |
|
$branch_and_section = self::get_branch_and_section(); |
| 170 |
|
if ( empty( $branch_and_section[0] ) || 'stable' === $branch_and_section[0] ) { |
| 171 |
|
return true; |
| 172 |
|
} |
| 173 |
|
return false; |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
/** |
| 177 |
|
* Check if Jetpack active version is a tag version. |