Commit Graph

307 Commits

Author SHA1 Message Date
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
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 d6e6296b89 Make hierarchical URLs work for any hierarchical taxonomy. See #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@15732 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-06 11:04:03 +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
Andrew Nacin 7cac913b3b Restore wp_delete_category. props blepoxp, fixes #15008.
git-svn-id: https://develop.svn.wordpress.org/trunk@15712 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 16:28:01 +00:00
Dion Hulse 6ace731ac8 Introduce hierarchical taxonomy URL's, Can be enabled by setting 'hierarchical_url' to true upon taxonomy registration. See #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@15705 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 10:37:25 +00:00
Andrew Nacin 6d07d415ec Have wp_delete_category wrap wp_delete_term. Move wp_delete_category into wp-includes scope for consistency. fixes #15008, props blepoxp.
git-svn-id: https://develop.svn.wordpress.org/trunk@15690 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-03 07:29:44 +00:00
Andrew Nacin ea2f90c70e Move some post and taxonomy functions from admin/includes to wp-includes in preparation for QuickPress template tag. Moves get_tags_to_edit, get_terms_to_edit, get_default_post_to_edit, media_buttons, _media_button, get_upload_iframe_src. Also introduce get_media_buttons as a wrapper for media_buttons. props jorbin, see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@15688 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-03 02:58:59 +00:00
scribu d4eecd8787 get_objects_in_term(): include term children when querying by slug. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15654 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-24 14:08:07 +00:00
scribu b55b06e466 Introduce get_ancestors(). Props filosofo. Fixes #12443
git-svn-id: https://develop.svn.wordpress.org/trunk@15631 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-18 19:20:16 +00:00
scribu 5c95616ce8 Clean up taxonomy queries in WP_Query. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15613 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-13 16:44:14 +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 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
Mark Jaquith 400a42ffea Do not cache terms indefinitely... use TTL of one day. fixes #11431. props Denis-de-Bernardy
git-svn-id: https://develop.svn.wordpress.org/trunk@15583 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 04:13:01 +00:00
scribu fb9394167f Ajaxify list-type screens in the admin. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15491 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-11 21:54:51 +00:00
Ryan Boren 70358dc160 If category already exists, return its ID. Restores previous behavior. fixes #14067 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15425 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-14 14:12:23 +00:00
Dion Hulse 7efc4efdaa Alot more tabs. Props jacobsantos & Viper007bond. See #14147
git-svn-id: https://develop.svn.wordpress.org/trunk@15355 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-30 00:05:18 +00:00
Ryan Boren fc2793bd46 Deprecate is_term, is_taxonomy, is_post_type for *_exists(). Props nacin. fixes #13747
git-svn-id: https://develop.svn.wordpress.org/trunk@15220 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 15:53:41 +00:00
Andrew Nacin 9d38c0af9e Move 'helps' argument to the taxonomy labels object. Also move over help_nojs and help_cloud, both introduced in 3.0. This adds three new core labels for non-hierarchical taxonomies, for tweaking the meta box strings. fixes #13805.
git-svn-id: https://develop.svn.wordpress.org/trunk@15190 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 16:07:33 +00:00
Andrew Nacin 628f5ab5fc Remove 'popular_items' label for hierarchical taxonomies. see [15140], [15141]
git-svn-id: https://develop.svn.wordpress.org/trunk@15142 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-04 19:21:06 +00:00
Ryan Boren 0922715668 Cut 'em out, move 'em on, trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@15116 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 20:04:07 +00:00
Ryan Boren 00e5134460 Remove debug. fixes #13670
git-svn-id: https://develop.svn.wordpress.org/trunk@15110 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 15:00:09 +00:00
Ryan Boren f0ab192369 Make _pad_term_counts custom post type aware. Props reko. fixes #13670
git-svn-id: https://develop.svn.wordpress.org/trunk@15108 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 14:55:33 +00:00
Andrew Nacin 075859cb0c Fix a default taxonomy label. props michaelh, fixes #13624.
git-svn-id: https://develop.svn.wordpress.org/trunk@15065 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 20:45:31 +00:00