Commit Graph

104 Commits

Author SHA1 Message Date
Ryan Boren 0066076858 Add taxonomy argument to wp_tag_cloud()
git-svn-id: https://develop.svn.wordpress.org/trunk@10554 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-11 23:41:29 +00:00
Andrew Ozz 9eda5b7f06 Fix ASC/DESC tag ordering by count, props mrmist, fixes #8609 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10316 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-06 00:34:31 +00:00
Ryan Boren e7a5bb8295 Add exclude_tree for categories. Make exclude behave like exclude_tree when hierarchical to restore < 2.7 behavior. Props filosofo. fixes #8614 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10275 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-30 22:30:36 +00:00
Ryan Boren be55326e50 Allow overriding cat walker. Props AaronCampbell. fixes #8682 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10246 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-23 12:52:37 +00:00
Ryan Boren c5c0b4896f Fix selected for none and all. Props filosofo. fixes #8700 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10243 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-23 12:51:12 +00:00
Ryan Boren f083ebca6a Remove lines that are choking phpdoc
git-svn-id: https://develop.svn.wordpress.org/trunk@10192 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-11 22:20:54 +00:00
Ryan Boren 5d116156b3 Convert in_category() and has_tags() to use the same is_object_in_term(), which accepts one object, one taxonomy, and 0, 1 or multiple term term_ids/names/slugs.
In those functions, compare ints only to term_ids. Strings are compared to term_ids, names, slugs.

Document all three better, and note how they've changed with WP versions. Prop mdawaffe

git-svn-id: https://develop.svn.wordpress.org/trunk@10159 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-09 23:31:11 +00:00
Ryan Boren baaaa352ba Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-09 18:03:31 +00:00
Ryan Boren 6a57390b1c Honor largest and smallest options when they are the same. Props scohoust. fixes #7504
git-svn-id: https://develop.svn.wordpress.org/trunk@9952 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-28 21:06:57 +00:00
Ryan Boren 30b38c9d39 Fix notice
git-svn-id: https://develop.svn.wordpress.org/trunk@9893 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-26 01:06:25 +00:00
Ryan Boren 351a57e3ba Update object term cache from get_the_category()
git-svn-id: https://develop.svn.wordpress.org/trunk@9885 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-25 22:12:36 +00:00
Peter Westwood 7015a56598 Ensure tag cloud topic(s) tooltips can be translated. Fixes #7989 props nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@9834 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-21 18:12:57 +00:00
Peter Westwood 68d0d5b2ba Improve code style.
git-svn-id: https://develop.svn.wordpress.org/trunk@9599 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-10 21:57:26 +00:00
Andrew Ozz 2dde47a9f2 Add "Choose from popular tags" to the tags postbox
git-svn-id: https://develop.svn.wordpress.org/trunk@9518 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-04 23:15:59 +00:00
Ryan Boren fa7377cd36 Warning fixes
git-svn-id: https://develop.svn.wordpress.org/trunk@9475 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-02 20:53:15 +00:00
Ryan Boren cf28ff22d5 Add self parent check
git-svn-id: https://develop.svn.wordpress.org/trunk@9360 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-26 18:26:45 +00:00
Ryan Boren 5999f964e7 Introduce get_edit_tag_link() and add option to wp_tag_cloud() for showing edit links.
git-svn-id: https://develop.svn.wordpress.org/trunk@9340 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-25 18:19:42 +00:00
Ryan Boren 584088045a Fix in_category() when checking non-cached categories. fixes #7181
git-svn-id: https://develop.svn.wordpress.org/trunk@9289 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-22 21:31:55 +00:00
Peter Westwood 30591ea199 Pass on the $separator. Fixes #7005.
git-svn-id: https://develop.svn.wordpress.org/trunk@9190 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-15 21:02:07 +00:00
Andrew Ozz 87f32ab517 Complete inline documentation for category-template.php, props jacobsantos, fixes #5634
git-svn-id: https://develop.svn.wordpress.org/trunk@8975 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-25 14:16:27 +00:00
Ryan Boren 4fc2923bb4 Tag cloud fixes from DD32. Implements number arg. see #6015
git-svn-id: https://develop.svn.wordpress.org/trunk@8668 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-19 16:36:18 +00:00
Ryan Boren f104c612cb Revert tag cloud changes in 8540 and 8569. They broke tag sorting. see #6015
git-svn-id: https://develop.svn.wordpress.org/trunk@8666 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-18 23:40:41 +00:00
Mark Jaquith 0649bb45b1 Whitespacing/coding standards cleanup for category-template.php
git-svn-id: https://develop.svn.wordpress.org/trunk@8574 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-06 21:01:46 +00:00
Mark Jaquith 3cab99fbd2 Cast to array when using foreach(). Props santosj (and thanks for your perseverance!). fixes #2784
git-svn-id: https://develop.svn.wordpress.org/trunk@8572 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-06 20:31:54 +00:00
Ryan Boren f70269ff48 Fix tag cloud links. Props DD32. see #6015
git-svn-id: https://develop.svn.wordpress.org/trunk@8569 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-06 15:53:39 +00:00
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