Commit Graph

204 Commits

Author SHA1 Message Date
Ryan Boren ecf41b5b88 Make sure attachment meta data is an array. Props nbachiyski. fixes #7252
git-svn-id: https://develop.svn.wordpress.org/trunk@8261 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-06 16:40:15 +00:00
Ryan Boren 80c836b58a phpdoc updates for post.php from jacobsantos. fixes #3982
git-svn-id: https://develop.svn.wordpress.org/trunk@8203 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-27 15:32:57 +00:00
Ryan Boren 64b5e801d0 Don't get post ancestors if post not found. Props Sam_a. fixes #6953
git-svn-id: https://develop.svn.wordpress.org/trunk@8173 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-23 21:50:19 +00:00
Ryan Boren 8ef3dea136 Don't decode slug in get_page_uri(). Props nbachiyski. fixes #6723
git-svn-id: https://develop.svn.wordpress.org/trunk@8096 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-16 18:40:47 +00:00
Peter Westwood 96511b2ca2 PHPdoc updates for wp-includes/post.php. See #7038 props jacobsantos.
git-svn-id: https://develop.svn.wordpress.org/trunk@8081 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-14 16:31:08 +00:00
Ryan Boren 5d786d179c More use of site_url(), admin_url(), and site_url(). Force login and admin links to be https if FORCE_SSL_LOGIN. see #7001
git-svn-id: https://develop.svn.wordpress.org/trunk@8058 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-06 07:39:11 +00:00
Ryan Boren e1faf662e8 get_post_ancestors() fixes. fixes #7029 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8019 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-30 20:31:45 +00:00
Ryan Boren 163aa65807 Post revisions API cleanup from mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@8011 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-29 22:21:36 +00:00
Ryan Boren 1d2d2c3835 Fix serialization when adding meta via update_post_meta(). Props azaozz. fixes #7018
git-svn-id: https://develop.svn.wordpress.org/trunk@7995 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-27 11:33:11 +00:00
Ryan Boren a8a396d656 Allow defining the number of revisions to save. Props mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7987 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-23 15:27:56 +00:00
Ryan Boren 66b9c9ea6d Remove unnecessary checks for the existence of post meta data. Props filosofo. fixes #7018
git-svn-id: https://develop.svn.wordpress.org/trunk@7985 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-22 16:33:06 +00:00
Ryan Boren 36f755bf12 Add non-existent values instead of returning g false in update_post_meta(). Props filosofo. fixes #7018
git-svn-id: https://develop.svn.wordpress.org/trunk@7978 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-22 00:01:00 +00:00
Ryan Boren ad0f22e9d4 default is a valid page template. see #6098
git-svn-id: https://develop.svn.wordpress.org/trunk@7925 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-13 21:03:10 +00:00
Ryan Boren 1c4f5de9a1 Revisioning for pages from mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7913 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-09 15:59:17 +00:00
Ryan Boren a1be16cf86 Move autosave to post revisions. Props mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7907 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-08 17:25:07 +00:00
Ryan Boren 2af2724cef wp_insert_post() -- Validate page template, check return of insert and update queries, add option to return WP_Error. fixes #6227 see #6098
git-svn-id: https://develop.svn.wordpress.org/trunk@7900 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-05 23:19:27 +00:00
Ryan Boren 0a7374085b Use array calling style. Props DD32. see #6647
git-svn-id: https://develop.svn.wordpress.org/trunk@7894 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-05 16:03:27 +00:00
Ryan Boren 468ac2a54e get_posts fixes from DD32 and filosofo. see #6772
git-svn-id: https://develop.svn.wordpress.org/trunk@7892 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-05 15:46:32 +00:00
Ryan Boren 2341bcc764 Use WP_query in get_posts(). Props filosofo. fixes #6772
git-svn-id: https://develop.svn.wordpress.org/trunk@7880 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-03 20:08:32 +00:00
Ryan Boren 81c20ec884 Fix post name check prepare. Props westi. see #6894
git-svn-id: https://develop.svn.wordpress.org/trunk@7876 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-02 17:28:19 +00:00
Mark Jaquith b7699db39e Fix typo in wp_save_revision(). props Andy. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7817 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-25 04:41:41 +00:00
Ryan Boren 06200c33f4 Don't include perm as part of cache key if perm is not used in the query.
git-svn-id: https://develop.svn.wordpress.org/trunk@7752 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-20 21:26:10 +00:00
Ryan Boren c72fd439c6 Post revisions from mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7747 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-18 23:38:21 +00:00
Ryan Boren bfcd9e8fc4 Fix meta_key and meta_value queries in get_pages(). Props filosofo. fixes #6773 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7746 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-18 22:29:43 +00:00
Ryan Boren a40491ce38 Move cache cleaning of children to clean_post_cache(). see #6702
git-svn-id: https://develop.svn.wordpress.org/trunk@7743 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-18 20:23:50 +00:00
Ryan Boren b5a1a0e113 array_shift() error fixes from DD32. fixes #6499 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7713 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-16 23:09:51 +00:00
Ryan Boren 860c60d05b Add post ancestors to the cache for the post object. see #6702 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7694 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-16 17:23:17 +00:00
Ryan Boren 7e5969a1f9 Make get_posts args optional. Props karlkatzke and Otto42. fixes #6608 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7647 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-14 16:23:29 +00:00
Ryan Boren fdc05b24f6 Prepare DB queries in more places. Props filosofo. see #6644
git-svn-id: https://develop.svn.wordpress.org/trunk@7645 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-14 16:13:25 +00:00
Ryan Boren a9d89696f3 Use wp_count_posts() to determine availabel statuses for get_available_post_statuses(). fixes #6654 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7638 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-09 20:09:45 +00:00
Matt Mullenweg e1ae860b7d The child should not have to pay for the sins of his father. Caching for children needs to be cleared when parent is edited; if we check for empty and not isset, it never gets better for empty results.
git-svn-id: https://develop.svn.wordpress.org/trunk@7601 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-05 05:54:08 +00:00
Mark Jaquith ba4dab3cd6 Fix gallery shortcode orderby param for all SQL setups. Sanitize orderby. fixes #6476 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7592 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-03 03:05:49 +00:00
Ryan Boren f6716ad1e3 Add default for post_excerpt. see #6355
git-svn-id: https://develop.svn.wordpress.org/trunk@7482 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-23 00:58:47 +00:00
Ryan Boren 00c6484a3b Remove intermediate images when deleting an attachment. Props tellyworth. fixes #6142
git-svn-id: https://develop.svn.wordpress.org/trunk@7271 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-12 23:15:31 +00:00
Ryan Boren 7d6440bba2 Fix insert, gallery, sizing, type queries, errors, thumbs, type fallback. Props andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7172 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-06 19:48:54 +00:00
Matt Mullenweg d1a9adb980 Don't return early before filtering.
git-svn-id: https://develop.svn.wordpress.org/trunk@7161 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-05 18:49:56 +00:00
Matt Mullenweg 88bb527a19 Creating intermediate sizes, better thumbnails, and other image improvements. Hat tip: tellyworth.
git-svn-id: https://develop.svn.wordpress.org/trunk@7135 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-03 04:17:37 +00:00
Ryan Boren 6d7441c26e Remove trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@7130 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-02 20:17:30 +00:00
Ryan Boren 71f274c599 Add option to check caps when querying a particular post status. fixes #6052
git-svn-id: https://develop.svn.wordpress.org/trunk@7109 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-29 21:49:49 +00:00
Ryan Boren a02dc6a240 Media Library updates from andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7100 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-29 06:54:15 +00:00
Ryan Boren 0808c1b9a1 Introduce get_post_ancestors(). Add current_page_ancestor class to ancestors of the current page. Props AaronCampbell. fixes #5662
git-svn-id: https://develop.svn.wordpress.org/trunk@7074 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-27 23:28:18 +00:00
Ryan Boren 82905a1f33 fix overuse of default mime icon and re-shuffle mp4/m4a file type matches. Props andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7045 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-26 19:57:00 +00:00
Ryan Boren 09ed1e62ae Add some defaults for wp_insert_attachment. fixes #6006
git-svn-id: https://develop.svn.wordpress.org/trunk@7042 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-26 18:51:45 +00:00
Ryan Boren 7825a986f9 update mime-to-icon matching and get filename from function instead of guid. Props andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7036 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-26 08:54:11 +00:00
Ryan Boren fef755b796 Make sure post has future status before publishing from cron. Props hailin. fixes #5801
git-svn-id: https://develop.svn.wordpress.org/trunk@6985 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-22 19:59:12 +00:00
Ryan Boren 7ed364b2ce Notice fixes from nbachiyski. fixes #5961
git-svn-id: https://develop.svn.wordpress.org/trunk@6983 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-22 17:43:56 +00:00
Ryan Boren 579698f0b1 Media library work from andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@6974 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-22 05:53:47 +00:00
Ryan Boren a7e9b93bab Add a default for post_conten_filtered
git-svn-id: https://develop.svn.wordpress.org/trunk@6951 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-21 00:52:51 +00:00
Ryan Boren fcdca0ec36 pre_post_update action from tellyworth. fixes #5815
git-svn-id: https://develop.svn.wordpress.org/trunk@6938 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-20 16:46:44 +00:00
Ryan Boren 5f85c2dc0c Media Library design updates from Andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@6910 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-19 06:13:20 +00:00