Commit Graph

78 Commits

Author SHA1 Message Date
Ryan Boren
22635c32c2 Prevent category looping. Props tellyworth. fixes #7267
git-svn-id: https://develop.svn.wordpress.org/trunk@8299 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-09 04:57:18 +00:00
Ryan Boren
ef48901e65 Don't replace spaces with nbsp. This breaks wrapping. Props MtDewVirus. fixes #7259
git-svn-id: https://develop.svn.wordpress.org/trunk@8281 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-08 00:14:06 +00:00
Peter Westwood
27f6aaeb80 Add new has_tag() template tag. Fixes #6590 props Otto42.
git-svn-id: https://develop.svn.wordpress.org/trunk@8131 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-20 13:52:18 +00:00
Ryan Boren
007689ab77 [7064] introduces an extra query for each call to in_category(). Avoid the query if an int is passed.
git-svn-id: https://develop.svn.wordpress.org/trunk@7904 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-07 19:12:44 +00:00
Ryan Boren
a2e8b5bfd7 Add current_category option to wp_list_categories(). Props filosofo. fixes #6928
git-svn-id: https://develop.svn.wordpress.org/trunk@7903 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-07 19:10:36 +00:00
Ryan Boren
f1d4f49057 Reverting [7729]. Breaks listing of categories with posts that have parents with no posts.
git-svn-id: https://develop.svn.wordpress.org/trunk@7792 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-23 22:00:31 +00:00
Ryan Boren
1a62535f32 We don't need get_categories() to do a hierarchical sort anymore. The walker takes care of it.
git-svn-id: https://develop.svn.wordpress.org/trunk@7729 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-17 21:21:13 +00:00
Ryan Boren
ec33c42302 Taxonomy links and template tags from andy. see #6357
git-svn-id: https://develop.svn.wordpress.org/trunk@7520 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-26 06:37:19 +00:00
Ryan Boren
d32e5b2e7c in_category(): Return immediately if category is empty.
git-svn-id: https://develop.svn.wordpress.org/trunk@7505 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-24 20:39:05 +00:00
Peter Westwood
2494516420 Improve the tabindex's on the Write>Post page. Need to do the others too.
git-svn-id: https://develop.svn.wordpress.org/trunk@7472 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-22 09:14:49 +00:00
Ryan Boren
6d7441c26e Remove trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@7130 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-02 20:17:30 +00:00
Peter Westwood
fdb0fcbafe A better in_category which supports category names that are all numbers.
git-svn-id: https://develop.svn.wordpress.org/trunk@7064 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-27 18:25:25 +00:00
Peter Westwood
025073bf5c Support category names in in_category(). Fixes #4558 props robmil.
git-svn-id: https://develop.svn.wordpress.org/trunk@7030 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-25 22:18:41 +00:00
Ryan Boren
6a3e8797d1 Add optional post ID arg to the_category and get_the_category_list. Props filosofo. fixes #5050
git-svn-id: https://develop.svn.wordpress.org/trunk@6899 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-18 17:46:26 +00:00
Ryan Boren
4fa20e078a Add RAND order option to wp_tag_cloud(). Props fitzrev. fixes #5726
git-svn-id: https://develop.svn.wordpress.org/trunk@6824 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-13 19:12:46 +00:00
Ryan Boren
975ca24e4f Remove spurious dollar sign. fixes #6690
git-svn-id: https://develop.svn.wordpress.org/trunk@6693 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-31 00:58:54 +00:00
Ryan Boren
b7aaf1a3b4 Add depth arg to wp_dropdown_categories(). Props pishmishy. fixes #2461
git-svn-id: https://develop.svn.wordpress.org/trunk@6690 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-30 20:07:52 +00:00
Ryan Boren
39da2f0eec Return, don't echo, array. Props Otto42. fixes #5155
git-svn-id: https://develop.svn.wordpress.org/trunk@6616 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-14 22:35:43 +00:00
Ryan Boren
08af1e5ef3 Add depth arg to wp_list_categories(). Props pishmishy. see #2461
git-svn-id: https://develop.svn.wordpress.org/trunk@6595 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-10 21:51:00 +00:00
Ryan Boren
791a7d7191 Unused var cleanup. Props DD32. see #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6551 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-04 19:36:34 +00:00
Ryan Boren
fb05263f15 New feed_link functions. Deprecate rss_link functions. Make default feed pluggable. Props rubys. see #5328
git-svn-id: https://develop.svn.wordpress.org/trunk@6365 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 19:58:15 +00:00
Ryan Boren
3a8b2fcca3 Remove unused vars. Props DD32. see #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6364 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 19:49:33 +00:00
Peter Westwood
c0e3dc42d7 Translation fix for wp_tag_cloud(). Fixes #5131 props webrocker
git-svn-id: https://develop.svn.wordpress.org/trunk@6227 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-12 19:49:25 +00:00
Ryan Boren
5917c5458c Add checks for WP_Error. Props filosofo. see #4809
git-svn-id: https://develop.svn.wordpress.org/trunk@6125 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-18 16:32:22 +00:00
Ryan Boren
a6fba8edcf Add echo or return option to wp_list_categories. Props Otto42. fixes #4182
git-svn-id: https://develop.svn.wordpress.org/trunk@6091 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 02:53:27 +00:00
Ryan Boren
7a43c01e08 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@6026 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:32:58 +00:00
Ryan Boren
51592ad7f2 Add class to tag cloud links. Props filosofo. fixes #4798
git-svn-id: https://develop.svn.wordpress.org/trunk@5917 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-22 22:28:00 +00:00
Ryan Boren
df22fd9a58 Add back compat to get_the_category. Props nbachiyski. fixes #4771
git-svn-id: https://develop.svn.wordpress.org/trunk@5899 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-18 17:21:51 +00:00
Ryan Boren
3fabbf07a6 Typo fix
git-svn-id: https://develop.svn.wordpress.org/trunk@5872 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-15 21:54:02 +00:00
Ryan Boren
1e61bd9879 get_the_tag_list from andy. fixes #4733
git-svn-id: https://develop.svn.wordpress.org/trunk@5871 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-14 03:44:49 +00:00
Ryan Boren
44afc295c3 Update in_category() to use object term cache API. Props technosailor. fixes #4442
git-svn-id: https://develop.svn.wordpress.org/trunk@5868 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-14 03:01:26 +00:00
Ryan Boren
c315fbacdb Fix variable name. Props bgracewood. fixes #4621
git-svn-id: https://develop.svn.wordpress.org/trunk@5797 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-12 16:00:51 +00:00
Ryan Boren
7df77b79b9 Add some taxonomy validation. Rearrange funcs.
git-svn-id: https://develop.svn.wordpress.org/trunk@5726 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-19 00:33:44 +00:00
rob1n
55845bb061 Show the name, not the slug. fixes #4473
git-svn-id: https://develop.svn.wordpress.org/trunk@5715 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-15 18:26:43 +00:00
Ryan Boren
b046d67f41 Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 02:25:30 +00:00
Matt Mullenweg
526eac00b8 Update in_category to use the new object_term_cache, it wasn't so much with the working before.
git-svn-id: https://develop.svn.wordpress.org/trunk@5693 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-13 00:16:33 +00:00
Ryan Boren
e1ef29586c Use get_term_children() and get_term_field(). see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5660 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-06 16:13:12 +00:00
Ryan Boren
0b91f4aaca Abstract object term cache a bit more. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5616 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-31 21:38:33 +00:00
Ryan Boren
5a8598cd15 Some term caching. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5598 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-30 03:36:59 +00:00
Mark Jaquith
1a08c04371 switch to term_id and name for category sorting. see #4189. sort by term_id for category permalinks, by name for get_the_category(). fixes #4335 for trunk. Props Erik Barzeski for the find.
git-svn-id: https://develop.svn.wordpress.org/trunk@5590 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-29 04:54:45 +00:00
rob1n
6e0db32ccc Add rel="tag" to tag links. fixes #4159
git-svn-id: https://develop.svn.wordpress.org/trunk@5568 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-28 02:07:59 +00:00
rob1n
a030294e1d Fix typo.
git-svn-id: https://develop.svn.wordpress.org/trunk@5549 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-25 16:27:34 +00:00
Ryan Boren
3261234a0d Convert category queries and list cats to taxonomy. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5530 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-23 18:59:12 +00:00
Ryan Boren
2b134cc1f7 Set and get post cats to taxonomy. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5529 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-23 18:07:53 +00:00
Ryan Boren
0bc2a4b956 Add get_terms() and get_term(). Move more of tagging to taxonomy. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5521 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-23 03:57:20 +00:00
rob1n
c213997f48 Use wp_parse_args(). fixes #4237
git-svn-id: https://develop.svn.wordpress.org/trunk@5444 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-11 03:10:05 +00:00
rob1n
9548071ffa Respect show_option_all in wp_list_categories(). Props westi. fixes #4145
git-svn-id: https://develop.svn.wordpress.org/trunk@5265 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-13 23:20:14 +00:00
Ryan Boren
513726b6c7 Change get_the_tags() to return an array of tags. Move tag list code to the_tags(). fixes #4123
git-svn-id: https://develop.svn.wordpress.org/trunk@5235 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-10 21:23:11 +00:00
Ryan Boren
e075553eba Tag clouds from mdawaffe. fixes #4129
git-svn-id: https://develop.svn.wordpress.org/trunk@5234 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-10 19:52:15 +00:00
Ryan Boren
4f59c037ce s/get_post_tags/wp_get_post_tags/ to match the rest of the API.
git-svn-id: https://develop.svn.wordpress.org/trunk@5231 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-10 18:30:55 +00:00