Commit Graph

318 Commits

Author SHA1 Message Date
scribu 49a2a5e3dd Get rid of $taxonomy_query_vars altogether. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15861 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 12:12:31 +00:00
scribu 2b08f69b50 Fix 'taxonomy' and 'term' query var logic. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15860 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 12:07:23 +00:00
Dion Hulse f5b6addcdb Fix current-cat & current-cat-parent classes for Category listings for non-category taxonomies. General cleanup of wp_list_categories() sanity checking. Props TheDeadMedic for the initial taxonomy patch. Fixes #15143
git-svn-id: https://develop.svn.wordpress.org/trunk@15847 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 10:10:11 +00:00
Dion Hulse d7b230ca26 Merge Category/Tag URL creation/rewriting into general Taxonomy system. Removes the legacy handling for these url's. See #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@15825 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 05:41:22 +00:00
scribu 50a6be80d4 Don't look in in WP->parse_request(). See #15112
git-svn-id: https://develop.svn.wordpress.org/trunk@15796 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 16:55:58 +00:00
scribu 0ed3d0b176 Don't attempt to convert objects to strings in WP->parse_request(). Fixes #14330
git-svn-id: https://develop.svn.wordpress.org/trunk@15793 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 15:21:19 +00:00
scribu 6e89ca7bff Make parse_reques() set empty variables. Props filosofo for initial patch. Fixes #10710
git-svn-id: https://develop.svn.wordpress.org/trunk@15770 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-10 20:02:26 +00:00
scribu a3ee8cac1a Get rid of redundant $this->meta_query. See #14645
git-svn-id: https://develop.svn.wordpress.org/trunk@15766 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-09 10:48:13 +00:00
scribu c4a14ee8d9 Get rid of redundant ->tax_query. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15765 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-09 10:19:15 +00:00
Andrew Nacin a1cd90933d s/Wether/Whether/
git-svn-id: https://develop.svn.wordpress.org/trunk@15756 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-08 02:35:06 +00:00
Andrew Nacin b040a1790a Add NOT LIKE/BETWEEN/IN. props AaronCampbell, fixes #9124.
git-svn-id: https://develop.svn.wordpress.org/trunk@15755 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-08 02:27:22 +00:00
Peter Westwood 3e66b217cc Avoid Notice if the query doesn't have a post set e.g. on a 404 . Fixes #15059 props chrisbliss18.
git-svn-id: https://develop.svn.wordpress.org/trunk@15750 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 21:23:50 +00:00
scribu b6c2c3003c Proper handling of array query variables. Props loushou. Fixes #14330
git-svn-id: https://develop.svn.wordpress.org/trunk@15737 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-06 23:18:42 +00:00
scribu bfacb144ae Prevent db error when dealing with unexistant parent term. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15734 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-06 12:06:23 +00:00
scribu 448f74675a Generalize taxonomy queries:
* transform wp_tax_query() into WP_Object_Query::get_tax_sql()
	* create parse_tax_query() method in WP_Query
	* add doc-block for $tax_query and $meta_query
See #15032. See #12891.


