Comments (4)
Try this, replace
Line 96 in 71ea40a
with
global $wp_rewrite;
$wp_rewrite->flush_rules();
from epoch.
@soderlind Yes, that is often the best way to do it. -1 me.
I know that epoch-api, pre-this version worked properly with ugly permalinks. Which might mean that the flush never worked, but wasn't needed. Got to check if the new rewrite rule for the iFrame is in fact ugly permalinks compatible, and our flush enables that.
from epoch.
In my example plugin, I only flush if the permalink doesn't exist:
/**************************************************************************
* Flushes the permalink structure.
* flush_rules is an extremely costly function in terms of performance, and
* should only be run when changing the rule.
*
* @see http://codex.wordpress.org/Rewrite_API/flush_rules
**************************************************************************/
function my_permalink_flush_rewrite_rules() {
$rules = $GLOBALS['wp_rewrite']->wp_rewrite_rules();
if ( ! isset( $rules['my-permalink/(.*)$'] ) ) { // must be the same rule as in my_permalink_rewrite_rule($wp_rewrite)
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
}
from epoch.
close via a24c41f
from epoch.
Related Issues (20)
- Logged out users are anonymous HOT 4
- Can't save infinite scroll setting HOT 1
- An alert for saved is dumb, admin screen should have a better "Hey I'm Saved!!" HOT 1
- Creating new Sites on Multisite failes when using Epoch
- turn off commenting spam issues HOT 2
- getting comment filters and actions to run
- Change comment form label from "Post Comment" HOT 7
- When is it finally being released? HOT 1
- ensure jquery 3.0 compatibility HOT 6
- Notice: Undefined index: comment_author HOT 4
- Think through anonymization features HOT 2
- Overhaul? HOT 1
- Consider a fixed position anchor to jump to the comment form when infinite scroll is enabled
- Comments have reversed bypostauthor/byuser classes
- Work on nested replies in ie11 HOT 1
- Comment form email address validation
- Commenter emails and IP addresses are leaked through epoch-api HOT 1
- Comment likes from Jetpack compatibility
- Opening a page with comments via ajax
- Message from Google about Mobile Usability Issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epoch.