-
Notifications
You must be signed in to change notification settings - Fork 10
Improve WP Admin UI #38
Conversation
92cedf8 to
9317cf6
Compare
9317cf6 to
083debb
Compare
| function setup_metaboxes() { | ||
| $id = self::POST_TYPE; | ||
| $title = __( 'Data', 'customize-snapshots' ); | ||
| $title = __( 'Data', 'customize-snapshot' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text domain is customize-snapshots
| $allcaps['customize_publish'] = true; | ||
| } | ||
|
|
||
| // Grant all customize snapshot caps which weren't explicitly disallowed to users who can customize. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is causing test failures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I restored the initial cap check in ab6ca42. Tests are passing now.
…omize snapshots We'll need a different mechanism to prevent mutating published (non-future) snapshots
| '<p><a href="%s" class="button button-secondary">%s</a></p>', | ||
| esc_url( $customize_url ), | ||
| esc_html__( 'Open in Customizer', 'customize-snapshots' ) | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit makes me happy 😄
|
@westonruter When you publish the snapshot all the settings disappear from the metabox |
|
Oh they are hidden after published. So we need to remove the checkbox toggle and hidden attribute for published snapshots so all the settings display |
|
@valendesigns I think the problem is that all of the settings get sent with |
…tely after saving a snapsot
|
@valendesigns ok, ready for you to review. |
|
@westonruter I think we should hide the "Save Draft" button or change the customize button to "Edit" so it fits in the space. Thoughts? |
|
We also need to handle the publish button so the Snapshot updates the front-end. Otherwise scheduling will not work. |
|
@westonruter An issue with the updated state replacement JS is that the |
Actually, perhaps we should just hide the publish box entirely. This would be what #15 would implement, and at that time, the publish button could be restored. |
|
I think I know what to do. We can just remove the |
|
@valendesigns oh, and you know what? Now with b3ea60a it would be sweet if when a user lacks |
|
So it makes the publish button say submit for review? |
|
@valendesigns yeah, try this: feature/wp-admin...feature/submit-for-review |
|
@valendesigns I merged |

No description provided.