Commit Graph

69 Commits

Author SHA1 Message Date
Andrew Nacin
f98a3e8941 Redirect post-new.php?post_type=attachment to media-new.php. see #22491, #22083, #21391.
git-svn-id: https://develop.svn.wordpress.org/trunk@22777 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 17:40:53 +00:00
Andrew Ozz
5e7443ca85 Don't load autosave.js on the attachment editing screen, add simple AYS on unload if there are changes, props helenyhou, fixes #22491
git-svn-id: https://develop.svn.wordpress.org/trunk@22725 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 19:46:38 +00:00
Ryan Boren
308c702183 Use the create_posts capability in more places.
In get_post_type_capabilities(), make sure create_posts reflects customizations to the edit_posts capability when create_posts is not specifically set.


git-svn-id: https://develop.svn.wordpress.org/trunk@22291 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-24 22:15:43 +00:00
Ryan Boren
d1100bacb4 Schedule auto-draft deletion from post-new.php instead of from admin.php. This provides better throttling for large multisite installs and reduces the risk of a delete avalanche.
fixes #19663


git-svn-id: https://develop.svn.wordpress.org/trunk@20453 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 18:49:48 +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
10f012451a Select the submenu item for post-new.php when using show_in_menu = 'some-parent-file' for post types. Continue to select the post-new.php submenu item if it has been separately added with add_submenu_page(). fixes #19125.
git-svn-id: https://develop.svn.wordpress.org/trunk@19425 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 20:45:23 +00:00
Andrew Nacin
7c181a42bf Set $parent_file for post-new.php when show_in_menu is a file. Provides for correct top-level highlighting. $submenu_file remains set to expect a post-new.php menu. see #19125.
git-svn-id: https://develop.svn.wordpress.org/trunk@19374 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 15:35:57 +00:00
Andrew Nacin
f504e221e1 Switch from Panel/SubPanel to Screen in inline documentation and Codex links. props michaelh, fixes #17265.
git-svn-id: https://develop.svn.wordpress.org/trunk@17748 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 15:24:49 +00:00
Ryan Boren
802c03455d Die if user doesn't have caps for the post type. Props duck_. fixes #15259
git-svn-id: https://develop.svn.wordpress.org/trunk@16135 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-01 16:28:35 +00:00
Ryan Boren
e88dc2d87d Set show_ui to true for post and page. Exclude _builtin = true from areas where we need to special case builtin types. fixes #13403
git-svn-id: https://develop.svn.wordpress.org/trunk@14713 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-17 16:39:36 +00:00
Andrew Nacin
43959a6f47 Use show_ui instead of public flag to check whether the post type uses post-new and edit.php. see #13403.
git-svn-id: https://develop.svn.wordpress.org/trunk@14674 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 20:49:28 +00:00
Andrew Nacin
323342deec 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: https://develop.svn.wordpress.org/trunk@14585 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 20:45:18 +00:00
Nikolay Bachiyski
ad3881470e I18n for custom post type labels. Props demetris, dimadin. Fixes #12968
git-svn-id: https://develop.svn.wordpress.org/trunk@14571 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 19:52:50 +00:00
Andrew Nacin
e3e9a8e5c8 Don't enqueue unnecessary scripts when the post type doesn't support the editor. fixes #12590, props scribu, _duck.
git-svn-id: https://develop.svn.wordpress.org/trunk@14107 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 14:03:48 +00:00
Ryan Boren
a37ca909a6 Die if invalid post type is passed. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@13537 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-01 20:33:03 +00:00
Dion Hulse
4b66bf7c74 Introduce 'singular_label' for Post Types. Props scribu. See #12214
git-svn-id: https://develop.svn.wordpress.org/trunk@13101 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 08:56:38 +00:00
Ryan Boren
8be3a24819 Add a separate show_ui flag for post types. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12993 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-06 17:27:30 +00:00
Mark Jaquith
2d54780d5e Create post_status=auto-draft when creating a new post item. status changes to draft on first auto-save. now we always have a real post ID to work with. see #11889. fixes #11145. fixes #11990
git-svn-id: https://develop.svn.wordpress.org/trunk@12987 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-06 10:07:57 +00:00
Ryan Boren
12c49c44f4 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: https://develop.svn.wordpress.org/trunk@12927 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-02 17:37:03 +00:00
Ryan Boren
b74bea8a2c Merge edit-pages.php into edit.php. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12728 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 16:58:36 +00:00
Ryan Boren
4e3864bd28 Merge page-new.php into post-new.php. Start abstracting column headers and prefs. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12702 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-12 00:14:27 +00:00
Ryan Boren
9ef2cb198f More custom post type support. Props scribu. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12597 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-04 16:58:43 +00:00
Andrew Ozz
0c847d8256 Pull thumbnail scripts out of Posts screens too. see #10928
git-svn-id: https://develop.svn.wordpress.org/trunk@12065 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-19 21:51:16 +00:00
Mark Jaquith
ab98fc356b First pass on canonical post thumbanils. Admin-side GUI only. Theme functions to follow. see #10928
git-svn-id: https://develop.svn.wordpress.org/trunk@12007 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-07 22:18:09 +00:00
Ryan Boren
7f00d29121 Move screen_meta() to admin header. Add all meta boxes before requiring admin-header.
git-svn-id: https://develop.svn.wordpress.org/trunk@9620 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-11 22:40:16 +00:00
Ryan Boren
752eafa95c Bring back h2 for add/edit post
git-svn-id: https://develop.svn.wordpress.org/trunk@9221 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-17 00:36:18 +00:00
Ryan Boren
50d77a0fb1 Title changes
git-svn-id: https://develop.svn.wordpress.org/trunk@8995 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-27 06:20:21 +00:00
Ryan Boren
6a435d145f Menu reorg
git-svn-id: https://develop.svn.wordpress.org/trunk@8977 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-25 19:33:53 +00:00
Ryan Boren
6db75e59d4 Collapse crazyhorse to trunk. Incoming! see #7552
git-svn-id: https://develop.svn.wordpress.org/trunk@8691 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-20 21:42:31 +00:00
Peter Westwood
ab17f7283c phpdoc for wp-admin. See #7496 props santosj.
git-svn-id: https://develop.svn.wordpress.org/trunk@8645 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-14 06:30:38 +00:00
Ryan Boren
a359db73a2 Use get_edit_post_link() instead of hardcoding edit links. Props mdawaffe. fixes #7425
git-svn-id: https://develop.svn.wordpress.org/trunk@8484 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-29 05:22:58 +00:00
Ryan Boren
07518727b8 Add thickbox to pages that use media uploader.
git-svn-id: https://develop.svn.wordpress.org/trunk@8033 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-02 21:46:25 +00:00
Ryan Boren
58a9595df2 Theme preview and thickbox CSS cleanup. Props azaozz. see #5486
git-svn-id: https://develop.svn.wordpress.org/trunk@7961 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-20 17:19:33 +00:00
Ryan Boren
67d3c5a09d Word count from azaozz. see #4807
git-svn-id: https://develop.svn.wordpress.org/trunk@7854 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-29 19:17:23 +00:00
Matt Mullenweg
cb1aa603b4 Remove drafts from Write page.
git-svn-id: https://develop.svn.wordpress.org/trunk@7282 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-14 07:07:46 +00:00
Matt Mullenweg
1a25889bb9 A number of style tweaks; widen up a little; starting to add contextual help to various forms; catching up unloved forms with new UI guidelines.
git-svn-id: https://develop.svn.wordpress.org/trunk@7181 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-07 10:05:54 +00:00
Ryan Boren
fcdcbe69e8 Remove bookmarklet stuff from post-new.php. Moving it somewhere else.
git-svn-id: https://develop.svn.wordpress.org/trunk@6903 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-18 20:36:49 +00:00
Ryan Boren
679cd738b9 TinyMCE config enhancements from azaozz. fixes #5896 #5888
git-svn-id: https://develop.svn.wordpress.org/trunk@6894 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-18 17:11:12 +00:00
Ryan Boren
9d87bc73e7 Update post save notifications and redirects
git-svn-id: https://develop.svn.wordpress.org/trunk@6807 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-13 08:55:17 +00:00
Ryan Boren
bfa0dd639a Move editor js to editor.js. fixes #5799
git-svn-id: https://develop.svn.wordpress.org/trunk@6770 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-09 13:08:28 +00:00
Matt Mullenweg
9b9c8bd46f Redirect to edit page with posted blurb as default.
git-svn-id: https://develop.svn.wordpress.org/trunk@6581 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-09 11:21:27 +00:00
Ryan Boren
fd80901dcf New image uploader from tellyworth. see #5609
git-svn-id: https://develop.svn.wordpress.org/trunk@6579 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-09 08:14:29 +00:00
Ryan Boren
72a79d489d Port autosave to jquery. Props rmccue. see #3824
git-svn-id: https://develop.svn.wordpress.org/trunk@6546 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-04 08:46:33 +00:00
Matt Mullenweg
30224a0b3d New tag interface, tag auto-suggest while typing. Rough - suggest and parts of JS should probably be refactored. Hat tip: jhodgdon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6542 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-03 01:34:11 +00:00
Ryan Boren
80b6586f90 Load jquery.js instead of interface.js. fixes #5544
git-svn-id: https://develop.svn.wordpress.org/trunk@6513 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-28 19:57:00 +00:00
Ryan Boren
a83ced4491 Add some filtering. Props jhodgdon. fixes #5030
git-svn-id: https://develop.svn.wordpress.org/trunk@6147 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-21 15:04:13 +00:00
Mark Jaquith
fc12da3d9b Fix link to others' drafts from nag. fixes #4912
git-svn-id: https://develop.svn.wordpress.org/trunk@6038 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-05 18:40:40 +00:00
Mark Jaquith
59d491abd0 Show "Post #N" for posts without a title in the nag. Props Viper007Bond. fixes #4849
git-svn-id: https://develop.svn.wordpress.org/trunk@6037 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-05 18:33:45 +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
dd51d69fb3 Revert jcalendar date picker experiment. Save it for another day. fixes #4641
git-svn-id: https://develop.svn.wordpress.org/trunk@5808 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-17 19:26:03 +00:00