Commit Graph

68 Commits

Author SHA1 Message Date
Matt Mullenweg def9d039f4 Fixes #1186 for 1.6
git-svn-id: https://develop.svn.wordpress.org/trunk@2831 602fd350-edb4-49c9-b593-d223f7449a82
2005-08-30 23:25:34 +00:00
Ryan Boren 337a17904f Return output of list_cats() when calling from wp_list_cats(). Props: edavis fixes #1449
git-svn-id: https://develop.svn.wordpress.org/trunk@2655 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-20 01:30:39 +00:00
Matt Mullenweg 64e674dad8 Bad cat ID cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@2616 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-27 06:10:41 +00:00
Ryan Boren 7a561d0d00 Make sure cache is primed before use in get_category_children().
git-svn-id: https://develop.svn.wordpress.org/trunk@2608 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-14 02:57:47 +00:00
Matt Mullenweg 4b6aa188cd http://mosquito.wordpress.org/view.php?id=1331 - Hat tip: Mike the Magnificant
git-svn-id: https://develop.svn.wordpress.org/trunk@2603 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-13 21:13:13 +00:00
Matt Mullenweg d0af63764e More consistent use of cat_ID vs category_id
git-svn-id: https://develop.svn.wordpress.org/trunk@2551 602fd350-edb4-49c9-b593-d223f7449a82
2005-04-19 17:17:36 +00:00
Ryan Boren 8dec99fddb Cacheing cleanup. Introduce get_post() and get_category(). http://mosquito.wordpress.org/view.php?id=1157
git-svn-id: https://develop.svn.wordpress.org/trunk@2478 602fd350-edb4-49c9-b593-d223f7449a82
2005-03-27 20:45:01 +00:00
Ryan Boren 95e5d37a0d Fix all/none handling in dropdown_cats(). http://mosquito.wordpress.org/view.php?id=1120 Props: nbachiyski
git-svn-id: https://develop.svn.wordpress.org/trunk@2450 602fd350-edb4-49c9-b593-d223f7449a82
2005-03-16 21:36:18 +00:00
Matt Mullenweg a0eba624c5 Category query speedup and indentation fixes. Hat tip: Scott. http://mosquito.wordpress.org/view.php?id=1005
git-svn-id: https://develop.svn.wordpress.org/trunk@2396 602fd350-edb4-49c9-b593-d223f7449a82
2005-03-01 09:10:12 +00:00
Ryan Boren 4aa9fdc013 Make sure get_the_category() returns an array.
git-svn-id: https://develop.svn.wordpress.org/trunk@2387 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-27 04:47:38 +00:00
Ryan Boren f0b153775a Add get_the_category_list(). http://mosquito.wordpress.org/view.php?id=970 Hat tip: nbachiyski
git-svn-id: https://develop.svn.wordpress.org/trunk@2379 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-25 15:50:55 +00:00
michelvaldrighi 4b4f99f127 reverting the previous patch: it made it impossible to sort the list by category name
git-svn-id: https://develop.svn.wordpress.org/trunk@2364 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-18 16:42:49 +00:00
michelvaldrighi 523757d3e6 getting the list of categories from cat_counts if hide_empty is true, saves one query
git-svn-id: https://develop.svn.wordpress.org/trunk@2356 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-16 16:06:07 +00:00
Ryan Boren f35d0429c3 Fix category links when permalinks are not enabled.
git-svn-id: https://develop.svn.wordpress.org/trunk@2347 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-15 06:52:38 +00:00
Matt Mullenweg b217e56e28 More efficient get_category_link - http://mosquito.wordpress.org/view.php?id=590
git-svn-id: https://develop.svn.wordpress.org/trunk@2316 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-14 03:27:50 +00:00
Matt Mullenweg 9c49e1b2a4 Don't show category counts from the future.
git-svn-id: https://develop.svn.wordpress.org/trunk@2270 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-11 03:43:56 +00:00
Matt Mullenweg 5173c86910 Remove querystring variable legacy code
git-svn-id: https://develop.svn.wordpress.org/trunk@2239 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-07 07:37:53 +00:00
Ryan Boren e90040e79b Correctly add args to strings that contain only a query string and not a full URI.
git-svn-id: https://develop.svn.wordpress.org/trunk@2227 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-06 03:40:08 +00:00
Matt Mullenweg 36a16fee94 Adding rel tags
git-svn-id: https://develop.svn.wordpress.org/trunk@2164 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-31 03:49:50 +00:00
Matt Mullenweg 231c6d4b41 Patch from Adi Sieker
git-svn-id: https://develop.svn.wordpress.org/trunk@2160 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-29 20:14:55 +00:00
Ryan Boren 0d0cf5aee2 Add category_link filter.
git-svn-id: https://develop.svn.wordpress.org/trunk@2153 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-26 22:49:18 +00:00
Ryan Boren 41709858cf Filter category description. Bug 727. Hat tip: dmclark
git-svn-id: https://develop.svn.wordpress.org/trunk@2113 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-21 03:06:56 +00:00
Matt Mullenweg 7e8f96ac46 Some feed template function cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@2068 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-07 22:01:59 +00:00
Ryan Boren 0f3886534d Keep it separated.
git-svn-id: https://develop.svn.wordpress.org/trunk@2045 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-04 23:29:13 +00:00
Matt Mullenweg 3ebf5a36e2 Cleaning up blogfilename.
git-svn-id: https://develop.svn.wordpress.org/trunk@1997 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-24 01:34:47 +00:00
Matt Mullenweg 953caf1484 Axing htmlspecialchars because it double-encodes-encodes. Better error handling around queries.
git-svn-id: https://develop.svn.wordpress.org/trunk@1940 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-12 20:41:19 +00:00
Matt Mullenweg 28080bcaae Related to: http://mosquito.wordpress.org/view.php?id=225
Allow optiondates to be a PHP date() formatted timestamp, maintains backward compatibility.


