I’d like to announce the official release of the updated Inject Query Posts plugin (v2.0) for WordPress.
Inject an array of posts into a WP query object as if queried, particularly useful to allow use of standard template tags.
Recommended major update! Highlights: now use global WP_Query object by default; added ability to preserve state of existing query object; misc non-functionality changes; expanded readme.txt text; verified WP 3.0 compatibility.
The plugin’s official homepage is located at :
Comments welcome on this post for this version of the plugin. Comments will be closed once this release has been superseded by another.
Read more for a detailed ChangeLog of the release.
These are the detailed changes, which may or may not make sense to you depending on your familiarity with the previous features and internals of the plugin.
- If no query_obj is sent, use the global $wp_query object (previously used to create a new query object)
- If a not-false, non-object value is sent as $wp_query object (namely any non-empty string or non-zero integer), then create a new WP_Query object for use
- Add ability to preserve the state of the existing query_obj
- * Add $preserve_query_obj arg (optional) to inject_query_posts(), default to true
- * Add filter ‘inject_query_posts_preserve_query_obj’ that gets passed value of $preserve_query_obj
- Reset more query_obj settings
- Wrap function in if(!function_exists()) check
- Remove docs from top of plugin file (all that and more are in readme.txt)
- Minor code reformatting (spacing)
- Add PHPDoc documentation
- Note compatibility with WP 2.8+, 2.9+, 3.0+
- Update copyright date
- Add package info to top of plugin file
- Add Changelog, Filters, Template Tags, and Upgrade Notice sections to readme.txt
- Remove trailing whitespace
- Add to plugin repo