| @@ 1506-1520 (lines=15) @@ | ||
| 1503 | break; |
|
| 1504 | ||
| 1505 | // Post by Email |
|
| 1506 | case 'post-by-email': |
|
| 1507 | $options = array( |
|
| 1508 | 'post_by_email_address' => array( |
|
| 1509 | 'description' => esc_html__( 'Email Address', 'jetpack' ), |
|
| 1510 | 'type' => 'string', |
|
| 1511 | 'default' => '', |
|
| 1512 | 'enum' => array( |
|
| 1513 | 'create' => esc_html__( 'Create Post by Email address', 'jetpack' ), |
|
| 1514 | 'regenerate' => esc_html__( 'Regenerate Post by Email address', 'jetpack' ), |
|
| 1515 | 'delete' => esc_html__( 'Delete Post by Email address', 'jetpack' ), |
|
| 1516 | ), |
|
| 1517 | 'validate_callback' => __CLASS__ . '::validate_list_item', |
|
| 1518 | ), |
|
| 1519 | ); |
|
| 1520 | break; |
|
| 1521 | ||
| 1522 | // Protect |
|
| 1523 | case 'protect': |
|
| @@ 1630-1645 (lines=16) @@ | ||
| 1627 | break; |
|
| 1628 | ||
| 1629 | // Site Icon |
|
| 1630 | case 'site-icon': |
|
| 1631 | $options = array( |
|
| 1632 | 'site_icon_id' => array( |
|
| 1633 | 'description' => esc_html__( 'Site Icon ID', 'jetpack' ), |
|
| 1634 | 'type' => 'integer', |
|
| 1635 | 'default' => 0, |
|
| 1636 | 'validate_callback' => __CLASS__ . '::validate_posint', |
|
| 1637 | ), |
|
| 1638 | 'site_icon_url' => array( |
|
| 1639 | 'description' => esc_html__( 'Site Icon URL', 'jetpack' ), |
|
| 1640 | 'type' => 'string', |
|
| 1641 | 'default' => '', |
|
| 1642 | 'sanitize_callback' => 'esc_url', |
|
| 1643 | ), |
|
| 1644 | ); |
|
| 1645 | break; |
|
| 1646 | ||
| 1647 | // Subscriptions |
|
| 1648 | case 'subscriptions': |
|