Commit Graph

167 Commits

Author SHA1 Message Date
westi f80f234fdd Fix typo in [11253] fixes #8704 props Denis-de-Bernardy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-10 09:25:43 +00:00
westi 077697d1ca Add a filter to the result of wp_get_object_terms(). Fixes #8704 props Denis-de-Bernardy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-10 09:11:58 +00:00
westi e61bea89ed Allow for custom ordering in get_terms(). Fixes #7539 props DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-10 07:57:07 +00:00
markjaquith d7b015645d esc_js(). Shorter, follows new escaping naming convention.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-09 07:27:22 +00:00
ryan e15c230205 Return ref. Props nbachiyski. fixes #9109
git-svn-id: http://svn.automattic.com/wordpress/trunk@11216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-06 05:03:59 +00:00
markjaquith 6c2ffddf31 _a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
git-svn-id: http://svn.automattic.com/wordpress/trunk@11204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-05 19:43:53 +00:00
azaozz 83f674bf9a Banishing ASCII quotes and apostrophes, props demetris, fixes #9655
git-svn-id: http://svn.automattic.com/wordpress/trunk@11190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-05 04:28:05 +00:00
ryan 7fc314e858 strip slashes from term before prepare(). Props jhodgdon. see #6593
git-svn-id: http://svn.automattic.com/wordpress/trunk@11153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-01 22:05:04 +00:00
ryan e52d7eee0b Trim term before checking if it already exists. Props jhodgdon. fixes #9397
git-svn-id: http://svn.automattic.com/wordpress/trunk@11151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-01 20:59:14 +00:00
ryan 30ee53dd96 Fix registration of default taxonomies so that proper rewrite rules are written.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-30 19:05:32 +00:00
ryan 11cbf4e3d7 Fix category search pagination. Fix caching of empty term results. Props Denis-de-Bernardy. fixes #8632
git-svn-id: http://svn.automattic.com/wordpress/trunk@11140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-30 16:51:45 +00:00
ryan fcd5b67d67 Allow plugins to override default taxonomies. Props Denis-de-Bernardy. fixes #9647
git-svn-id: http://svn.automattic.com/wordpress/trunk@11129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-29 20:25:30 +00:00
ryan 5a1c8da169 Allow taxonomy registration before init. Props arena. fixes #9647
git-svn-id: http://svn.automattic.com/wordpress/trunk@11122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-29 16:40:36 +00:00
ryan 7eaed7cc08 get_term_children phpdoc and var naming improvements. Props simonwheatley. fixes #9667
git-svn-id: http://svn.automattic.com/wordpress/trunk@11115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-28 19:49:21 +00:00
ryan 2d489767bb s/attribute_escape/attr/. see #9650
git-svn-id: http://svn.automattic.com/wordpress/trunk@11109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-28 05:58:45 +00:00
ryan 91a3c4bbf4 Clarify args to wp_update_term(). Props simonwheatley, johnbillion. fixes #9293
git-svn-id: http://svn.automattic.com/wordpress/trunk@11068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-23 08:05:36 +00:00
ryan 9f82f611da get_terms_orderby, get_terms_fields, and tag_clooud-sort filters. Props jhodgdon, filosofo. fixes #9004
git-svn-id: http://svn.automattic.com/wordpress/trunk@11037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-21 22:13:44 +00:00
ryan a61bc0ec8a Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@11013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-20 18:18:39 +00:00
ryan 2a35127359 Create default taxonomies upon init. Props nbachiyski. fixes #9399
git-svn-id: http://svn.automattic.com/wordpress/trunk@10965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-16 23:17:49 +00:00
ryan 59ddc91736 Clarify phpdoc for wp_set_object_terms(). Props simonwheatley. fixes #9348
git-svn-id: http://svn.automattic.com/wordpress/trunk@10963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-16 22:19:01 +00:00
ryan 6f431038f2 Add option to check if term exists with given parent. Update ajax add-cat check to pass parent when checking if cat exists.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-10 20:58:25 +00:00
westi 789522a21a Allow wp_delete_term users to force all objects to have a new term applied. Allow for category merging use-case. Fixes #9355.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-18 21:06:49 +00:00
ryan e8b6fe7347 Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-18 02:43:45 +00:00
ryan 4f130b5e47 Check if error. Props simonwheatley. fixes #9345
git-svn-id: http://svn.automattic.com/wordpress/trunk@10803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-17 16:42:21 +00:00
ryan d43bd8177c Use wpdb::insert() and update(). Props DD32. see #6836
git-svn-id: http://svn.automattic.com/wordpress/trunk@10730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-06 04:27:51 +00:00
ryan 2df038fac9 set_object_terms action. Props filosofo. fixes #9216
git-svn-id: http://svn.automattic.com/wordpress/trunk@10637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-23 17:13:52 +00:00
ryan 0982df4801 Don't limit query when descending hierarchy. Props filosofo. fixes #8832
git-svn-id: http://svn.automattic.com/wordpress/trunk@10416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-22 22:59:29 +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 8a8ac376bf Allow muliple tag-like taxonomies in the post editor. see #6387
git-svn-id: http://svn.automattic.com/wordpress/trunk@10222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-18 19:12:26 +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 1039d131fe Don't cache filtered term objects. see #8146
git-svn-id: http://svn.automattic.com/wordpress/trunk@9737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-17 20:03:31 +00:00
ryan 031a280fd0 get_terms() improvements from filosofo. fixes #8087
git-svn-id: http://svn.automattic.com/wordpress/trunk@9652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-13 00:20:12 +00:00
westi eddacb0872 Notice fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-10 23:03:34 +00:00
ryan 545da15950 Notice fixes from DD32. see #7509
git-svn-id: http://svn.automattic.com/wordpress/trunk@9596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-10 18:54:18 +00:00
ryan 0a8415ae7a Warning fixes
git-svn-id: http://svn.automattic.com/wordpress/trunk@9481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-02 23:52:49 +00:00
ryan 4b7b8b4958 phpdoc updates. see #7358
git-svn-id: http://svn.automattic.com/wordpress/trunk@9397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-29 06:54:53 +00:00
westi 1f079aa071 Better variable naming. See #7358.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-25 22:56:02 +00:00
ryan dd0d70f411 Don't double escape in get_cat_ID(). fixes #7849
git-svn-id: http://svn.automattic.com/wordpress/trunk@9229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-17 18:56:56 +00:00
ryan 5d1f8b93eb New caching style for term queries
git-svn-id: http://svn.automattic.com/wordpress/trunk@9102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-08 22:50:46 +00:00
westi 95e26235ad Notice fixes see #7509 props DD32 and jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-21 20:41:25 +00:00
westi 9e89b4a99e phpDoc corrections for wp-includes. See #7550 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-30 21:23:43 +00:00
ryan 19a1e9682b Notice fixes. see #7509
git-svn-id: http://svn.automattic.com/wordpress/trunk@8732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-25 21:50:11 +00:00
ryan 113c014920 Notice fixes. Props DD32. see #7509
git-svn-id: http://svn.automattic.com/wordpress/trunk@8646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-14 17:00:37 +00:00
ryan 35b18e5034 Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@8600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-09 05:36:14 +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 e8cba9f0cb Check both slug and name when determining if is_term(). fixes #6593 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-24 19:28:40 +00:00
ryan 364d78f689 Don't allow empty term names. Props scohoust. fixes #7336 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-21 21:53:32 +00:00
ryan d845973d7b Revert accidental bits that snuck in with [8376]. see #7227
git-svn-id: http://svn.automattic.com/wordpress/trunk@8377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-19 19:00:56 +00:00
ryan 8831ea942b IXR 0.71. Props jacobsantos. fixes #7227
git-svn-id: http://svn.automattic.com/wordpress/trunk@8376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-19 17:56:35 +00:00