Commit Graph

54 Commits

Author SHA1 Message Date
Andrew Nacin 5ca6a857a2 Don't cache a non-existent link in get_bookmark(). props wonderboymusic, fixes #21159.
git-svn-id: https://develop.svn.wordpress.org/trunk@21829 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-13 16:41:43 +00:00
Ryan Boren 285247786e Use wp_cache_add() instead of wp_cache_set() when priming the object term cache in update_object_term_cache(). Pass the real post_type to clean_object_term_cache() instead of hard-coding post. Call clean_object_term_cache() from clean_bookmark_cache(). Props leewillis77. fixes #19690
git-svn-id: https://develop.svn.wordpress.org/trunk@19729 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-11 21:26:18 +00:00
Ryan Boren 2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Andrew Nacin 3a4b632b28 get_bookmarks() doc fix. props hearvox, fixes #19508.
git-svn-id: https://develop.svn.wordpress.org/trunk@19615 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-20 22:01:43 +00:00
Andrew Nacin 028a3ee8ec Allow 'id' to work in get_bookmarks(). Add link_notes even though such sorting is a bad idea. see #18068 for 3.3.
git-svn-id: https://develop.svn.wordpress.org/trunk@18840 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-30 17:03:46 +00:00
Ryan Boren 1567de3aaf Allow sorting by id in get_bookmarks(). Props SergeyBiryukov. see #18234 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@18470 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-26 21:22:13 +00:00
Ryan Boren 7a9c81cdb1 Sanitize order and orderby in get_bookmarks()
git-svn-id: https://develop.svn.wordpress.org/trunk@18345 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-27 15:46:11 +00:00
Ryan Boren a748e507e5 link_notes and term_description escaping fixes. Props garyc40. fixes #15454
git-svn-id: https://develop.svn.wordpress.org/trunk@17146 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-25 22:45:09 +00:00
Andrew Nacin 9494e4ce7e Phpdoc argument/@param cleanups. props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +00:00
Ryan Boren 9df1546b16 Fix array handling in sanitize_bookmark_field(). Props mdawaffe. fixes #13098
git-svn-id: https://develop.svn.wordpress.org/trunk@14239 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-26 14:10:12 +00:00
Andrew Nacin 8d47975e76 Allow orberby in wp_list_bookmarks to accept a comma-delimited list of fields, per docs. fixes #12421, props sorich87, scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14131 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:45:09 +00:00
Andrew Nacin 8e79d5c2ac Move deprecated functions to deprecated.php. Deprecate get_the_attachment_link() for wp_get_attachment_link(), get_attachment_icon_src() for wp_get_attachment_image_src(),
get_attachment_icon() and get_attachment_innerHTML() for wp_get_attachment_image(), get_link() for get_bookmark(). Add missing deprecated version numbers. Add inline documentation to pluggable functions that are deprecated. See #11388