git-svn-id: https://develop.svn.wordpress.org/trunk@1931 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-09 01:30:34 +00:00
Ryan Boren dd4e4b9df6 Move rewrite and permalink functions into WP_Rewrite class.
git-svn-id: https://develop.svn.wordpress.org/trunk@1908 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-03 02:38:11 +00:00
Ryan Boren 8a56739dc3 Check for null category list just in case of borkage.
git-svn-id: https://develop.svn.wordpress.org/trunk@1853 602fd350-edb4-49c9-b593-d223f7449a82
2004-11-15 06:00:21 +00:00
Ryan Boren 2eb5611be9 Sort the category list so that index associations are made non-sparse.
git-svn-id: https://develop.svn.wordpress.org/trunk@1851 602fd350-edb4-49c9-b593-d223f7449a82
2004-11-12 23:08:51 +00:00
Ryan Boren ec57c1a114 Static pages. Take 1.
git-svn-id: https://develop.svn.wordpress.org/trunk@1527 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-10 05:35:59 +00:00
Ryan Boren 685eeb94f9 Quote $id in get_the_category() db query. Patch from MCincubus for bug 0000191.
git-svn-id: https://develop.svn.wordpress.org/trunk@1486 602fd350-edb4-49c9-b593-d223f7449a82
2004-07-27 14:58:30 +00:00
Ryan Boren dc89a3d3a4 Add missing breaks to the_category().
git-svn-id: https://develop.svn.wordpress.org/trunk@1444 602fd350-edb4-49c9-b593-d223f7449a82
2004-06-22 01:42:24 +00:00
Ryan Boren 475e0b9e07 stripslashes() elimination. Remove extra slashes during upgrade. Bugs 0000059 and 0000018
git-svn-id: https://develop.svn.wordpress.org/trunk@1435 602fd350-edb4-49c9-b593-d223f7449a82
2004-06-18 00:22:09 +00:00
jverber b8faed46d6 Changed (wp_)list_cats. children argument now determines if categories below top level are displayed, and hierarchical determines if the list is displayed hierarchically.
git-svn-id: https://develop.svn.wordpress.org/trunk@1412 602fd350-edb4-49c9-b593-d223f7449a82
2004-06-11 19:01:01 +00:00
Ryan Boren 650a1a3a56 Guard against empty $cat_counts array. http://wordpress.org/support/3/6080
git-svn-id: https://develop.svn.wordpress.org/trunk@1389 602fd350-edb4-49c9-b593-d223f7449a82
2004-06-06 07:21:58 +00:00
Ryan Boren fe680a36a0 Add %category% support to get_permalink.
git-svn-id: https://develop.svn.wordpress.org/trunk@1385 602fd350-edb4-49c9-b593-d223f7449a82
2004-06-04 02:36:46 +00:00
Ryan Boren 013c08307a Apply the list_cats filter to the cat name. Credit: Jaykul. http://wordpress.org/support/4/6242
git-svn-id: https://develop.svn.wordpress.org/trunk@1375 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-31 22:09:38 +00:00
Ryan Boren 035a6402d2 Fix up the_category_ID() and the_category_head() to maintain backwards compat. Mark as deprecated.
git-svn-id: https://develop.svn.wordpress.org/trunk@1368 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-27 21:19:37 +00:00
Matt Mullenweg 717855f007 Giant commit, sorry mailing list people. Move all table names to new $wpdb versions. Works but the whole app needs thorough testing now.
git-svn-id: https://develop.svn.wordpress.org/trunk@1355 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-24 08:22:18 +00:00
Dougal Campbell 7fbb072b49 Fixed list_cats support for hide_empty and optioncount. Also fixed indentation in that function.
git-svn-id: https://develop.svn.wordpress.org/trunk@1328 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-20 14:07:55 +00:00
Matt Mullenweg b14b19b3ff Simple function to check if a post is in a category.
git-svn-id: https://develop.svn.wordpress.org/trunk@1304 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-18 08:18:38 +00:00
Dougal Campbell 17ab4425d2 Only used published posts.
git-svn-id: https://develop.svn.wordpress.org/trunk@1280 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-14 19:44:23 +00:00
michelvaldrighi 7b9518dbed fix for the bug that made list_cats show empty categories, thanks to brux
git-svn-id: https://develop.svn.wordpress.org/trunk@1278 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-14 16:20:38 +00:00
michelvaldrighi addba80c31 (sue me, I had committed with debug junk still in there)
git-svn-id: https://develop.svn.wordpress.org/trunk@1249 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-09 16:41:16 +00:00
michelvaldrighi 440b7aaff6 adding wp_filter support to the_category, the_category_rss, and list_cats
git-svn-id: https://develop.svn.wordpress.org/trunk@1248 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-09 16:34:03 +00:00
Matt Mullenweg 7f1cdc843e Various fixes and cleanups, inspired and pointed out by Joseph Scott.
git-svn-id: https://develop.svn.wordpress.org/trunk@1245 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-09 05:47:02 +00:00
Matt Mullenweg 4a58f4f523 Fixes for silly category_base stuff. Now lets it be blank and acts accordingly, more sane.
git-svn-id: https://develop.svn.wordpress.org/trunk@1244 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-09 02:52:27 +00:00
Matt Mullenweg 3b1de5d605 Some E_ALL fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@1235 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-05 21:29:23 +00:00
Matt Mullenweg 6eae3c0e1e Missed the cat call.
git-svn-id: https://develop.svn.wordpress.org/trunk@1228 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-05 07:59:51 +00:00