| @@ 1086-1100 (lines=15) @@ | ||
| 1083 | break; |
|
| 1084 | ||
| 1085 | // Post by Email |
|
| 1086 | case 'post-by-email': |
|
| 1087 | $options = array( |
|
| 1088 | 'post_by_email_address' => array( |
|
| 1089 | 'description' => esc_html__( 'Email Address', 'jetpack' ), |
|
| 1090 | 'type' => 'string', |
|
| 1091 | 'default' => '', |
|
| 1092 | 'enum' => array( |
|
| 1093 | 'create' => esc_html__( 'Create Post by Email address', 'jetpack' ), |
|
| 1094 | 'regenerate' => esc_html__( 'Regenerate Post by Email address', 'jetpack' ), |
|
| 1095 | 'delete' => esc_html__( 'Delete Post by Email address', 'jetpack' ), |
|
| 1096 | ), |
|
| 1097 | 'validate_callback' => __CLASS__ . '::validate_list_item', |
|
| 1098 | ), |
|
| 1099 | ); |
|
| 1100 | break; |
|
| 1101 | ||
| 1102 | // Protect |
|
| 1103 | case 'protect': |
|
| @@ 1210-1225 (lines=16) @@ | ||
| 1207 | break; |
|
| 1208 | ||
| 1209 | // Site Icon |
|
| 1210 | case 'site-icon': |
|
| 1211 | $options = array( |
|
| 1212 | 'site_icon_id' => array( |
|
| 1213 | 'description' => esc_html__( 'Site Icon ID', 'jetpack' ), |
|
| 1214 | 'type' => 'integer', |
|
| 1215 | 'default' => 0, |
|
| 1216 | 'validate_callback' => __CLASS__ . '::validate_posint', |
|
| 1217 | ), |
|
| 1218 | 'site_icon_url' => array( |
|
| 1219 | 'description' => esc_html__( 'Site Icon URL', 'jetpack' ), |
|
| 1220 | 'type' => 'string', |
|
| 1221 | 'default' => '', |
|
| 1222 | 'sanitize_callback' => 'esc_url', |
|
| 1223 | ), |
|
| 1224 | ); |
|
| 1225 | break; |
|
| 1226 | ||
| 1227 | // Subscriptions |
|
| 1228 | case 'subscriptions': |
|