Comments (6)
Could there be a reason to keep it for the different filter names?
I'm thinking of GP plugins that could filter GP redirects without having to process ALL WP redirects as well?
from glotpress.
We could do something like this:
add_filter( 'wp_redirect', function( $location, $status ) {
return add_filter( 'gp_redirect', $location, $status );
}, 10, 2 );
from glotpress.
That would just call gp_redirect each time wp_redirect was called correct?
No real benefit to that unless we only set it during the router or some other point that only executes when a glotpress page is being displaed.
from glotpress.
@toolstack "like this". ;)
The filter would only be registered in https://github.com/deliciousbrains/GlotPress/blob/wordpress-plugin-dbi/gp-includes/route.php#L119
from glotpress.
That would do the trick.
from glotpress.
Not bothering with the filter, as per:
https://wordpress.slack.com/archives/glotpress/p1445520712000314
from glotpress.
Related Issues (20)
- if an original contains a glossary verb between %sreview%s then it is not indicated as glossary verb HOT 4
- Error when bulk saving waiting strings HOT 6
- Modify the header of the new wide GlotPress screen HOT 3
- Minification: Improve workflow for Pull Requests that contain changes to JavaScript files HOT 4
- Inline Translation: Improvements to the Popover
- Export error of untranslated strings starting or ending with new lines (\n) HOT 1
- Local: Manage conflicts on import from .org HOT 2
- Hide inline search list from GlotPress page
- Improve placeholders match and visibility HOT 1
- Glossary entry form fields in incorrect order
- A suggestion for the convenience of translation editors HOT 3
- Local: Disable submit button if placeholders are missing HOT 1
- If the last row of the list is translated and saved a javascript error is shown HOT 5
- Incorrect plural settings for ky HOT 1
- Enhancement to make the glossary more prominent
- Large Glossaries cause regular expression limit exhaustion. HOT 1
- Select bulk items and apply 'Keep origin translation' HOT 6
- Fix button margins after #1451 HOT 1
- Add GlotDict's "Suggestions from consistency tool" section into GlotPress
- Correct plural setting for Saraiki
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 glotpress.