Commit Graph

288 Commits

Author SHA1 Message Date
Ryan Boren e2e4c53a93 Clear cache after deleting meta. Props Denis-de-Bernardy. fixes #9009
git-svn-id: https://develop.svn.wordpress.org/trunk@11305 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-12 17:10:05 +00:00
Peter Westwood b52feaaa0f Clear future publishing hook on post deletion. Fixes #5364 props develish and Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@11284 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 22:17:13 +00:00
Peter Westwood 3abfce8c28 Drop raw check in sanitize_post so int fields are always sanitized.
git-svn-id: https://develop.svn.wordpress.org/trunk@11282 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 22:10:45 +00:00
Peter Westwood 2e5a6f847b Update phpdoc for get_pages() and fix bugs in previous commit.
git-svn-id: https://develop.svn.wordpress.org/trunk@11252 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-10 09:00:18 +00:00
Peter Westwood 4f8ebb957c Add paging support to get_pages(). Fixes #4531 props DD32.
git-svn-id: https://develop.svn.wordpress.org/trunk@11251 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-10 08:55:49 +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
Peter Westwood e7cb860785 Updates phpDoc for the post functions. See #8805 props CharlesClarkson.
git-svn-id: https://develop.svn.wordpress.org/trunk@11222 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-06 20:49:36 +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 0423851d49 Use wp_unique_slug() in wp_insert_attachment(). Props Denis-de-Bernardy. fixes #9726
git-svn-id: https://develop.svn.wordpress.org/trunk@11202 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 16:39:36 +00:00
Ryan Boren b877415f2a Always do post status transition actions. Props nbachiyski. fixes #8792
git-svn-id: https://develop.svn.wordpress.org/trunk@11197 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 05:53:55 +00:00
Ryan Boren ca5807df86 Make post slugs unique across all hierarhical post types. Props Denis-de-Bernardy. fixes #6437
git-svn-id: https://develop.svn.wordpress.org/trunk@11125 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-29 19:04:27 +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 6c066a90d8 Limit get_lastpost* functions to post_type=post. Props Denis-de-Bernardy. fixes #9636
git-svn-id: https://develop.svn.wordpress.org/trunk@11108 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-28 05:42:30 +00:00
Ryan Boren 5e6528cd14 Add wp_unique_post_slug(). Apply it when getting sample permalinks. Props nbachiyski. fixes #6595
git-svn-id: https://develop.svn.wordpress.org/trunk@11071 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-23 20:21:18 +00:00
Ryan Boren 46490b01a5 Notice fixes. Props DD32. fixes #9502
git-svn-id: https://develop.svn.wordpress.org/trunk@10904 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-10 04:34:44 +00:00
Ryan Boren 36859acb5c Move deleted_post back. Props Denis-de-Bernardy . see #9422
git-svn-id: https://develop.svn.wordpress.org/trunk@10858 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-01 16:10:14 +00:00
Ryan Boren c3d0a6fe71 Fix delete statements to ensure data integrity when innodb and foreign keys are used. Props Denis-de-Bernardy. see #9422
git-svn-id: https://develop.svn.wordpress.org/trunk@10851 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-31 19:16:53 +00:00
Ryan Boren 8d00b5d37d Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10810 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-18 02:43:45 +00:00
Ryan Boren 1fb1534e8f Use wpdb::insert() and update(). Props DD32. see #6836
git-svn-id: https://develop.svn.wordpress.org/trunk@10730 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-06 04:27:51 +00:00
Ryan Boren f6001bffe8 Add some default field types. see #7171
git-svn-id: https://develop.svn.wordpress.org/trunk@10725 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-06 00:50:19 +00:00
Ryan Boren 5851028d31 Add typecasting to wpdb::insert() and update(). Props filosofo. fixes #7171
git-svn-id: https://develop.svn.wordpress.org/trunk@10724 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-05 23:47:02 +00:00
Ryan Boren 0de39db9fd Check for empty meta keys. Props Denis-de-Bernardy, markedwards. fixes #7953
git-svn-id: https://develop.svn.wordpress.org/trunk@10711 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-04 22:59:16 +00:00
Peter Westwood 71502d6382 Syncronise the queries used for attachment slug uniqueness checking. Fixes #4396 props futurix and Nazgul.
git-svn-id: https://develop.svn.wordpress.org/trunk@10693 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-04 08:03:02 +00:00
Ryan Boren 2e0c713ea8 Escape before passing to insert/update post. Props hailin. fixes #9199 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10620 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-22 00:35:42 +00:00
Ryan Boren 7bf2f59881 Allow + in mime type regex. Props Sam_a. fixes #8991
git-svn-id: https://develop.svn.wordpress.org/trunk@10502 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-04 20:27:30 +00:00
Ryan Boren 0af7659d69 Move delete_attachment action up. Props filosofo. fixes #8909
git-svn-id: https://develop.svn.wordpress.org/trunk@10400 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-21 21:19:22 +00:00
Andrew Ozz 05e015dbf7 "Unstick" posts when deleting, fixes #8860
git-svn-id: https://develop.svn.wordpress.org/trunk@10363 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-15 00:47:56 +00:00
Andrew Ozz 7a9c742af6 Fix uploaded media relative links when site has been moved, props DD32, fixes #8705 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10254 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-26 02:59:04 +00:00
Ryan Boren 3a2530bfc5 Make sure get_pages cache is an array
git-svn-id: https://develop.svn.wordpress.org/trunk@10226 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-18 22:26:57 +00:00
Ryan Boren 3c7eca56ab Allow muliple tag-like taxonomies in the post editor. see #6387
git-svn-id: https://develop.svn.wordpress.org/trunk@10222 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-18 19:12:26 +00:00
Ryan Boren 97a6c04681 Don't cache filtered post objects. Set filter when getting sample permalink. Props brianwhite. fixes #8526 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10213 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-16 23:50:39 +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 a31ad119f4 Get all children. Props filosofo. fixes #8527
git-svn-id: https://develop.svn.wordpress.org/trunk@10130 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-08 21:00:25 +00:00
Ryan Boren cbef7dc6c4 Check for circular post parent dependencies. Exclude the current post and its children from the parent dropdown.
git-svn-id: https://develop.svn.wordpress.org/trunk@10129 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-08 19:29:42 +00:00
Mark Jaquith 9791e0dd60 Make Password protected and private mutually exclusive when using Quick Edit.
git-svn-id: https://develop.svn.wordpress.org/trunk@10088 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-06 11:10:24 +00:00
Ryan Boren b6a0df1678 post_parent dropdown fixes. get_pages() cache fix to eliminate duplicate queries.
git-svn-id: https://develop.svn.wordpress.org/trunk@10070 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-05 19:19:24 +00:00
Ryan Boren 03f559cd4f Don't set post_parent default. Props hailin. fixes #8348
git-svn-id: https://develop.svn.wordpress.org/trunk@9906 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-26 18:56:46 +00:00
Peter Westwood 9b46a07ac6 Ensure that thumbnails are removed when the media file is deleted. Fixes #8309 props jacobsantos.
git-svn-id: https://develop.svn.wordpress.org/trunk@9846 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-22 23:01:28 +00:00
Ryan Boren 40d7f7bd18 Remove trim. fixes #8252
git-svn-id: https://develop.svn.wordpress.org/trunk@9803 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-20 03:06:21 +00:00
Andrew Ozz 8a364ef5ef Fix [9714], it breaks get_page()
git-svn-id: https://develop.svn.wordpress.org/trunk@9731 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-17 15:47:41 +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 3a7e85c5ec Notice fixes. Props DD32. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9714 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 17:56:44 +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 83e002f20b Notice fixes from DD32. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9596 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-10 18:54:18 +00:00
Andrew Ozz 7d45802347 Preview fixes: different method of showing previews for published posts, now uses the proper templates. Fixes #8052
git-svn-id: https://develop.svn.wordpress.org/trunk@9509 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-04 13:00:12 +00:00
Andrew Ozz acf73adf61 Do cap check when shoving a preview
git-svn-id: https://develop.svn.wordpress.org/trunk@9452 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-31 23:14:37 +00:00
Andrew Ozz 78b8de31b6 Preview for both drafts and published posts/pages
git-svn-id: https://develop.svn.wordpress.org/trunk@9451 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-31 22:47:07 +00:00
Ryan Boren f3ea00820e Preserve attachment IDs during import. Props mtdewvirus. fixes #7972
git-svn-id: https://develop.svn.wordpress.org/trunk@9357 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-26 17:05:56 +00:00
Peter Westwood 11ef4262c2 Better variable naming. See #7358.
git-svn-id: https://develop.svn.wordpress.org/trunk@9349 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-25 22:56:02 +00:00
Ryan Boren 9442333d05 Use prepare() in wp_insert_attachment(). Props dwc. fixes #7933
git-svn-id: https://develop.svn.wordpress.org/trunk@9259 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-20 21:55:37 +00:00