refactor(creator-studio): pick the cover from the toolbar image dialog

The cover row carried its own hidden file input and upload call, so authors
had two different image flows in one page.

- 添加封面 now opens window.JioSubmitMedia with type=image, the same dialog
  the toolbar's 图片 button uses (mine / upload / external link).
- The picked image is stored as the full-size URL plus its attachment id,
  matching FrontSubmitFeatured's image branch, which re-checks ownership
  and sets the post thumbnail.
- Removes the now-unused uploadCover path, apiUpload/nonce imports, and the
  .jio-creator__cover-input rule.

Contract added; 887 widget-system tests pass.
This commit is contained in:
kate522 committed 2026-11-09 15:57:30 +08:00
1 parent f97fd72bd0
commit 4cd296c066
6 files changed
+58 -61

No files matched your search

+1 -1
View File
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-element', 'wp-i18n'), 'version' => '16333cda79ebcc6962cd');
<?php return array('dependencies' => array('react', 'wp-element', 'wp-i18n'), 'version' => '0b6cb59c50798e13e6f5');