Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Add post slug field #148

Merged
merged 6 commits into from May 26, 2016
Merged

Add post slug field #148

merged 6 commits into from May 26, 2016

Conversation

westonruter
Copy link
Contributor

customize_

Placeholder field updates live as title changes.

Fixes #63

@westonruter westonruter added this to the 0.6 milestone May 26, 2016
@valendesigns
Copy link
Contributor

@westonruter We need to filter the post link so it uses the preview URL if the slug is dirty or we get a 404. I'm looking into it now.

@westonruter
Copy link
Contributor Author

@valendesigns Is this #42? I was thinking the changing of the slug was going to be a problem, but the full page refreshes continued to work even when the slug was being changed. I wasn't able to see a 404.

@valendesigns
Copy link
Contributor

@westonruter I can make it work without #42.

@valendesigns
Copy link
Contributor

@westonruter So it's not pretty but it does the job.

@westonruter
Copy link
Contributor Author

@valendesigns what were the steps that you used to reproduce the 404?

@valendesigns
Copy link
Contributor

@westonruter

  1. Turned on permalinks
  2. Edited an existing post from the archive
  3. Attempted to navigate to it which produced an 404

@westonruter
Copy link
Contributor Author

@valendesigns wouldn't it be better to just use preview links across the board? See 97ddef1.

@valendesigns
Copy link
Contributor

valendesigns commented May 26, 2016 via email

if ( $post_status_match || $post_slug_mismatch ) {
$permalink = Edit_Post_Preview::get_preview_post_link( $post );
}
if ( is_customize_preview() ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want this on the front-end for Snapshots, as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@valendesigns Humm. Why should it be on the snapshotted frontend as well?

And if so, what would be the best way to detect if it is a frontend snapshot preview?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@westonruter We can worry about it later, it's not critical since we haven't setup a way to navigate in the snapshot on the front-end. We'll tackle that later. For now we can just merge and move forward. Thoughts?

@westonruter westonruter merged commit baf6af1 into develop May 26, 2016
@westonruter westonruter deleted the feature/post-slug-field branch May 26, 2016 23:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants