| @@ 1104-1118 (lines=15) @@ | ||
| 1101 | break; |
|
| 1102 | ||
| 1103 | // Post by Email |
|
| 1104 | case 'post-by-email': |
|
| 1105 | $options = array( |
|
| 1106 | 'post_by_email_address' => array( |
|
| 1107 | 'description' => esc_html__( 'Email Address', 'jetpack' ), |
|
| 1108 | 'type' => 'string', |
|
| 1109 | 'default' => '', |
|
| 1110 | 'enum' => array( |
|
| 1111 | 'create' => esc_html__( 'Create Post by Email address', 'jetpack' ), |
|
| 1112 | 'regenerate' => esc_html__( 'Regenerate Post by Email address', 'jetpack' ), |
|
| 1113 | 'delete' => esc_html__( 'Delete Post by Email address', 'jetpack' ), |
|
| 1114 | ), |
|
| 1115 | 'validate_callback' => __CLASS__ . '::validate_list_item', |
|
| 1116 | ), |
|
| 1117 | ); |
|
| 1118 | break; |
|
| 1119 | ||
| 1120 | // Protect |
|
| 1121 | case 'protect': |
|
| @@ 1228-1243 (lines=16) @@ | ||
| 1225 | break; |
|
| 1226 | ||
| 1227 | // Site Icon |
|
| 1228 | case 'site-icon': |
|
| 1229 | $options = array( |
|
| 1230 | 'site_icon_id' => array( |
|
| 1231 | 'description' => esc_html__( 'Site Icon ID', 'jetpack' ), |
|
| 1232 | 'type' => 'integer', |
|
| 1233 | 'default' => 0, |
|
| 1234 | 'validate_callback' => __CLASS__ . '::validate_posint', |
|
| 1235 | ), |
|
| 1236 | 'site_icon_url' => array( |
|
| 1237 | 'description' => esc_html__( 'Site Icon URL', 'jetpack' ), |
|
| 1238 | 'type' => 'string', |
|
| 1239 | 'default' => '', |
|
| 1240 | 'sanitize_callback' => 'esc_url', |
|
| 1241 | ), |
|
| 1242 | ); |
|
| 1243 | break; |
|
| 1244 | ||
| 1245 | // Subscriptions |
|
| 1246 | case 'subscriptions': |
|