Commit Graph

77 Commits

Author SHA1 Message Date
ryan 3a3d3f6aee Don't get children for cat 0. fixes #2123
git-svn-id: http://svn.automattic.com/wordpress/trunk@3338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-12-22 04:31:48 +00:00
matt 89bbb5bb21 Eliminating query and vars now that we have category_count in DB
git-svn-id: http://svn.automattic.com/wordpress/trunk@3039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-11-11 01:03:13 +00:00
ryan c42cbf7d09 Highlight current class. Props amanzi and skippy. fixes #1800
git-svn-id: http://svn.automattic.com/wordpress/trunk@3033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-11-10 23:42:56 +00:00
ryan 85723b8944 Object caching, round one.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-11-07 21:56:03 +00:00
matt 56e058d6d8 Missing global, fix from airport. :)
git-svn-id: http://svn.automattic.com/wordpress/trunk@2978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-11-01 18:22:30 +00:00
matt 2718217d3b Some optimizations in queries and code.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-10-29 23:23:17 +00:00
matt e0e5a1659c Cleaner, better, faster.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-10-29 22:24:27 +00:00
ryan b1f86c0a51 Code cleanup from Mark Jaquith. fixes #1746
git-svn-id: http://svn.automattic.com/wordpress/trunk@2943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-10-12 17:01:50 +00:00
ryan d0a769dd73 SQL error fix from MikeLittle. fixes #1711
git-svn-id: http://svn.automattic.com/wordpress/trunk@2931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-10-05 22:48:51 +00:00
matt 5fd72f93fb Fixes #1186 for 1.6
git-svn-id: http://svn.automattic.com/wordpress/trunk@2831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-08-30 23:25:34 +00:00
ryan 48035b638a Return output of list_cats() when calling from wp_list_cats(). Props: edavis fixes #1449
git-svn-id: http://svn.automattic.com/wordpress/trunk@2655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-06-20 01:30:39 +00:00
matt b3a5117b6d Bad cat ID cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@2616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-05-27 06:10:41 +00:00
ryan 8788a9bd9e Make sure cache is primed before use in get_category_children().
git-svn-id: http://svn.automattic.com/wordpress/trunk@2608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-05-14 02:57:47 +00:00
matt 4160fafdcd http://mosquito.wordpress.org/view.php?id=1331 - Hat tip: Mike the Magnificant
git-svn-id: http://svn.automattic.com/wordpress/trunk@2603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-05-13 21:13:13 +00:00
matt a2b53e2909 More consistent use of cat_ID vs category_id
git-svn-id: http://svn.automattic.com/wordpress/trunk@2551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-04-19 17:17:36 +00:00
ryan 8f9c24ef7a Cacheing cleanup. Introduce get_post() and get_category(). http://mosquito.wordpress.org/view.php?id=1157
git-svn-id: http://svn.automattic.com/wordpress/trunk@2478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-03-27 20:45:01 +00:00
ryan 8b3937b621 Fix all/none handling in dropdown_cats(). http://mosquito.wordpress.org/view.php?id=1120 Props: nbachiyski
git-svn-id: http://svn.automattic.com/wordpress/trunk@2450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-03-16 21:36:18 +00:00
matt 2233bfb700 Category query speedup and indentation fixes. Hat tip: Scott. http://mosquito.wordpress.org/view.php?id=1005
git-svn-id: http://svn.automattic.com/wordpress/trunk@2396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-03-01 09:10:12 +00:00
ryan 4ae13d2448 Make sure get_the_category() returns an array.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-27 04:47:38 +00:00
ryan eb8369937f Add get_the_category_list(). http://mosquito.wordpress.org/view.php?id=970 Hat tip: nbachiyski
git-svn-id: http://svn.automattic.com/wordpress/trunk@2379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-25 15:50:55 +00:00
michelvaldrighi a7110c0663 reverting the previous patch: it made it impossible to sort the list by category name
git-svn-id: http://svn.automattic.com/wordpress/trunk@2364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-18 16:42:49 +00:00
michelvaldrighi 57aabc9252 getting the list of categories from cat_counts if hide_empty is true, saves one query
git-svn-id: http://svn.automattic.com/wordpress/trunk@2356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-16 16:06:07 +00:00
rboren cff1d9f8f2 Fix category links when permalinks are not enabled.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-15 06:52:38 +00:00
saxmatt 72dc0ab63b More efficient get_category_link - http://mosquito.wordpress.org/view.php?id=590
git-svn-id: http://svn.automattic.com/wordpress/trunk@2316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-14 03:27:50 +00:00
saxmatt e8699e2099 Don't show category counts from the future.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-11 03:43:56 +00:00
saxmatt b00f007d8f Remove querystring variable legacy code
git-svn-id: http://svn.automattic.com/wordpress/trunk@2239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-07 07:37:53 +00:00
rboren e0d7582c46 Correctly add args to strings that contain only a query string and not a full URI.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-06 03:40:08 +00:00
saxmatt 43a237c41c Adding rel tags
git-svn-id: http://svn.automattic.com/wordpress/trunk@2164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-01-31 03:49:50 +00:00
saxmatt 7f793c6cfe Patch from Adi Sieker
git-svn-id: http://svn.automattic.com/wordpress/trunk@2160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-01-29 20:14:55 +00:00
rboren 5e06010606 Add category_link filter.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-01-26 22:49:18 +00:00
rboren 375e821211 Filter category description. Bug 727. Hat tip: dmclark
git-svn-id: http://svn.automattic.com/wordpress/trunk@2113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-01-21 03:06:56 +00:00
saxmatt 7f98c031a7 Some feed template function cleanup.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-01-07 22:01:59 +00:00
rboren 40c697b18f Keep it separated.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-01-04 23:29:13 +00:00
saxmatt 637cfdc7a4 Cleaning up blogfilename.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-24 01:34:47 +00:00
saxmatt c3e1d51c20 Axing htmlspecialchars because it double-encodes-encodes. Better error handling around queries.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-12 20:41:19 +00:00
saxmatt 5237112e3f 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: http://svn.automattic.com/wordpress/trunk@1931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-09 01:30:34 +00:00
rboren b1a4a04126 Move rewrite and permalink functions into WP_Rewrite class.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-03 02:38:11 +00:00
rboren 1d5e3d4f3c Check for null category list just in case of borkage.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-11-15 06:00:21 +00:00
rboren acfb79c47e Sort the category list so that index associations are made non-sparse.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-11-12 23:08:51 +00:00
rboren ea16450f63 Static pages. Take 1.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-08-10 05:35:59 +00:00
rboren 96db009381 Quote $id in get_the_category() db query. Patch from MCincubus for bug 0000191.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-07-27 14:58:30 +00:00
rboren eedeb9dea1 Add missing breaks to the_category().
git-svn-id: http://svn.automattic.com/wordpress/trunk@1444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-06-22 01:42:24 +00:00
rboren 6fd6b1080d stripslashes() elimination. Remove extra slashes during upgrade. Bugs 0000059 and 0000018
git-svn-id: http://svn.automattic.com/wordpress/trunk@1435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-06-18 00:22:09 +00:00
jverber 98603cefa5 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: http://svn.automattic.com/wordpress/trunk@1412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-06-11 19:01:01 +00:00
rboren a56fac823a Guard against empty $cat_counts array. http://wordpress.org/support/3/6080
git-svn-id: http://svn.automattic.com/wordpress/trunk@1389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-06-06 07:21:58 +00:00
rboren 12dea3832c Add %category% support to get_permalink.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-06-04 02:36:46 +00:00
rboren 2367e7cef2 Apply the list_cats filter to the cat name. Credit: Jaykul. http://wordpress.org/support/4/6242
git-svn-id: http://svn.automattic.com/wordpress/trunk@1375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-05-31 22:09:38 +00:00
rboren bd9c5a9bb4 Fix up the_category_ID() and the_category_head() to maintain backwards compat. Mark as deprecated.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-05-27 21:19:37 +00:00
saxmatt 25ae03ee65 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: http://svn.automattic.com/wordpress/trunk@1355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-05-24 08:22:18 +00:00
emc3 44344bdcd7 Fixed list_cats support for hide_empty and optioncount. Also fixed indentation in that function.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-05-20 14:07:55 +00:00