Cleanup post/term data from editors classes
vraja-pro opened this issue · comments
Vraja Das commented
I moved the post data to the admin/formatter/class-post-metabox-formatter.php
which includes:
- post id
- slug
- type
- status
- entityType (post or term)
I did the same for admin/formatter/class-term-metabox-formatter.php
.
We need to remove from the metabox/elementor/term class script data the duplication of properties:
- postId
- postStatus
- postType
- isPost
- isTerm
Check if we can also clean the post/term related meta duplicated from WPSEO_Utils::get_admin_l10n