|
89 | 89 | }, |
90 | 90 | "menu_icon": { |
91 | 91 | "oneOf": [ |
92 | | - { |
93 | | - "type": "string", |
94 | | - "description": "Icon as string: Dashicon name (e.g. 'dashicons-admin-generic') or full URL to image file" |
95 | | - }, |
96 | 92 | { |
97 | 93 | "type": "object", |
98 | 94 | "properties": { |
99 | 95 | "type": { |
100 | 96 | "type": "string", |
101 | 97 | "enum": [ "dashicons", "url", "media_library" ], |
102 | | - "description": "Icon source type: 'dashicons' for WordPress dashicons, 'url' for custom image URL, 'media_library' for media library attachment" |
| 98 | + "description": "Icon source type: 'dashicons' for WordPress dashicons, 'url' for custom image URL, 'media_library' for media library attachment ID" |
103 | 99 | }, |
104 | 100 | "value": { |
105 | 101 | "type": [ "string", "integer" ], |
106 | | - "description": "The icon value: dashicon class name, image URL, or media library attachment ID" |
| 102 | + "description": "The icon value: dashicon class name (e.g. 'dashicons-admin-generic'), image URL, or media library attachment ID" |
107 | 103 | } |
108 | 104 | }, |
109 | 105 | "required": [ "type", "value" ], |
110 | 106 | "additionalProperties": false, |
111 | | - "description": "[SCF] SCF icon object format: {\"type\": \"dashicons\", \"value\": \"dashicons-admin-generic\"}" |
| 107 | + "description": "[SCF] Object with type and value properties specifying the icon source and identifier." |
| 108 | + }, |
| 109 | + { |
| 110 | + "type": "array", |
| 111 | + "maxItems": 0, |
| 112 | + "description": "Empty array representing unset/default state (no icon configured)." |
112 | 113 | } |
113 | 114 | ], |
114 | | - "description": "The menu icon. Can be a string (URL or dashicon name) or SCF object format with type and value properties." |
| 115 | + "description": "The menu icon displayed in the admin menu. Accepts object format with type/value properties, or empty array when no icon is configured." |
115 | 116 | }, |
116 | 117 | "position": { |
117 | 118 | "type": [ "integer", "string", "null" ], |
|
0 commit comments