Commit Graph

110 Commits

Author SHA1 Message Date
azaozz 9d35395cb5 Tag descriptions, props aaroncampbell, fixes #9381
git-svn-id: http://svn.automattic.com/wordpress/trunk@10903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-09 16:00:40 +00:00
ryan 778f47aac1 Invoke the_tags filter in the_tags(). Props scribu. fixes #9436
git-svn-id: http://svn.automattic.com/wordpress/trunk@10888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-07 23:54:16 +00:00
ryan bf0796d4f8 Deprecate get_category_children(). Props filosofo. fixes #9007
git-svn-id: http://svn.automattic.com/wordpress/trunk@10703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-04 19:53:17 +00:00
azaozz b8b2f2115b Fix wp_tag_cloud 'RAND' when only one tag, props DD32, fixes #9214
git-svn-id: http://svn.automattic.com/wordpress/trunk@10636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-23 09:12:59 +00:00
ryan 44caa31796 Force term ID to be an int. Props filosofo. fixes #9193
git-svn-id: http://svn.automattic.com/wordpress/trunk@10613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-20 23:31:46 +00:00
ryan fc660a45a3 Use _n(). Props nbachiyski. fixes #9111
git-svn-id: http://svn.automattic.com/wordpress/trunk@10606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-20 19:35:16 +00:00
ryan 57c3eba439 Add taxonomy argument to wp_tag_cloud()
git-svn-id: http://svn.automattic.com/wordpress/trunk@10554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-11 23:41:29 +00:00
azaozz 8d72414561 Fix ASC/DESC tag ordering by count, props mrmist, fixes #8609 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-06 00:34:31 +00:00
ryan d38dee6a4a 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: http://svn.automattic.com/wordpress/trunk@10275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-30 22:30:36 +00:00
ryan 5aaf5ac0ad Allow overriding cat walker. Props AaronCampbell. fixes #8682 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-23 12:52:37 +00:00
ryan f368711809 Fix selected for none and all. Props filosofo. fixes #8700 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-23 12:51:12 +00:00
ryan fe8c666fe2 Remove lines that are choking phpdoc
git-svn-id: http://svn.automattic.com/wordpress/trunk@10192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-11 22:20:54 +00:00
ryan d81c59d985 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: http://svn.automattic.com/wordpress/trunk@10159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-09 23:31:11 +00:00
ryan e89192b1a8 Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-09 18:03:31 +00:00
ryan 1d976b4781 Honor largest and smallest options when they are the same. Props scohoust. fixes #7504
git-svn-id: http://svn.automattic.com/wordpress/trunk@9952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-28 21:06:57 +00:00
ryan 3cd406eab7 Fix notice
git-svn-id: http://svn.automattic.com/wordpress/trunk@9893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-26 01:06:25 +00:00
ryan 7f14907c42 Update object term cache from get_the_category()
git-svn-id: http://svn.automattic.com/wordpress/trunk@9885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-25 22:12:36 +00:00
westi b6da4f7a13 Ensure tag cloud topic(s) tooltips can be translated. Fixes #7989 props nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-21 18:12:57 +00:00
westi 9ebad4866c Improve code style.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-10 21:57:26 +00:00
azaozz 8d65096069 Add "Choose from popular tags" to the tags postbox
git-svn-id: http://svn.automattic.com/wordpress/trunk@9518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-04 23:15:59 +00:00
ryan 3368e6b8e5 Warning fixes
git-svn-id: http://svn.automattic.com/wordpress/trunk@9475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-02 20:53:15 +00:00
ryan cca9311267 Add self parent check
git-svn-id: http://svn.automattic.com/wordpress/trunk@9360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-26 18:26:45 +00:00
ryan ce62669cc4 Introduce get_edit_tag_link() and add option to wp_tag_cloud() for showing edit links.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-25 18:19:42 +00:00
ryan 461ac5808d Fix in_category() when checking non-cached categories. fixes #7181
git-svn-id: http://svn.automattic.com/wordpress/trunk@9289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-22 21:31:55 +00:00
westi b31aa3f568 Pass on the $separator. Fixes #7005.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-15 21:02:07 +00:00
azaozz 3be46dfb57 Complete inline documentation for category-template.php, props jacobsantos, fixes #5634
git-svn-id: http://svn.automattic.com/wordpress/trunk@8975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-25 14:16:27 +00:00
ryan 96b987270d Tag cloud fixes from DD32. Implements number arg. see #6015
git-svn-id: http://svn.automattic.com/wordpress/trunk@8668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-19 16:36:18 +00:00
ryan facedb8d81 Revert tag cloud changes in 8540 and 8569. They broke tag sorting. see #6015
git-svn-id: http://svn.automattic.com/wordpress/trunk@8666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-18 23:40:41 +00:00
markjaquith 17df697bef Whitespacing/coding standards cleanup for category-template.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@8574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-06 21:01:46 +00:00
markjaquith 74c46749cb Cast to array when using foreach(). Props santosj (and thanks for your perseverance!). fixes #2784
git-svn-id: http://svn.automattic.com/wordpress/trunk@8572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-06 20:31:54 +00:00
ryan 7f8c8b6ae7 Fix tag cloud links. Props DD32. see #6015
git-svn-id: http://svn.automattic.com/wordpress/trunk@8569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-06 15:53:39 +00:00
westi 35f46f0d4b Plugin Install GSOC project first code drop. Props DD32 see #6015.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-04 21:01:09 +00:00
ryan 100ed8a62d Prevent category looping. Props tellyworth. fixes #7267
git-svn-id: http://svn.automattic.com/wordpress/trunk@8299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-09 04:57:18 +00:00
ryan 792b5dfd36 Don't replace spaces with nbsp. This breaks wrapping. Props MtDewVirus. fixes #7259
git-svn-id: http://svn.automattic.com/wordpress/trunk@8281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-08 00:14:06 +00:00
westi e3b575b617 Add new has_tag() template tag. Fixes #6590 props Otto42.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 13:52:18 +00:00
ryan d8ee8494be [7064] introduces an extra query for each call to in_category(). Avoid the query if an int is passed.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-07 19:12:44 +00:00
ryan 87db175abe Add current_category option to wp_list_categories(). Props filosofo. fixes #6928
git-svn-id: http://svn.automattic.com/wordpress/trunk@7903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-07 19:10:36 +00:00
ryan eaf44137c6 Reverting [7729]. Breaks listing of categories with posts that have parents with no posts.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-23 22:00:31 +00:00
ryan 84bd7d6a00 We don't need get_categories() to do a hierarchical sort anymore. The walker takes care of it.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 21:21:13 +00:00
ryan e1b1845154 Taxonomy links and template tags from andy. see #6357
git-svn-id: http://svn.automattic.com/wordpress/trunk@7520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 06:37:19 +00:00
ryan f9f1f16dca in_category(): Return immediately if category is empty.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 20:39:05 +00:00
westi ad583a7219 Improve the tabindex's on the Write>Post page. Need to do the others too.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 09:14:49 +00:00
ryan 04c9051a7d Remove trailing whites.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-02 20:17:30 +00:00
westi 9735b962ba A better in_category which supports category names that are all numbers.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 18:25:25 +00:00
westi fdb26f5bae Support category names in in_category(). Fixes #4558 props robmil.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 22:18:41 +00:00
ryan 1ba0025c60 Add optional post ID arg to the_category and get_the_category_list. Props filosofo. fixes #5050
git-svn-id: http://svn.automattic.com/wordpress/trunk@6899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 17:46:26 +00:00
ryan e5879ea923 Add RAND order option to wp_tag_cloud(). Props fitzrev. fixes #5726
git-svn-id: http://svn.automattic.com/wordpress/trunk@6824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 19:12:46 +00:00
ryan 2340b8dda6 Remove spurious dollar sign. fixes #6690
git-svn-id: http://svn.automattic.com/wordpress/trunk@6693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-31 00:58:54 +00:00
ryan d88d4f85dd Add depth arg to wp_dropdown_categories(). Props pishmishy. fixes #2461
git-svn-id: http://svn.automattic.com/wordpress/trunk@6690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-30 20:07:52 +00:00
ryan b95f8d4459 Return, don't echo, array. Props Otto42. fixes #5155
git-svn-id: http://svn.automattic.com/wordpress/trunk@6616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 22:35:43 +00:00