Commit Graph

295 Commits

Author SHA1 Message Date
nacin
7734a07cb2 Move post type object capabilities to a 'cap' object. Allow them to be initialized via the 'capabilities' key (an array) when registering support for the post type. Caps are now referred to by the name of the cap as if it was a post, i.e. ->cap->edit_post. see #13358.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 20:45:18 +00:00
nbachiyski
46afe7c285 I18n for custom post type labels. Props demetris, dimadin. Fixes #12968
git-svn-id: http://svn.automattic.com/wordpress/trunk@14571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 19:52:50 +00:00
nbachiyski
049af4a425 Trash should always be in titlecase for consistency
git-svn-id: http://svn.automattic.com/wordpress/trunk@14167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-20 14:54:36 +00:00
nacin
6ec7cb4540 Use relative paths when including files, avoiding include_path. fixes #12594, props sorich87.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-18 06:14:45 +00:00
nacin
340acf8263 Don't enqueue unnecessary scripts when the post type doesn't support the editor. fixes #12590, props scribu, _duck.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-16 14:03:48 +00:00
dd32
679250491d Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: http://svn.automattic.com/wordpress/trunk@13242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-20 02:01:46 +00:00
dd32
8136de990c Introduce 'singular_label' for Post Types. Props scribu. See #12214
git-svn-id: http://svn.automattic.com/wordpress/trunk@13101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-13 08:56:38 +00:00
ryan
5922f7e2c4 Allow customizing capabilities for custom post types. Always check caps against those in the post type object instead of contructing them manually. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@12927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-02 17:37:03 +00:00
markjaquith
bc62f53df4 Include post_type= when redirecting after "Trash" click from item individual edit screen, to avoid going to Post edit screen for other post_types
git-svn-id: http://svn.automattic.com/wordpress/trunk@12820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-24 20:50:50 +00:00
ryan
05bf7382ff Merge edit-pages.php into edit.php. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@12728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-15 16:58:36 +00:00
ryan
c616e65733 Merge page.php into post.php. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@12708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-12 16:50:37 +00:00
ryan
da89de4958 More custom post type support. Props scribu. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@12597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-04 16:58:43 +00:00
azaozz
d4d309a1c6 Disable trash for attachments for now pending improvements in 3.0, fixes #11149
git-svn-id: http://svn.automattic.com/wordpress/trunk@12377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-12 06:40:16 +00:00
azaozz
f6c60338e5 Fix multiple confirmation messages when restoring posts and pages from the trash, props caesarsgrunt, see #4529
git-svn-id: http://svn.automattic.com/wordpress/trunk@12312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-01 23:28:20 +00:00
westi
b912aa2012 Allow plugins to change the redirect on post/page publishing/submitting. Fixes #10929 props johnjosephbachir and johnbillion.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-22 22:30:27 +00:00
azaozz
2258189f14 Fix warning when trashing a post from the write screen, fixes #11131
git-svn-id: http://svn.automattic.com/wordpress/trunk@12182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-13 03:47:10 +00:00
azaozz
d0c8558025 Undo for posts, pages and media, props caesarsgrunt, see #4529
git-svn-id: http://svn.automattic.com/wordpress/trunk@12121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-28 02:46:08 +00:00
azaozz
7927c2f6c6 Pull thumbnail scripts out of Posts screens too. see #10928
git-svn-id: http://svn.automattic.com/wordpress/trunk@12065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-19 21:51:16 +00:00
azaozz
c790ebcdd9 Remove remains from the old bookmarklet code
git-svn-id: http://svn.automattic.com/wordpress/trunk@12029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-14 05:53:49 +00:00
azaozz
bc9fb32835 Open View/Preview post in a new window from the link in the Saved/Updated message, cleanup messages code, add Draft updated for Pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-11 00:37:26 +00:00
azaozz
3d1fa0d0d1 Show "Draft updated" instead of "Post updated" when saving drafts.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-10 07:24:05 +00:00
markjaquith
d7a30e235f First pass on canonical post thumbanils. Admin-side GUI only. Theme functions to follow. see #10928
git-svn-id: http://svn.automattic.com/wordpress/trunk@12007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-07 22:18:09 +00:00
markjaquith
9109450809 Surface "Move to Trash" link for posts/pages immediately after first autosave fires. Props cross country flight. fixes #10344
git-svn-id: http://svn.automattic.com/wordpress/trunk@11986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-01 11:44:18 +00:00
westi
2561a6bb45 Switch the post|page being editing message from a create_function call to a normal function and reduce the duplicated code. See #10729.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-13 08:52:39 +00:00
westi
2918ccefd5 Better feedback on publishing of future posts and pages. Fixes #10711 based on patch from scribu.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-01 21:15:20 +00:00
azaozz
52f4940dfb Fix bulk edit, some cleanup and message fixes for moving in/out of the trash, see #4529
git-svn-id: http://svn.automattic.com/wordpress/trunk@11807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-12 10:57:15 +00:00
azaozz
39e4f05a15 Trash status updates for posts, pages, comments and attachments, props caesarsgrunt, see #4529
git-svn-id: http://svn.automattic.com/wordpress/trunk@11749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-07-30 13:39:34 +00:00
markjaquith
119b39cec2 deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-18 15:11:07 +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
87b704d710 Clean up save mssage. see #8713
git-svn-id: http://svn.automattic.com/wordpress/trunk@11159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-02 21:44:09 +00:00
azaozz
5fec33de25 Show "Post submitted" message when contributors submit a post for review, props mdawaffe, fixes #8519
git-svn-id: http://svn.automattic.com/wordpress/trunk@10094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-07 03:39:00 +00:00
ryan
45f579edf5 Feedback for post and page deletions. fixes #8415
git-svn-id: http://svn.automattic.com/wordpress/trunk@9998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-01 18:02:16 +00:00
markjaquith
e00551ef6c Remove manual santization of redirect URLs (handled in wp_redirect())
git-svn-id: http://svn.automattic.com/wordpress/trunk@9779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-19 06:32:10 +00:00
ryan
cc7c443f62 Move screen_meta() to admin header. Add all meta boxes before requiring admin-header.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-11 22:40:16 +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
azaozz
7c063b0b50 Preview fixes: different method of showing previews for published posts, now uses the proper templates. Fixes #8052
git-svn-id: http://svn.automattic.com/wordpress/trunk@9509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-04 13:00:12 +00:00
azaozz
24fc4f0c3b Preview fixes: ensure autosave is run at least once on new posts before preview, properly show previews for pending and scheduled posts.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-02 13:56:32 +00:00
azaozz
8c92b61171 Fix bulk edit and preview url
git-svn-id: http://svn.automattic.com/wordpress/trunk@9453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-01 01:15:22 +00:00
azaozz
9fba444f3b Preview for both drafts and published posts/pages
git-svn-id: http://svn.automattic.com/wordpress/trunk@9451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-31 22:47:07 +00:00
markjaquith
4a784a1291 Revert to simple Edit Post title for post editing screen. No longer makes sense with lack of breadcrumbs and the actual post title box so high on the screen
git-svn-id: http://svn.automattic.com/wordpress/trunk@9433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-31 16:40:55 +00:00
ryan
d457e3d181 Bring back h2 for add/edit post
git-svn-id: http://svn.automattic.com/wordpress/trunk@9221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-17 00:36:18 +00:00
ryan
ae2c4bc50c Add opt-in optioon for comment hotkeys. Props nbachiyski. fixes #7643
git-svn-id: http://svn.automattic.com/wordpress/trunk@9217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-16 22:23:32 +00:00
ryan
637cca38da Draggable dash, first cut. Props mdawaffe. see #7552
git-svn-id: http://svn.automattic.com/wordpress/trunk@9103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-08 23:32:34 +00:00
ryan
e434ec4cef Title changes
git-svn-id: http://svn.automattic.com/wordpress/trunk@8995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-27 06:20:21 +00:00
ryan
e1484dccfd Dedicated drafts page
git-svn-id: http://svn.automattic.com/wordpress/trunk@8992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-26 21:53:26 +00:00
azaozz
9a9c56866b Few sidebar.php updates, functionality and look similar to the quick-post dashboard widget
git-svn-id: http://svn.automattic.com/wordpress/trunk@8834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-06 06:10:38 +00:00
azaozz
84ffc72522 Fix saving as draft, see #7672
git-svn-id: http://svn.automattic.com/wordpress/trunk@8832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-06 05:16:56 +00:00
westi
249fee1d34 Correct message when saving a draft. Fixes #7693 props johnhennmacc.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-05 23:54:49 +00:00
westi
893f96bf10 Set comment and ping status when QuickPressing. Fixes #7672 props ShaneF.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-03 07:13:51 +00:00
azaozz
450babca59 Add hotkeys.js to all pages that list comments and prevent error if not loaded, see #7643
git-svn-id: http://svn.automattic.com/wordpress/trunk@8780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-30 07:16:16 +00:00