Commit Graph

129 Commits

Author SHA1 Message Date
Peter Westwood
0d522c3898 Plugin Install GSOC project first code drop. Props DD32 see #6015.
git-svn-id: https://develop.svn.wordpress.org/trunk@8540 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-04 21:01:09 +00:00
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
Ryan Boren
cfb13d7bcf Relocate get_post_tags.
git-svn-id: https://develop.svn.wordpress.org/trunk@5197 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-06 18:22:54 +00:00
Ryan Boren
214141d62a Typo
git-svn-id: https://develop.svn.wordpress.org/trunk@5196 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-06 17:53:34 +00:00
Matt Mullenweg
a059392772 Now tag pretty permalinks should work, and support custom tag bases.
git-svn-id: https://develop.svn.wordpress.org/trunk@5150 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-31 09:19:32 +00:00
Matt Mullenweg
570a74e818 All the query stuff we need for tag= URLs to work.
git-svn-id: https://develop.svn.wordpress.org/trunk@5149 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-31 06:16:12 +00:00
Matt Mullenweg
bfb4b8c091 Basic theme support for tags.
git-svn-id: https://develop.svn.wordpress.org/trunk@5111 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-26 08:08:31 +00:00
Ryan Boren
d64c69bcd4 Castaways on Gilligan's Isle
git-svn-id: https://develop.svn.wordpress.org/trunk@5090 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-23 02:16:16 +00:00
Matt Mullenweg
b1f6f9a6a8 (int)er the dragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@5087 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-23 00:59:21 +00:00
Ryan Boren
77559c20b4 More int casts
git-svn-id: https://develop.svn.wordpress.org/trunk@5082 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-22 20:52:29 +00:00
Mark Jaquith
e2f9950018 user_trailingslashit filter for users who sometimes want trailing slashes only on certain URL types. fixes #3899
git-svn-id: https://develop.svn.wordpress.org/trunk@5019 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-10 06:18:43 +00:00
Mark Jaquith
5acfcd9fea trailing tabs and whitespace cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@4953 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-27 15:24:54 +00:00
Mark Jaquith
abb1f0ce50 properly sort categories by name for the_category(). Props rob1n. fixes #1302
git-svn-id: https://develop.svn.wordpress.org/trunk@4903 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-21 02:13:47 +00:00
Mark Jaquith
5164d38cb5 Consistent use or disuse of trailing slashes in URLs according to user preference. props MathiasBynens. fixes #1485
git-svn-id: https://develop.svn.wordpress.org/trunk@4886 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-15 07:07:12 +00:00
Mark Jaquith
a6a04bb76f Typo in [4790] caught by Znuff. fixes #3644
git-svn-id: https://develop.svn.wordpress.org/trunk@4795 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-24 05:44:24 +00:00
Mark Jaquith
35e2f47f5f Do not attempt to use rel-tag for URL schemes that do not support it. fixes #3265
git-svn-id: https://develop.svn.wordpress.org/trunk@4790 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-23 08:21:28 +00:00
Ryan Boren
e842aa31f7 Check style. Props nickshanks. fixes #3610
git-svn-id: https://develop.svn.wordpress.org/trunk@4774 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-19 20:58:56 +00:00
Ryan Boren
ebc82b1be2 Add wp_list_categories filter. Props Mark Jaquith. fixes #3586
git-svn-id: https://develop.svn.wordpress.org/trunk@4755 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-16 22:50:30 +00:00
Ryan Boren
9fb0fa48fb Hierarchical category count fixes from andy. fixes #2738
git-svn-id: https://develop.svn.wordpress.org/trunk@4707 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-09 08:45:05 +00:00
Ryan Boren
f906c003c6 Better AJAX feedback messages and markup fixes. Props mdawaffe. fixes #3208
git-svn-id: https://develop.svn.wordpress.org/trunk@4583 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-01 23:00:04 +00:00
Ryan Boren
7b8f7aedc1 Avoid empty result category queries. Props andy. fixes #3416
git-svn-id: https://develop.svn.wordpress.org/trunk@4580 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-01 18:55:27 +00:00
Ryan Boren
f74d084276 Key caches by blog ID for those doing the multi blog trick.
git-svn-id: https://develop.svn.wordpress.org/trunk@4524 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-23 20:39:39 +00:00
Ryan Boren
e44ea1ff93 Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986
git-svn-id: https://develop.svn.wordpress.org/trunk@4495 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-19 07:56:05 +00:00
Ryan Boren
fa4a39b0c7 Init vars before use. Props Alex King. fixes #3180
git-svn-id: https://develop.svn.wordpress.org/trunk@4277 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-03 15:41:44 +00:00
Ryan Boren
3c348108f8 Warning and notice fixes from Alex King. fixes #3148
git-svn-id: https://develop.svn.wordpress.org/trunk@4198 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-19 23:56:28 +00:00
Ryan Boren
d51b58448f Avoid infinite loop when category_parent equals cat_ID
git-svn-id: https://develop.svn.wordpress.org/trunk@4173 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-07 17:42:24 +00:00
Ryan Boren
696f300b47 Make the current cat the selected cat when doing a category query. fixes #1194
git-svn-id: https://develop.svn.wordpress.org/trunk@4151 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-31 21:36:21 +00:00
Ryan Boren
7e82eef627 Use get_option instead of get_settings. Just 'cause.
git-svn-id: https://develop.svn.wordpress.org/trunk@4144 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-30 21:46:31 +00:00
Ryan Boren
4653173525 Use wp_list_categories() in templates.
git-svn-id: https://develop.svn.wordpress.org/trunk@3881 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-17 00:05:00 +00:00
Ryan Boren
58ed7bdc3b Reorg category functions. #2525
git-svn-id: https://develop.svn.wordpress.org/trunk@3843 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-04 21:36:52 +00:00