@@ -99,6 +99,9 @@ discard block |
||
| 99 | 99 | exit(); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | + /** |
|
| 103 | + * @param string $option |
|
| 104 | + */ |
|
| 102 | 105 | static function is_toggle_action( $option ) { |
| 103 | 106 | return ( |
| 104 | 107 | isset( $_GET['_nonce'] ) && |
@@ -316,6 +319,9 @@ discard block |
||
| 316 | 319 | <?php |
| 317 | 320 | } |
| 318 | 321 | |
| 322 | + /** |
|
| 323 | + * @param string $header |
|
| 324 | + */ |
|
| 319 | 325 | static function show_tag( $header, $tag, $url = null, $section = null, $is_last = false ) { |
| 320 | 326 | $is_compact = $is_last ? '' : 'is-compact'; |
| 321 | 327 | if ( isset( $url ) ) { |
@@ -532,6 +538,10 @@ discard block |
||
| 532 | 538 | self::show_toggle( __( 'Email Notifications', 'jetpack-beta' ), 'email_notifications', $email_notification ); |
| 533 | 539 | } |
| 534 | 540 | |
| 541 | + /** |
|
| 542 | + * @param string $option |
|
| 543 | + * @param boolean $value |
|
| 544 | + */ |
|
| 535 | 545 | static function show_toggle( $name, $option, $value ) { |
| 536 | 546 | $query = array( |
| 537 | 547 | 'page' => 'jetpack-beta', |