Comments (1)
is_admin()
returns false when used in a REST API flow, even when the API request is made on an admin page.- In
stick_post()
,get_option( 'sticky_posts' )
is called. This then callsbogo_option_sticky_posts()
which reduces$stickies
posts. This is the direct cause of this issue. - The intention Bogo adds a filter for the sticky posts option is to show only sticky posts in the current locale.
- In wp-includes/class-wp-query.php, WordPress puts sticky posts at the top of the posts array. WP does it only when
is_home
is true. - So,
is_home()
check can be used as a better alternative thanis_admin()
.
from bogo.
Related Issues (20)
- Prepare for 3.6.1 release
- Create dummy asset file
- New compatibility policy
- Widget for auto language suggestion
- Update bogo_format_atts()
- Use static list in bogo_get_language_native_name()
- Improve inline documentation
- Use Unicode for national flags
- Hide Tagline when the original is empty
- Add bogo_get_language filter hook
- Add bogo_get_language_native_name filter hook
- Add bogo_get_country_code filter hook
- Prepare for 3.7 release
- Dropdown Language Switcher HOT 2
- Bogo always raise notice on WP-CLI interface.
- Update apiVersion to 3
- bogo_http_accept_languages() should always return array
- Use null coalescing operator
- Prepare for 3.8 release
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 bogo.