git-svn-id: https://develop.svn.wordpress.org/trunk@13093 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 06:39:51 +00:00
Peter Westwood 685bd009b5 Ensure we don't mangle the array of link categories when sanitising a link for editing. See #12168.
git-svn-id: https://develop.svn.wordpress.org/trunk@13017 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 21:59:24 +00:00
Ryan Boren dcd3604d90 Use array calling style. Props Denis-de-Bernardy. see #6647
git-svn-id: https://develop.svn.wordpress.org/trunk@12515 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 15:31:02 +00:00
Ryan Boren af737032df Do recently updated test only if show_updated. Avoids slow query.
git-svn-id: https://develop.svn.wordpress.org/trunk@12306 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 19:35:21 +00:00
Mark Jaquith 8d6cb67233 esc_js(). Shorter, follows new escaping naming convention.
git-svn-id: https://develop.svn.wordpress.org/trunk@11245 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-09 07:27:22 +00:00
Mark Jaquith c638e8d8de _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: https://develop.svn.wordpress.org/trunk@11204 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 19:43:53 +00:00
Ryan Boren fe7c34b6fd s/attribute_escape/attr/. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11109 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-28 05:58:45 +00:00
Ryan Boren 2323b85540 Return empty list if requests bookmark category does not exist. Props Viper007Bond. fixes #7507
git-svn-id: https://develop.svn.wordpress.org/trunk@11064 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-23 05:39:33 +00:00
Ryan Boren cc7454270c Make sure get_bookmarks cache is an array
git-svn-id: https://develop.svn.wordpress.org/trunk@10229 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-19 07:05:51 +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 fab4e5a68e Unused var fixes. Props DD32. see #8220
git-svn-id: https://develop.svn.wordpress.org/trunk@9716 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 18:10:35 +00:00
Ryan Boren 2dc15c5a81 Notice fixes from DD32. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9699 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-14 23:01:16 +00:00
Ryan Boren fa0b44817d Add edit and delete links to the Content->Links rows. Add get_edit_bookmark_link(). Add caching for individual bookmarks. see #7552
git-svn-id: https://develop.svn.wordpress.org/trunk@8758 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-27 22:04:12 +00:00
Peter Westwood 000f6ec3b6 phpDoc corrections for wp-includes. See #7550 props santosj.
git-svn-id: https://develop.svn.wordpress.org/trunk@8742 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-27 06:45:13 +00:00
Ryan Boren be87986f7a phpdoc updates from jacobsantos. see #7038
git-svn-id: https://develop.svn.wordpress.org/trunk@7990 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-25 15:45:05 +00:00
Ryan Boren 882fa08d42 Add sanitization to get_link() and get_link_to_edit(). Props mdawaffe. fixes #6125
git-svn-id: https://develop.svn.wordpress.org/trunk@7193 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-10 05:28:21 +00:00
Ryan Boren 9fdf23af3a Manage links redesign. Add link search.
git-svn-id: https://develop.svn.wordpress.org/trunk@6798 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-12 08:01:32 +00:00
Ryan Boren 3a18b96c9b Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@6726 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 06:47:27 +00:00
Peter Westwood 90e193bdab Notice fixing for wp-includes. See #5607 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@6592 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-10 20:51:07 +00:00
Peter Westwood 7d592c6d64 Add documentation for bookmark.php. Fixes #5523 props darkdragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6480 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 07:01:47 +00:00
Ryan Boren 34c792ccc8 Use correct var. Props DD32. fixes #5419
git-svn-id: https://develop.svn.wordpress.org/trunk@6353 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-04 23:59:16 +00:00
Ryan Boren b6905da933 Use inner joins instead of left joins for taxonomy. Inner is faster. fixes #5179
git-svn-id: https://develop.svn.wordpress.org/trunk@6224 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-11 17:43:49 +00:00
Mark Jaquith d9c7174ee2 prepare() for wp-includes/ bookmark.php, canonical.php, comment.php, comment-template.php. see #4553
git-svn-id: https://develop.svn.wordpress.org/trunk@6173 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-27 07:34:15 +00:00
Ryan Boren 7a43c01e08 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@6026 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:32:58 +00:00
Ryan Boren e9391140a7 Strip lines that contain only whitespace down to newlines.
git-svn-id: https://develop.svn.wordpress.org/trunk@6025 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:19:20 +00:00
Ryan Boren 7cfadec3fa Don't use unavailable func. Props filosofo. fixes #4881
git-svn-id: https://develop.svn.wordpress.org/trunk@5997 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-31 22:36:16 +00:00
Ryan Boren d8adefe0b2 bookmark sanitizer funcs and default filter cleanup. see #4546
git-svn-id: https://develop.svn.wordpress.org/trunk@5906 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-20 22:50:04 +00:00
Ryan Boren 23efaffd94 Revert accidental commit.
git-svn-id: https://develop.svn.wordpress.org/trunk@5897 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-17 21:23:39 +00:00
Ryan Boren b2d8f1bd12 First cut of taxonomy API phpdoc from darkdragon. see #4742
git-svn-id: https://develop.svn.wordpress.org/trunk@5896 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-17 21:22:37 +00:00
Ryan Boren 820d43f538 Set instead of add since the cache value has multiple keys that can change. Props josephscott. fixes #4743
git-svn-id: https://develop.svn.wordpress.org/trunk@5879 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-16 18:12:12 +00:00
Ryan Boren 09da00f7fe Use EXTR_SKIP when extracting. see #4468
git-svn-id: https://develop.svn.wordpress.org/trunk@5708 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 22:45:40 +00:00
Ryan Boren b046d67f41 Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 02:25:30 +00:00
Ryan Boren 668f977343 Typo fix from flinkflonk. fixes #4347 see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5561 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-27 17:45:31 +00:00
Ryan Boren cb8250ff30 Link category fixes. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5560 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-27 17:21:04 +00:00
rob1n c213997f48 Use wp_parse_args(). fixes #4237
git-svn-id: https://develop.svn.wordpress.org/trunk@5444 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-11 03:10:05 +00:00
Ryan Boren d8c8ecb711 Actually make use of wp_cache_add to avoid unnecessary cache writes. Props skeltoac. fixes #4138
git-svn-id: https://develop.svn.wordpress.org/trunk@5248 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-12 02:27:12 +00:00
Ryan Boren 51cd99bb02 More clean_url and int casts for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@5119 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-27 23:45:41 +00:00
Mark Jaquith 5acfcd9fea trailing tabs and whitespace cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@4953 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-27 15:24:54 +00:00
Mark Jaquith aa86502ddf whitespace tidying by Viper007Bond. fixes #3385
git-svn-id: https://develop.svn.wordpress.org/trunk@4529 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-24 22:55:28 +00:00