git-svn-id: https://develop.svn.wordpress.org/trunk@15731 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-06 10:40:30 +00:00
scribu 5a14ba3fa3 further meta query optimization. props aaroncampbell. fixes #9124
git-svn-id: https://develop.svn.wordpress.org/trunk@15730 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-05 23:06:20 +00:00
scribu 73261c879f Don't revalidate $meta_type in get_meta_sql(). Props Viper007Bond. See #9124
git-svn-id: https://develop.svn.wordpress.org/trunk@15726 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 22:51:31 +00:00
scribu ee22465376 Use elseif in get_meta_sql(). Props Viper007Bond. See #9124
git-svn-id: https://develop.svn.wordpress.org/trunk@15725 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 22:47:04 +00:00
scribu 4685506671 Enhance get_meta_sql. Props aaroncampbell. Fixes #9124
git-svn-id: https://develop.svn.wordpress.org/trunk@15724 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 21:37:08 +00:00
scribu 12fdf54fdd Move _wp_search_sql() into WP_Object_Query. Introduce WP_Comment_Search. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@15723 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 21:05:31 +00:00
scribu 7b01cbcc6e Put the simple meta query first, so that orderby=meta_value works even when using 'meta_query'. See #15031
git-svn-id: https://develop.svn.wordpress.org/trunk@15721 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 20:19:21 +00:00
scribu a811171a0c Introduce WP_Object_Query. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@15715 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 18:57:13 +00:00
Andrew Nacin 9494e4ce7e Phpdoc argument/@param cleanups. props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +00:00
Mark Jaquith d07572b3e4 Support custom post type links in wp_list_pages(). fixes #14177. props scribu
git-svn-id: https://develop.svn.wordpress.org/trunk@15587 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 04:31:07 +00:00
Mark Jaquith e0c7c93fa0 Make the second (taxonomy) parameter for get_term_link() optional if you pass in a term object as the first argument (which has the taxonomy in it). fixes #13081. props scribu
git-svn-id: https://develop.svn.wordpress.org/trunk@15586 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 04:29:00 +00:00
Andrew Nacin 6e5abae06a Don't throw 404 in the backend. fixes #14088 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15409 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-13 21:47:12 +00:00
Andrew Nacin f5f97a46d3 Always pass post ID to the_title filter. props dndrnkrd, fixes #13558
git-svn-id: https://develop.svn.wordpress.org/trunk@14964 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 21:30:00 +00:00
Peter Westwood cfa9702197 Mark the ULs containing child pages in the page Walker. Fixes #13254 props GDragoN.
git-svn-id: https://develop.svn.wordpress.org/trunk@14747 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 17:24:28 +00:00
Ryan Boren 1c93bc2006 Introduce get_term_feed_link(). Use it in wp_list_categories(). Props blepoxp. see #13058
git-svn-id: https://develop.svn.wordpress.org/trunk@14711 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-17 16:21:12 +00:00
Ryan Boren 77be931ef4 New menu UI. Props filosofo. see #12713
git-svn-id: https://develop.svn.wordpress.org/trunk@14248 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-27 01:05:58 +00:00
Ryan Boren 6ba4b97fc8 Fix custom tax and post type query var checks. Props prettyboymp. fixes #12857 #13076
git-svn-id: https://develop.svn.wordpress.org/trunk@14246 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-27 00:22:04 +00:00
Andrew Nacin 7f994ed03f Strip tags before escaping the title element in wp_list_pages(). props scribu. fixes #11040.
git-svn-id: https://develop.svn.wordpress.org/trunk@14104 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 13:49:52 +00:00
Ryan Boren 96ea328c0a Nav menu fixes. Props ptahdunbar. see #12896 fixes #12844
git-svn-id: https://develop.svn.wordpress.org/trunk@14031 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-07 15:25:48 +00:00
Andrew Nacin 00414ace34 Ensure we're escaping css classes for front end nav menu.
git-svn-id: https://develop.svn.wordpress.org/trunk@13975 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 23:04:37 +00:00
Andrew Nacin 502eb9d1d5 Don't use target="_self" in nav menu links, just omit the attribute. Also fix and run earlier db upgrades. fixes #12808
git-svn-id: https://develop.svn.wordpress.org/trunk@13974 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 22:52:30 +00:00
Dion Hulse af3a5edd74 Don't prevent 404'ing on tax/author pages when a paged page is requested which doesnt contain posts. For example, /category/animal/page/9999999/. Allows for /category/empty_cat/ to not 404. Fixes #11857
git-svn-id: https://develop.svn.wordpress.org/trunk@13944 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 08:16:20 +00:00
Dion Hulse c23d49d135 Update wp_list_categories() to be custom taxonomy aware. Props jfarthing84. See #11838
git-svn-id: https://develop.svn.wordpress.org/trunk@13854 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 02:07:31 +00:00
Andrew Nacin 4f5a2095a8 Remove trailing whites and double semicolons.
git-svn-id: https://develop.svn.wordpress.org/trunk@13830 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:36:49 +00:00
Andrew Nacin 94ec7ba0eb Various bug fixes and improvements to menu management. props ptahdunbar, see #11817.
git-svn-id: https://develop.svn.wordpress.org/trunk@13802 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 19:56:16 +00:00
Mark Jaquith 8bca8131a6 More pedantry. "Setup" is not a verb. http://notaverb.com/setup
git-svn-id: https://develop.svn.wordpress.org/trunk@13725 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 04:39:50 +00:00
Andrew Nacin 9b78314c05 A call to arms for grammarians. Fixes #12228 fixes #11875 props kurtmckee, filosofo, jjj
git-svn-id: https://develop.svn.wordpress.org/trunk@13425 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-26 05:46:08 +00:00
Dion Hulse e3cd873481 Restore [13194] which was accidentally overwritten in [13315]. See #12256
git-svn-id: https://develop.svn.wordpress.org/trunk@13323 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-23 07:10:47 +00:00
Ryan Boren b2471216cd Revert [13187] pending further debate. see #12267
git-svn-id: https://develop.svn.wordpress.org/trunk@13318 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-23 01:13:37 +00:00
Mark Jaquith 7ff8d50bd4 Serve a real 404 for ?p=does-not-exist, ?cat=does-not-exist, etc. fixes #12250. fixes #10930.
git-svn-id: https://develop.svn.wordpress.org/trunk@13315 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-22 22:54:21 +00:00
Dion Hulse 5318997d5f Display robots.txt even on blogs with 0 posts on the home page. See #12256
git-svn-id: https://develop.svn.wordpress.org/trunk@13194 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 10:57:49 +00:00
Ron Rennick f3a3e63a5b introduce post & comment classes, props skeltoac, See #12267
git-svn-id: https://develop.svn.wordpress.org/trunk@13187 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 01:52:37 +00:00
Dion Hulse 3674f4a101 Do not poison query vars with /&foo=bar/ in requested URL. See #8949
git-svn-id: https://develop.svn.wordpress.org/trunk@13071 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 00:02:47 +00:00
Mark Jaquith 845df4462a Initialize $post_type_query_vars to avoid is_array() warning. see #12923
git-svn-id: https://develop.svn.wordpress.org/trunk@12925 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-02 03:18:27 +00:00
Ryan Boren 46b701d830 Permalinks for custom post types. Props prettyboymp. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12923 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-01 23:12:26 +00:00
Ryan Boren 974b6c1ce4 Introduce home_url(). Props Denis-de-Bernardy, hakre. see #9008
git-svn-id: https://develop.svn.wordpress.org/trunk@12598 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-04 17:23:29 +00:00