Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to fix edit entry link cache
`wp_cache_get()` is normally not persistent (only caches for life of the request), but caching plugins can modify that behavior. I'm not able to reproduce the issue, can you test this, @jakejackson1 ? Fixes #887
- Loading branch information
92f8b15
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.
Thanks Zack. It's on my list of things to test.
92f8b15
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.
Sorry for the delay. I've tested this patch out and verified it functions correctly.
If you wanted you could actually do this:
if( empty( $link ) || $post_id === get_option( 'page_on_front' ) ) {
instead of adding a separate IF statement.92f8b15
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.
Thanks, Jake! I've moved to preferring more
if()
logic blocks than requiring devs to figure out more complex statements.I'm planning on releasing an update within a week.