Commit Graph

330 Commits

Author SHA1 Message Date
Ryan Boren de1f10c283 Don't sanitize_key() the post type so that colons aren't stripped from attachment types. Props nacin. fixes #15982
git-svn-id: https://develop.svn.wordpress.org/trunk@17155 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-26 22:00:50 +00:00
Ryan Boren a748e507e5 link_notes and term_description escaping fixes. Props garyc40. fixes #15454
git-svn-id: https://develop.svn.wordpress.org/trunk@17146 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-25 22:45:09 +00:00
Andrew Nacin 537d726a7c Make get_the_taxonomies() take an array of arguments. props scribu, fixes #14740.
git-svn-id: https://develop.svn.wordpress.org/trunk@17028 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-17 16:33:16 +00:00
Ryan Boren 748f5f0154 phpdoc notation fixes. Props demetris. fixes #15852
git-svn-id: https://develop.svn.wordpress.org/trunk@17009 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 22:46:13 +00:00
Ryan Boren c1e26ef82c Add like_escape() to some queries. fixes #15764
git-svn-id: https://develop.svn.wordpress.org/trunk@16999 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 14:22:41 +00:00
Mark Jaquith 595bc10419 Add WP Rewrite root to front of add_permastruct() call when adding a taxonomy. fixes #15813
git-svn-id: https://develop.svn.wordpress.org/trunk@16918 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-14 16:28:16 +00:00
Ryan Boren 6dc2d07bc4 Pink trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@16900 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-13 21:21:50 +00:00
scribu ab5cd7a4f5 Inline docs for WP_Tax_Query. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16854 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-10 08:20:46 +00:00
scribu 77f5f54ff7 Correct relation var and PHP4 constructor. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16850 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-09 19:36:33 +00:00
scribu 85a176fe8f Introduce WP_Tax_Query. Fix canonical redirects in the process. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16849 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-09 19:29:21 +00:00
scribu 1527d28dca False advertising is bad. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16845 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-09 17:19:23 +00:00
scribu a5cb537970 Set tax query defaults earlier, for notice prevention and convenience. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16843 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-09 17:05:40 +00:00
Andrew Nacin abd3871510 Use correct query var. see #15378.
git-svn-id: https://develop.svn.wordpress.org/trunk@16837 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-09 14:23:54 +00:00
scribu 005b2e5be1 Make get_term_by() use sanitize_title_for_query() too. See #9591
git-svn-id: https://develop.svn.wordpress.org/trunk@16832 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-09 10:05:19 +00:00
Ryan Boren 00356f8e4a Use santize_key() in more places. Props WraithKenny. fixes #14910
git-svn-id: https://develop.svn.wordpress.org/trunk@16822 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-08 21:32:19 +00:00
Andrew Nacin 96e0e3b82f Post format indexes. First pass. see #15378.
git-svn-id: https://develop.svn.wordpress.org/trunk@16705 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-03 10:13:17 +00:00
Peter Westwood b0b22ceb97 Clean the cache when deleting a term. Fixes #15651
git-svn-id: https://develop.svn.wordpress.org/trunk@16691 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 17:10:02 +00:00
scribu e41d9bc392 Get rid of misplaced 'taxonomy_template' filter. Fixes #14740
git-svn-id: https://develop.svn.wordpress.org/trunk@16665 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-01 20:16:24 +00:00
scribu 4fd10f33f0 Introduce 'relation' operator between tax queries. Props Otto42 for initial patch. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16555 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-23 20:22:27 +00:00
Andrew Nacin e8dd42ce2a Revert [15688], [15689], [15691]. Try again in 3.2. see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@16535 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-22 17:17:26 +00:00
scribu 3c7fb2fb3b Update get_tax_sql() docblock. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@16523 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-21 14:09:01 +00:00
scribu a825250771 Fix logic for when excluding a non-existant term. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16512 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-20 21:28:50 +00:00
Ryan Boren 75453e5e2d If the queried term does not exist make sure no posts are returned in the query rather than falling through to querying all posts. Fixes 404s when querying cats that do not exist. see #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16511 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-20 21:10:20 +00:00
Mark Jaquith 29b90f079d Exclude term exclusions even if they are also inclusions. props foofy, scribu. see #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16467 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 19:04:47 +00:00
scribu 0e87356092 Clarify doc-block for wp_delete_object_term_relationships(). Props simonwheatley. Fixes #15472
git-svn-id: https://develop.svn.wordpress.org/trunk@16466 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 18:46:41 +00:00
Ryan Boren 4b33a0e9c4 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@16438 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 18:47:34 +00:00
scribu 3e01f9a81d Fix ambiguous column error. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16423 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 12:33:32 +00:00
scribu 92fae02550 Optimize get_tax_sql(). See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16413 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 01:56:01 +00:00
scribu 373717aeba Revert taxonomy.php part of [16402]. Not fully backed yet. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16403 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 16:24:14 +00:00
scribu 93b63b771c Don't pollute the 'tax_query' query var. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16402 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 16:22:09 +00:00
scribu 688dda0b1d Fix get_tax_sql() docs. Props Viper007Bond. Fixes #15431
git-svn-id: https://develop.svn.wordpress.org/trunk@16382 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 11:24:55 +00:00
scribu 3d5162ecc3 Better error handling in get_meta_sql(). Props Viper007Bond. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16379 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 10:02:39 +00:00
scribu 32b416f959 Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422
git-svn-id: https://develop.svn.wordpress.org/trunk@16365 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-14 15:50:02 +00:00
Andrew Nacin f75f0aee7f Only register post_format taxonomy to posts. see #15396, #14746.
git-svn-id: https://develop.svn.wordpress.org/trunk@16322 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 10:58:58 +00:00
scribu 83738d47f4 Make get_tax_sql() a standalone function. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16267 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 23:30:35 +00:00
Andrew Nacin c165557b3e Introduce menu_name label for taxonomies and post types. Defaults to name. fixes #14832.
git-svn-id: https://develop.svn.wordpress.org/trunk@16251 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 02:09:00 +00:00
scribu d72c69b7b6 Introduce get_terms_args filter. Fixes #15020
git-svn-id: https://develop.svn.wordpress.org/trunk@16059 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 19:09:18 +00:00
scribu 34ca745a55 Add terms_clauses filter. Props sc0ttkclark for initial patch. See #15020
git-svn-id: https://develop.svn.wordpress.org/trunk@16056 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 17:55:30 +00:00
scribu ed9a39abab Introduce sanitize_title_for_query(). See #9591
git-svn-id: https://develop.svn.wordpress.org/trunk@15929 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 12:55:55 +00:00
scribu c87a8235ca Remove debugging code in wp_check_term_hierarchy_for_loops(). See #14662
git-svn-id: https://develop.svn.wordpress.org/trunk@15922 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 21:31:57 +00:00
Andrew Nacin 7e48ac3e78 Pruning shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@15904 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 19:55:28 +00:00
Andrew Nacin fb4e38b0e7 Pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@15843 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:48:22 +00:00
Andrew Nacin fc71934f11 Full @since's for 3.1.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@15842 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:38:42 +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
Dion Hulse a47b78e95b Move hierarchical_url to $args['rewrite']['hierarchical']
git-svn-id: https://develop.svn.wordpress.org/trunk@15824 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 04:36:26 +00:00
Ryan Boren 227e02298a nav_menu and post_format taxonomies should not be public. fixes #15107
git-svn-id: https://develop.svn.wordpress.org/trunk@15818 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 14:53:55 +00:00
Ryan Boren 8e1da911a2 Prevent post and term hierarchy loops. Props mdawaffe. fixes #14662
git-svn-id: https://develop.svn.wordpress.org/trunk@15806 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 15:09:04 +00:00
Ryan Boren cd1fc3faa2 Don't hide empty terms when determing exclude trees. Props layotte. fixes #14446
git-svn-id: https://develop.svn.wordpress.org/trunk@15797 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 20:12:20 +00:00
Ryan Boren b1beb9c211 Post formats, take one. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@15777 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-12 18:33:14 +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