Andrew Nacin
c9deeed6e9
Use get_post() in lieu of direct query in wp_ajax_replyto_comment(). fixes #23940 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23907 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-04 18:44:38 +00:00
bumpbot
21e5147be6
Compress scripts/styles: 3.6-alpha-23905.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23905 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-04 16:06:50 +00:00
Mark Jaquith
6bae3a6eda
A little more revisions js/php cleanup. see #23901 . props kovshenin, ocean90.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23904 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-04 16:03:21 +00:00
Andrew Nacin
a4bf14e7da
Use correct option name when deleting embed_autourls. props SergeyBiryukov. see #23715 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23902 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-04 15:55:53 +00:00
Mark Jaquith
25c799470e
Revisions CSS cleanup.
...
props ocean90. fixes #23933
git-svn-id: https://develop.svn.wordpress.org/trunk@23901 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-04 15:49:28 +00:00
bumpbot
12142ddb77
Compress scripts/styles: 3.6-alpha-23900.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23900 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-04 08:58:49 +00:00
Mark Jaquith
8351c2e87d
Further cleanup of revisions code. Probably not the last.
...
see #23901 . props adamsilverstein, azaozz, ocean90.
git-svn-id: https://develop.svn.wordpress.org/trunk@23898 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-04 07:53:49 +00:00
Andrew Nacin
afacb030f5
Remove _wp_delete_nav_menu(). wp_delete_nav_menu() should instead remove the menu from theme locations, which was the only difference between the functions. see #23119 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23897 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-04 04:28:12 +00:00
Andrew Nacin
50dffde71f
Replace $user_id removed in [23889] with a direct function call. see #23665 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23890 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-03 04:37:50 +00:00
Andrew Nacin
085141a6ba
No need to check for the presence of a current user in a privileged ajax action. see #23665 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23889 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-03 04:34:14 +00:00
Andrew Ozz
28a928ddb1
Autosave: use heartbeat to determine when connection is lost and disable the Save and Publish buttons. Re-enable the buttons when connection is restored. Props dh-shredder, see #23220
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23886 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-02 22:51:09 +00:00
Sergey Biryukov
d26bddce5c
Consistently show "Customize" item in the admin menu. props ethitter. fixes #21413 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23879 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 23:25:06 +00:00
Sergey Biryukov
f25bae2168
Use correct escaping function. see #23900 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23878 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 22:20:18 +00:00
bumpbot
9ffb607ce2
Compress scripts/styles: 3.6-alpha-23875.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23875 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:58:38 +00:00
Helen Hou-Sandi
bd32ccb3ca
Since post format meta for images now takes an attachment ID only, make sure we label it appropriately and don't do things like esc_url() the value. fixes #23900 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23874 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:56:18 +00:00
Mark Jaquith
a2855f94b3
Sanity checks on image metadata to avoid warnings, etc.
...
fixes #23733 . props wonderboymusic.
git-svn-id: https://develop.svn.wordpress.org/trunk@23873 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:51:35 +00:00
Mark Jaquith
f18cddb1e1
Make sure the first revision is seen as coming from emptiness, so it can be restored.
...
props adamsilverstein. fixes #23898 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23872 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:50:09 +00:00
Mark Jaquith
c51895c997
Add "Customize" as first item under Appearance menu.
...
fixes #21413 . props ryanhellyer, obenland, DrewAPicture
git-svn-id: https://develop.svn.wordpress.org/trunk@23871 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:39:54 +00:00
Sergey Biryukov
3739c3a14e
Fix incorrect script handle and a notice. props ocean90. fixes #23896 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23868 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 17:33:35 +00:00
bumpbot
07b28e52f7
Compress scripts/styles: 3.6-alpha-23865.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23865 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 12:58:38 +00:00
Mark Jaquith
eabfc6bd50
Give the active post format tab a bit of emphasis.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23864 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 12:37:40 +00:00
Mark Jaquith
a7d3775328
Gallery is a no-UI post format.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23863 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 12:17:52 +00:00
Mark Jaquith
07f5ffd015
Use the revisioned post format metadata when previewing.
...
fixes #23539 . props kovshenin.
git-svn-id: https://develop.svn.wordpress.org/trunk@23862 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 12:08:42 +00:00
Sergey Biryukov
6813288d59
Remove duplicate array keys. props kovshenin. see #19570 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23861 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 11:07:09 +00:00
bumpbot
7053d85f91
Compress scripts/styles: 3.6-alpha-23860.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23860 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 10:58:36 +00:00
Mark Jaquith
31858e2511
Simplify the accordion sibling-section-closing JS.
...
see #23890
git-svn-id: https://develop.svn.wordpress.org/trunk@23858 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 09:30:48 +00:00
bumpbot
38e8fd6923
Compress scripts/styles: 3.6-alpha-23857.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23857 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 08:58:41 +00:00
Mark Jaquith
9910c64764
Use jQuery.on() properly in accordion code. Some other cleanup.
...
see #23890 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23856 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 08:28:58 +00:00
Mark Jaquith
677254275c
Remove duplicated code that was accidentally committed in [23417].
...
fixes #23889 . props DrewAPicture.
git-svn-id: https://develop.svn.wordpress.org/trunk@23855 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 07:50:40 +00:00
Mark Jaquith
6c42dea13f
Do not attempt a slide transition if the current and switched-to post
...
formats both have no UI. Do not slide if clicking on the current format.
see #19570
git-svn-id: https://develop.svn.wordpress.org/trunk@23854 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 07:46:24 +00:00
Mark Jaquith
cb6e2622e0
Use jQuery.on() properly. Add some slideUp()/slideDown() transitions to ease post format switches. see #19570
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23853 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 07:06:21 +00:00
bumpbot
50b9f427b5
Compress scripts/styles: 3.6-alpha-23852.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23852 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 06:58:40 +00:00
Mark Jaquith
37f14ced6b
Defer JS to document ready
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23851 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 06:42:54 +00:00
Mark Jaquith
b34d814578
Clean up mixed spaces/tabs in post-formats.js
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23850 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 06:33:55 +00:00
Mark Jaquith
fe4da10a48
Add compat code for 'image' post format.
...
see #19570 . props wonderboymusic.
git-svn-id: https://develop.svn.wordpress.org/trunk@23847 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 05:21:23 +00:00
bumpbot
fc753f9803
Compress scripts/styles: 3.6-alpha-23846.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23846 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 04:58:39 +00:00
Mark Jaquith
0f9ebf4c63
Post Format prompt copy tweaks. props sabreuse. see #19570
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23845 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 04:19:44 +00:00
Mark Jaquith
f290fe2b51
Nav Menus help tab updates.
...
fixes #23608 . props DrewAPicture, Ipstenu, JerrySarcastic.
git-svn-id: https://develop.svn.wordpress.org/trunk@23844 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 03:39:34 +00:00
Mark Jaquith
e7cde8715f
Post Format UI.
...
* Icons
* Selection
* Prompt text
* Special fields
* Styling
* Sparkles
This is going to need testing, polish, and love.
see #19570 . props melchoyce, helen, wonderboymusic, lessbloat, rachelbaker, aaroncampbell, DrewAPicture, ryelle.
git-svn-id: https://develop.svn.wordpress.org/trunk@23843 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 03:35:41 +00:00
Mark Jaquith
15a0ae209d
Kill the HR on revisions page. see #23497
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23834 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 03:17:03 +00:00
bumpbot
9681287f64
Compress scripts/styles: 3.6-alpha-23833.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23833 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 02:58:39 +00:00
Mark Jaquith
b134331956
Make sure that the ID of the right revision is not less than the ID of the left revision
...
see #23497
git-svn-id: https://develop.svn.wordpress.org/trunk@23832 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 02:49:55 +00:00
Mark Jaquith
240dc4b968
correct a revision/tooltip mismatch.
...
props adamsilverstein. see #23497
git-svn-id: https://develop.svn.wordpress.org/trunk@23831 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 01:51:12 +00:00
Mark Jaquith
54e229a8b8
Fix a longstanding "off by one" revision authorship bug.
...
* Fixes old revision data on the fly when you open a post for editing.
* Uses post_name of revisions to store a post version number (-v1), so we know what has been fixed.
* Latest version should also have a revision stored, whereas before it did not.
props adamsilverstein, mdawaffe. fixes #16215 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23823 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 20:21:38 +00:00
Mark Jaquith
404aa52ea2
Take revision control out of the realm of a pure constant. Make it filterable.
...
* New filter: wp_revisions_to_keep
props ethitter, SergeyBiryukov. fixes #22289 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23818 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 18:11:56 +00:00
bumpbot
a60042072a
Compress scripts/styles: 3.6-alpha-23815.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23815 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 14:58:40 +00:00
Mark Jaquith
348f0f4fd5
*Very* rough runthough of revisions.js for JS style, variable names, etc.
...
Consider this the lawnmower that precedes Daryl's scissors.
see #23497
git-svn-id: https://develop.svn.wordpress.org/trunk@23813 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 12:59:41 +00:00
bumpbot
156cb9baab
Compress scripts/styles: 3.6-alpha-23812.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23812 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 12:58:43 +00:00
Mark Jaquith
51708e83c6
Move nav menus to a tabbed interface, so that users with a lot of locations can do bulk assignment.
...
props DrewAPicture, lessbloat. fixes #23770
git-svn-id: https://develop.svn.wordpress.org/trunk@23810 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 11:46:08 +00:00
bumpbot
a7433676be
Compress scripts/styles: 3.6-alpha-23809.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23809 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 08:58:40 +00:00
Mark Jaquith
40fdf5107e
RTL for Nav Menu tweaks. see #23641 . see #23645 . props lessbloat
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23808 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 08:53:26 +00:00
Mark Jaquith
4632d80f6f
Use GET for nav menu selection, and default action.
...
fixes #23813 . props helen.
git-svn-id: https://develop.svn.wordpress.org/trunk@23807 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 08:51:17 +00:00
Andrew Ozz
45f54b41d8
Logged out warnings: add fallback text dialog for:
...
- The login page has "X-Frame-Options: DENY" header.
- Cross-domain when displaying on the front-end on multisite with domain mapping.
- The site forces ssl login but not ssl admin.
Add onbeforeunload prompt to counter (frame-busting) JS redirects. Move the JS and CSS into separate files. See #23295 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23805 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 08:43:11 +00:00
bumpbot
ea8c0feefb
Compress scripts/styles: 3.6-alpha-23791.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23791 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 20:58:37 +00:00
Andrew Ozz
5c4cff0a29
Editor: fix switching Text to Visual and back if TinyMCE fails to initialise, fixes #23235
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23790 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 20:43:37 +00:00
bumpbot
28b36ea5cd
Compress scripts/styles: 3.6-alpha-23787.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23788 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 18:58:40 +00:00
Sergey Biryukov
3b91b9e622
Update RTL styles for Customizer. see #23449 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23784 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 17:46:48 +00:00
bumpbot
fe046574b4
Compress scripts/styles: 3.6-alpha-23779.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23779 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 16:58:37 +00:00
Sergey Biryukov
7a1610bf7c
Fix text direction for color picker in Customizer in RTL. props yoavf, mark-k. fixes #23740 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23777 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 16:07:01 +00:00
bumpbot
90de4d1a69
Compress scripts/styles: 3.6-alpha-23770.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23770 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 16:58:38 +00:00
Peter Westwood
ae03f1a0b6
Revisions: UI Update.
...
* Refines the UI to make it clearer and easier to use
* Introduces weighted tickmarks
* Fixes comparison bugs.
See #23497 props adamsilverstein
git-svn-id: https://develop.svn.wordpress.org/trunk@23769 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 15:54:11 +00:00
Mark Jaquith
b15ab88b39
Show a playable audio/video preview on the Edit Attachment screen.
...
props wonderboymusic. fixes #23726
git-svn-id: https://develop.svn.wordpress.org/trunk@23768 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 05:17:25 +00:00
bumpbot
cd16e77429
Compress scripts/styles: 3.6-alpha-23767.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23767 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 04:58:38 +00:00
Mark Jaquith
53ea4e0566
Add functions for generating metadata for video and audio, using the
...
ID3 library. Also allows themes/plugins to add thumbnail support
to these media types. Think stuff like album art, movie covers, and
video freeze-frames.
props wonderboymusic. fixes #23673
git-svn-id: https://develop.svn.wordpress.org/trunk@23766 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 04:55:42 +00:00
Helen Hou-Sandi
fa6afd2a63
Lose the added column for post formats in the posts list table and add an icon before the title instead. Icons are clickable to filter the list table down to posts of that post type and format. props melchoyce for the icons. fixes #16047 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23765 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 03:23:39 +00:00
bumpbot
23f9315857
Compress scripts/styles: 3.6-alpha-23764.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23764 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 02:58:40 +00:00
Andrew Ozz
9034f12b6b
Post locks: contain focus inside the dialog when tabbing, remove outline when focus is on the text, see #23697
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23763 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 00:57:27 +00:00
bumpbot
c6bda62923
Compress scripts/styles: 3.6-alpha-23762.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23762 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-20 06:13:30 +00:00
Sergey Biryukov
154af930ae
Use placeholders in menu strings instead of manual concatenation. fixes #14045 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23761 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-20 05:49:29 +00:00
Sergey Biryukov
d5b5f40afb
Fix object name. props GaryJ. see #14045 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23760 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-20 05:46:39 +00:00
bumpbot
6e92b305fa
Compress scripts/styles: 3.6-alpha-23754.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23754 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 18:58:40 +00:00
Helen Hou-Sandi
987251f582
Remove separate meta fields for image and gallery post formats. These are proving to be more confusing and labor-intensive from both a user and dev perspective than entering into the regular content editor. We will rely on good content parsing instead. See #19570 , #23347 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23753 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 17:18:07 +00:00
bumpbot
8700943f39
Compress scripts/styles: 3.6-alpha-23751.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23751 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 04:58:37 +00:00
Ryan Boren
01ca819c6f
Make the before() and after() methods in Bulk_Plugin_Upgrader_Skin and Bulk_Theme_Upgrader_Skin declarations match Bulk_Upgrader_Skin. Eliminates strict standards warning.
...
Props charlestonsw
fixes #23807
git-svn-id: https://develop.svn.wordpress.org/trunk@23749 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 03:24:51 +00:00
Ryan Boren
c920cfa3a0
RTL for Nav Menu tweaks. see #23641 . see #23645 . props DrewAPicture
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23748 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 03:16:24 +00:00
Andrew Ozz
2c201632a2
Bulk actions: do not move locked posts to the trash, props pdclark, see #23792
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23747 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 21:11:06 +00:00
Ryan Boren
72c65a3145
Fix i18n for revision diff strings displaying human time.
...
Props johnbillion
fixes #23723
git-svn-id: https://develop.svn.wordpress.org/trunk@23743 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 17:58:30 +00:00
Ryan Boren
75dcc983d7
Don't allow changing the post format from quick edit and bulk edit. These do not have sufficient context to set the post format.
...
Props kovshenin
fixes #23426
git-svn-id: https://develop.svn.wordpress.org/trunk@23742 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 17:24:24 +00:00
Ryan Boren
be67f3c550
Escape form action urls with esc_url() rather than esc_attr().
...
Props SergeyBiryukov
fixes #23266
git-svn-id: https://develop.svn.wordpress.org/trunk@23739 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 14:01:25 +00:00
Ryan Boren
f1a3189b22
Cleanup additional capabilities display in user-edit.php. Mark a string for translation.
...
Props johnjamesjacoby, SergeyBiryukov
fixes #14267
git-svn-id: https://develop.svn.wordpress.org/trunk@23737 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 13:27:57 +00:00
Andrew Ozz
c996f27c4d
Create one autosave per user rather than a single autosave for all users. Remove unused code from autosave.js and wp_ajax_autosave(). See #23665 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23735 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 21:15:43 +00:00
bumpbot
54dff9f493
Compress scripts/styles: 3.6-alpha-23734.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23734 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 20:58:37 +00:00
Andrew Ozz
66e4fa4d92
Post locks: when a dialog is shown move focus to the text, see #23697
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23733 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 20:46:37 +00:00
bumpbot
e4071c0d8b
Compress scripts/styles: 3.6-alpha-23731.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23731 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 06:58:41 +00:00
Andrew Ozz
e4b6b84d8e
Pass post format as a class to TinyMCE's body, props adamsilverstein, fixes #23198
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23730 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 05:57:54 +00:00
Mark Jaquith
0132e8100c
Introduce [audio] and [video] shortcodes, and use MediaElement.js to play them.
...
props wonderboymusic. see #23282 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23729 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 05:25:44 +00:00
bumpbot
050124e6ce
Compress scripts/styles: 3.6-alpha-23728.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23728 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 04:58:37 +00:00
Mark Jaquith
19e1d8076d
Accessibility revamp for nav menus.
...
props lessbloat. fixes #14045
git-svn-id: https://develop.svn.wordpress.org/trunk@23727 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 04:47:19 +00:00
bumpbot
23427e8e51
Compress scripts/styles: 3.6-alpha-23726.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23726 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 22:58:35 +00:00
Andrew Ozz
9288856e55
Post locks: add Preview button when post is locked, fix the suggested places, see #23312
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23725 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 21:09:20 +00:00
Sergey Biryukov
06649a7832
Remove unused variables. props GaryJ. fixes #23789 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23712 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 17:08:04 +00:00
Sergey Biryukov
e7d746e561
Remove unused variable. props DrewAPicture. fixes #23782 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23710 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 16:23:36 +00:00
bumpbot
117e132a94
Compress scripts/styles: 3.6-alpha-23708.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23708 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 14:58:36 +00:00
Mark Jaquith
6c5a64408a
Turn the Nav Menu meta boxes into an accordion. Less sprawling and overwhelming.
...
* Registration stays the same — they're meta boxes
* Call `do_accordion_sections()` instead of `do_meta_boxes()` and they render as an accordion
props DrewAPicture, lessbloat, jkudish. fixes #23450 . see #23449
git-svn-id: https://develop.svn.wordpress.org/trunk@23707 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 13:16:38 +00:00
Andrew Ozz
860ccd0cba
Logged out warnings: remove the logged out warning from autosave when in login_grace_period, see #23295
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23699 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-14 21:31:02 +00:00
Andrew Ozz
5e71fb3992
Local autosave: set a temp cookie on submitting the form and change it on redirecting after the post is saved/updated, then use it to determine if saving worked properly. Removes the chance for false positives after saving/updating a post. See #23220
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23693 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-14 03:06:07 +00:00
Andrew Ozz
a1ae5c0d28
Logged out warnings, heartbeat: remove nopriv_autosave as it doubles the functionality of the logged out warnings, move wp_ajax_nopriv_heartbeat() under No-privilege Ajax handlers in ajax-actions.php, see #23295 , see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23692 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 23:54:12 +00:00
Andrew Ozz
4ad27d6d14
Autosave to the browser's sessionStorage, compare this autosave to the post content on page load and let the user restore it when the data is not the same. First run, see #23220
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23683 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 10:08:16 +00:00
bumpbot
5e439e799e
Compress scripts/styles: 3.6-alpha-23682.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23682 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 00:58:39 +00:00
Andrew Ozz
631980b5fa
Post locks on the posts list screen: new icons for the lock, props empireoflight, show avatar for the user currently editing, props dh-shredder, see #23312
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23681 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 00:28:07 +00:00
Sergey Biryukov
69566bbd21
Make get_home_path() return consistent slashes. fixes #23175 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23669 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 11:04:14 +00:00
Sergey Biryukov
514e6ca11f
Fix fatal error in WP_User_Query when searching users by URL. Move wp_is_large_network() to wp-includes. fixes #23683 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23664 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 09:19:55 +00:00
Sergey Biryukov
18d4ae9d54
Fix missing i18n in auto-draft titles. fixes #23565 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23663 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 08:57:27 +00:00
bumpbot
96f4a86553
Compress scripts/styles: 3.6-alpha-23662.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23662 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 04:58:35 +00:00
Andrew Ozz
92c30a26fb
Check post locks with heartbeat and display modal notifications when a post is locked or a user takes over editing, props dh-shredder, see #23697
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23661 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 03:22:30 +00:00
Sergey Biryukov
aea7b67a2e
Replace deprecated WP_Screen::is_network property with WP_Screen::in_admin( 'network' ). props bpetty. fixes #23215 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23658 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-09 03:52:27 +00:00
Sergey Biryukov
aa44600be8
Update Network Dashboard help text. props DrewAPicture, raggedrobins. see #23163 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23657 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-09 03:18:26 +00:00
Sergey Biryukov
d25b3c5c19
Prevent plugins with certain filenames from breaking links in the admin menu. props lightningspirit. fixes #22079 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23656 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-09 02:48:49 +00:00
bumpbot
5d98f47677
Compress scripts/styles: 3.6-alpha-23646.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23646 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 22:58:48 +00:00
Mark Jaquith
2f09df84f3
Add back "Add New" next to h2 on Nav Menus screen.
...
props DrewAPicture. see #23641
git-svn-id: https://develop.svn.wordpress.org/trunk@23641 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 17:04:32 +00:00
Andrew Nacin
d049a2b1ed
Remove message slide-down effect on the nav-menus.php page. props lessbloat, fixes #23714 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23640 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 17:03:15 +00:00
Peter Westwood
ae4522b5f1
Revisions: Updates to the new Revisions UI.
...
Various Updates including:
* i18n fixes
* Added tracking of what revision ID was restored
* async fetching of diffs so that slider works sooner even with many revisions
See #23497 props adamsilverstein, ethitter
git-svn-id: https://develop.svn.wordpress.org/trunk@23639 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 15:32:26 +00:00
Peter Westwood
b88687d67e
Revisions: Update the Styling for the Revisions UI props karmatosed see #23497 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23638 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 15:11:23 +00:00
Sergey Biryukov
7e7cf2bb94
When adding a new user in the admin, strip slashes from the password sent to the user by email. props hakre for initial patch. fixes #17018 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23634 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 06:00:16 +00:00
Sergey Biryukov
458b77814c
Declare the variable before using it. props danielbachhuber. fixes #23710 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23632 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 04:46:19 +00:00
Andrew Nacin
e2fa722fbb
Use auto-draft rather than post_ID = 0 to detect whether we are adding a new post. see #23665 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23631 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-06 23:55:54 +00:00
bumpbot
bc37473b87
Compress scripts/styles: 3.6-alpha-23627.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23627 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-06 22:58:49 +00:00
Mark Jaquith
5fdeae8ffd
RTL for Nav Menu tweaks. see #23641 . fixes #23645 . props DrewAPicture.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23623 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-06 19:37:25 +00:00
Mark Jaquith
d422fd5331
Tweak the Nav Menu UX, especially around menu creation.
...
props lessbloat, DrewAPicture, jkudish. fixes #23641
git-svn-id: https://develop.svn.wordpress.org/trunk@23622 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-06 19:34:01 +00:00
Ryan Boren
ec09b27a71
Call them network upgrades rather than network updates to better indicate that they are DB upgrades rather than code/file upgrades.
...
Improve the contextual help for the Network Upgrade screen.
Props DrewAPicture
fixes #23540
git-svn-id: https://develop.svn.wordpress.org/trunk@23619 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-05 17:02:31 +00:00
bumpbot
32e9ee9d42
Compress scripts/styles: 3.6-alpha-23617.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23617 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-05 14:49:17 +00:00
Helen Hou-Sandi
a847ce2f36
Prevent an unseemly gap on the edit screen when nothing else displays before normal meta boxes. Give better HTML and visual structure to items added via `edit_form_after_title` and `edit_form_after_editor`. Using a class of `.edit-form-section` will now get you a 20px bottom margin; perfect for your additions to the post edit screen. fixes #23240 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23615 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 23:22:17 +00:00
Sergey Biryukov
b87d12f45f
Add description for wp_dashboard_rss_output(). props aaronholbrook for initial patch. fixes #23301 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23606 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 04:34:39 +00:00
bumpbot
cb9f18d20f
Compress scripts/styles: 3.6-alpha-23596.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23596 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 22:58:36 +00:00
Ryan Boren
b78520da15
Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().
...
see #WP21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23591 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 16:30:38 +00:00
Sergey Biryukov
d6139ccade
Remove unused function. fixes #23671 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23587 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 00:06:09 +00:00
Sergey Biryukov
22ec39f6e2
Fix checkbox synchronization on Edit Link screen. fixes #23670 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23586 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-02 23:58:34 +00:00
bumpbot
0c4b47f631
Compress scripts/styles: 3.6-alpha-23585.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23585 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-02 22:58:34 +00:00
Sergey Biryukov
83de7017df
Use correct variable. see [23575]. see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23584 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-02 21:10:12 +00:00
Helen Hou-Sandi
aae1d4ef75
Don't make ordered lists in help tabs look like bulleted lists. props ninnypants. fixes #23659 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23583 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-02 17:47:48 +00:00
bumpbot
ec3fda3cc1
Compress scripts/styles: 3.6-alpha-23582.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23582 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 22:58:38 +00:00
Helen Hou-Sandi
45b4d47b02
* Simplify jQuery UI slider CSS and bring into line with admin styles.
...
* Merge styles into wp-admin.css and colors-*.css.
* Scope the CSS with a class so as not to conflict with the color picker, which also utilizes jQuery UI slider. Authors wanting to use built-in styling for sliders should add a class of `.wp-slider` to the container to be intialized.
props karmatosed, helen. see #23497 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23581 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 19:24:03 +00:00
Andrew Nacin
b617e4742a
Don't unslash variables that came from wp_reset_vars(). see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23580 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 18:59:54 +00:00
Andrew Nacin
12882f9848
Ensure the referer functions operate completely on unslashed data: wp_referer_field(), wp_original_referer_field(), wp_get_referer(), wp_get_original_referer().
...
Use wp_slash() instead of addslashes().
see #21767 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23578 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:58:43 +00:00
Andrew Nacin
1b8afaa995
Remove an unslash in the deprecated WP_User_Search, as search_term is already unslashed in the constructor. see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23577 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:57:49 +00:00
Andrew Nacin
e8e569ccd2
Unslash early, directly on the superglobal. see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23576 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:57:08 +00:00
Andrew Nacin
0d54b5febe
Assume that url_shorten() receives unslashed data, as it does in core usage. see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23575 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:56:31 +00:00
Ryan Boren
37fae23001
Always wp_unslash() the return of wp_get_referer().
...
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23570 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:20:32 +00:00
Ryan Boren
436b32ef62
Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23567 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:14:09 +00:00
Sergey Biryukov
316689c934
Add missing comma. props bradparbs. fixes #22507 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23566 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:12:02 +00:00
Ryan Boren
e737c7120e
Use prepare instead of escape.
...
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23564 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:01:01 +00:00
Ryan Boren
4088ca8723
Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().
...
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23563 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:00:25 +00:00
Sergey Biryukov
3624fa4fde
Consistently apply 'preview_post_link' filter. fixes #19378 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23560 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:46:25 +00:00
Ryan Boren
206318aeca
There is no need to strip the output of get_site_option().
...
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23556 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:37:24 +00:00
Ryan Boren
c363aea627
Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23554 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:28:40 +00:00
Sergey Biryukov
158a124d0b
Remove redundant esc_url() call. props pauldewouters. fixes #23643 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23553 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:27:03 +00:00
Sergey Biryukov
c99000e98c
Ensure that get_nav_menu_locations() always returns an array. props JustinSainton for initial patch. fixes #23508 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23550 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 15:51:16 +00:00
bumpbot
85550f9f94
Compress scripts/styles: 3.6-alpha-23542.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23542 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 22:58:40 +00:00
Andrew Nacin
bedf69f229
Imporove a selector targeting taxonomy meta boxes. props SergeyBiryukov. see #22975 .
...
Uses correct patch, reverting [23517].
git-svn-id: https://develop.svn.wordpress.org/trunk@23536 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 20:50:32 +00:00
Andrew Nacin
d3a4aa7e29
Ignore protected meta keys in meta_form(). see #18786 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23534 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 19:51:29 +00:00
bumpbot
60a88cf02c
Compress scripts/styles: 3.6-alpha-23530.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23530 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 19:07:34 +00:00
Andrew Nacin
94a0410530
Make Twenty Thirteen the default theme.
...
Has the added benefit of ensuring the WordPress Beta Tester plugin allows updates of Twenty Thirteen.
props JustinSainton.
fixes #23573 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23529 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 19:01:07 +00:00
Andrew Nacin
57f7ae7af4
Stop using deprecated jQuery API (.browser and .live). Do manual UA sniffing where still necessary. Improve selector performance by using delegated events. props ocean90. see #22975 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23518 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:05:28 +00:00
Andrew Nacin
854f7138f9
Imporove a selector targeting taxonomy meta boxes. props SergeyBiryukoc. see #22975 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23517 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:03:18 +00:00
Peter Westwood
79d635459e
Revisions: Fix up some half renamed variables that break the view and display a mismash of split and combined views. See #23497 props adamsilverstein.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23509 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 16:48:33 +00:00
Peter Westwood
b1db3a3aa0
Revisions: Fix up some bugs I introduced while reviewing the mega revisions patch - when comparing two historical revisions only one half of the diff would load
...
See #23497 props adamsilverstein.
git-svn-id: https://develop.svn.wordpress.org/trunk@23508 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 16:10:45 +00:00
Helen Hou-Sandi
7f7f9a805c
Merge revisions.css into wp-admin.css. Move misplaced block of revisions CSS in wp-admin.css into appropriate section. Some standards clean up and selector merging. see #23497 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23507 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 15:40:44 +00:00
Peter Westwood
554627a0d5
Revisions: First pass an implementing a new UI/UX for reviewing the revisions of posts. See #23497 props adamsilverstein for the initial patch.
...
This implements a new revisions ui using Backbone and preserves all the old methods of "integration" so the change should be transparent to plugins using revisi
ons with CPTs.
This is the first pass and so there are a number of things still to be resolved, more details in the ticket. Feedback welcomed.
git-svn-id: https://develop.svn.wordpress.org/trunk@23506 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 15:14:34 +00:00
Andrew Ozz
780ee565aa
Improved logged out warnings, first run, props mintindeed, see #23295
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23504 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 08:57:17 +00:00
Sergey Biryukov
c79cef4654
Don't override filtered screen options on Widgets screen. props bradyvercher. fixes #23239 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23503 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 07:40:11 +00:00
Helen Hou-Sandi
a766d178db
Revert [23369] and [23370]: the icons. see #23333 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23501 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 01:15:20 +00:00
Helen Hou-Sandi
6ef89f92c7
Revert [23407], thereby restoring gradients and shadows. see #23415 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23500 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 00:58:26 +00:00
bumpbot
ffce5ab757
Compress scripts/styles: 3.6-alpha-23495.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23495 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-26 22:58:42 +00:00
Andrew Ozz
202941ad5b
Add edit-post.min.js for bumpbot's sake, see #23312
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23488 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 23:38:59 +00:00
Andrew Ozz
756c28bf5c
Post locks: use heartbeat to dynamically update locked posts on the Posts screen, first run, see #23312
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23487 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 23:17:10 +00:00
bumpbot
12a8779a74
Compress scripts/styles: 3.6-alpha-23486.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23486 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 22:58:42 +00:00
Andrew Ozz
c8586336d1
Post locks: don't check hidden checkboxes on bulk select/deselect, props dh-shredder, see #23312
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23485 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 21:24:19 +00:00
Sergey Biryukov
6a59a28f12
Rename 'no_tagcloud' taxonomy label to 'not_found', for consistency with the post type label of the same key. fixes #23597 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23484 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 19:39:38 +00:00
Sergey Biryukov
41919e97fb
Move 'no_tagcloud' argument to the taxonomy labels object. props DrewAPicture for initial patch. fixes #23597 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23483 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 18:35:05 +00:00
Andrew Ozz
9b691a21b0
Heartbeat API: add nopriv actions, add JS 'heartbeat-send' event, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23481 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 02:32:22 +00:00
Sergey Biryukov
5d957955fa
Fix typo in phpdoc. see #17515 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23457 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-19 23:40:03 +00:00
Helen Hou-Sandi
6fb8f6a707
Prevent a notice for post types that don't support post formats. props ethitter. fixes #23534 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23456 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-19 20:54:03 +00:00
Sergey Biryukov
0e5ac6c8c6
Revert to esc_attr_e() in setup-config.php to prevent a fatal error.
...
kses.php is not loaded at this point, so esc_url() cannot be used.
props csixty4, JustinSainton.
fixes #23516 . see #23334 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23455 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-19 05:36:16 +00:00
Sergey Biryukov
33f793c521
Fix a warning on Menus screen if $menu_locations is false.
...
Fix menu selection after creating a first menu on new install.
props jkudish.
fixes #23508 . see #23119 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23453 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-19 01:31:42 +00:00
bumpbot
f18f7d7b2d
Compress scripts/styles: 3.6-alpha-23451.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23451 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-18 22:26:00 +00:00
Helen Hou-Sandi
5b3c058bd5
Edit screen UI for post formats: a first run for functionality.
...
* Adds a very basic tabbed interface for selecting a post format (requires JS).
* Extra fields, which are post meta, are shown/hidden based on the selected format.
* Introduce a helper function for retrieving formats-specific metadata: `get_post_format_meta()`.
* Image selection uses the media modal, although without filtering or from URL support at the moment.
props rachelbaker, wonderboymusic, aaroncampbell, helen. see #19570 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23449 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-18 19:11:24 +00:00
bumpbot
745ed8b530
Compress scripts/styles: 3.6-alpha-23447.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23447 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 22:58:41 +00:00
Andrew Nacin
038439326d
Remove unused admin-categories and admin-custom-fields JavaScript files. props ocean90. fixes #23486 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23446 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 19:03:59 +00:00
Andrew Nacin
780c74d246
Remove unused variables reset by wp_reset_vars(). Many of these haven't been used since b2. see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23445 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 18:28:41 +00:00
Andrew Nacin
b17b5a64e3
Stop using jQuery.live(). props ocean90. see #22975 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23444 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 17:46:12 +00:00
Andrew Nacin
746187f768
Update the Iris color picker to version 1.0.3, which stops using the deprecated jQuery.browser property.
...
props mattwiebe.
fixes #23484 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23443 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 17:44:41 +00:00
Mark Jaquith
c2945a394f
Improve the UX of the Nav Menus screen. Kill the tabs, and change to a
...
dropdown, unless you have zero or one menus (which is the most common),
in which case you jump right into editing your sole menu.
Do assignment to location using checkboxes in the main menu editing
section instead of the backwards menu => location assignment in a
random meta box.
More to come, but this gets us started.
props lessbloat, DrewAPicture, jkudish. see #23119
git-svn-id: https://develop.svn.wordpress.org/trunk@23441 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 04:53:59 +00:00
Sergey Biryukov
eeda24f865
Deprecate wp_convert_bytes_to_hr() in favor of size_format(). props F J Kaiser. fixes #19067 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23439 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 03:07:56 +00:00
Sergey Biryukov
07d596afb7
Add missing inline descriptions. see #19067 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23437 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 02:52:57 +00:00
bumpbot
fe6bb0671d
Compress scripts/styles: 3.6-alpha-23435.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23435 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 22:58:45 +00:00
Sergey Biryukov
ee16ed9e0b
Correct return value for comment_exists(). fixes #20494 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23433 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 18:49:07 +00:00
Sergey Biryukov
e353d6c033
Allow filtering attachments by Author name in Media Library. props greuben. fixes #16044 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23430 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 17:33:28 +00:00
Mark Jaquith
ead92fb39d
"LGPL License" is redundant.
...
props wonderboymusic, jakub.tyrcha. fixes #15585
git-svn-id: https://develop.svn.wordpress.org/trunk@23425 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:26:46 +00:00
Andrew Nacin
36d09ab2ef
Do not unslash variables reset by wp_reset_vars(). Remove variables that have never been used in plugin-editor.php. see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23419 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 02:01:36 +00:00
bumpbot
2d34b9a876
Compress scripts/styles: 3.6-alpha-23417.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23418 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:58:42 +00:00
Mark Jaquith
bfd0b6fb37
Refactor the Customizer accordion so that it can be used in other locations.
...
fixes #23449 . props lessbloat, aaroncampbell
git-svn-id: https://develop.svn.wordpress.org/trunk@23417 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:58:04 +00:00
Ryan Boren
a6c8efadb9
Change all core API to expect unslashed rather than slashed arguments.
...
The exceptions to this are update_post_meta() and add_post_meta() which are often used by plugins in POST handlers and will continue accepting slashed data for now.
Introduce wp_upate_post_meta() and wp_add_post_meta() as unslashed alternatives to update_post_meta() and add_post_meta(). These functions could become methods in WP_Post so don't use them too heavily yet.
Remove all escape() calls from wp_xmlrpc_server. Now that core expects unslashed data this is no longer needed.
Remove addslashes(), addslashes_gpc(), add_magic_quotes() calls on data being prepared for handoff to core functions that until now expected slashed data. Adding slashes in no longer necessary.
Introduce wp_unslash() and use to it remove slashes from GPCS data before using it in core API. Almost every instance of stripslashes() in core should now be wp_unslash(). In the future (a release or three) when GPCS is no longer slashed, wp_unslash() will stop stripping slashes and simply return what is passed. At this point wp_unslash() calls can be removed from core.
Introduce wp_slash() for slashing GPCS data. This will also turn into a noop once GPCS is no longer slashed. wp_slash() should almost never be used. It is mainly of use in unit tests.
Plugins should use wp_unslash() on data being passed to core API.
Plugins should no longer slash data being passed to core. So when you get_post() and then wp_insert_post() the post data from get_post() no longer needs addslashes(). Most plugins were not bothering with this. They will magically start doing the right thing. Unfortunately, those few souls who did it properly will now have to avoid calling addslashes() for 3.6 and newer.
Use wp_kses_post() and wp_kses_data(), which expect unslashed data, instead of wp_filter_post_kses() and wp_filter_kses(), which expect slashed data. Filters are no longer passed slashed data.
Remove many no longer necessary calls to $wpdb->escape() and esc_sql().
In wp_get_referer() and wp_get_original_referer(), return unslashed data.
Remove old stripslashes() calls from WP_Widget::update() handlers. These haven't been necessary since WP_Widget.
Switch several queries over to prepare().
Expect something to break.
Props alexkingorg
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23416 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:51:06 +00:00
Sergey Biryukov
16e16c7ee4
Use correct escaping function. fixes #23334 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23413 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 05:52:23 +00:00
Sergey Biryukov
74f5d9dcb3
Remove unused error string. props pavelevap. fixes #22107 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23412 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 05:36:28 +00:00
Helen Hou-Sandi
d8acf69968
Restore the following:
...
* Box shadow for screen options/help tabs focus state.
* Text shadow on the about screen badge to match the text shadow in the graphic itself.
* Border for credits screen gravatars, in place of the previous box shadow.
props nacin. see #23415 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23409 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 23:50:55 +00:00
bumpbot
6b63e085ef
Compress scripts/styles: 3.6-alpha-23408.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23408 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 22:58:44 +00:00
Helen Hou-Sandi
4b2173708d
Begin simplifying some of the visual elements in the admin, starting with gradients. White space purposefully not currently altered. props lessbloat, melchoyce, aaroncampbell, sabreuse. see #23415 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23407 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 22:43:48 +00:00
Peter Westwood
553395cb92
Revisions: Pass the whole revision being filtered along with context about which side it is to the _wp_post_revision_field_$field filters.
...
Fixes #19932 props pollett, ethitter.
git-svn-id: https://develop.svn.wordpress.org/trunk@23404 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 21:42:03 +00:00
bumpbot
679339ffaa
Compress scripts/styles: 3.6-alpha-23400.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23400 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 22:58:42 +00:00
Mark Jaquith
6b335f1b6a
Allow Backround Image's "select a file" link to be activated by pressing return on the keyboard.
...
props adamsilverstein. fixes #22606
git-svn-id: https://develop.svn.wordpress.org/trunk@23399 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:51:19 +00:00
Mark Jaquith
1723190616
Document the mysterious seventh parameter of add_meta_box().
...
props wonderboymusic, markjaquith. fixes #17515
git-svn-id: https://develop.svn.wordpress.org/trunk@23397 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:37:34 +00:00
Mark Jaquith
a601e170aa
Link post formats in posts list table. Use a dash for standard, like we do for absence of tags. see #16047 Next: use icons, not text descriptions.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23396 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:34:51 +00:00
Mark Jaquith
e419f6258c
Fix some tabbing issues on the post editing screen. Add Media no longer skipped when going backwards from content. Save Draft no longer skipped when going forwards from content.
...
props adamsilverstein. fixes #23195 and #22933
git-svn-id: https://develop.svn.wordpress.org/trunk@23395 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:30:09 +00:00
Helen Hou-Sandi
efda431bc2
Open external links to plugin homepages, plugin author homepages, and theme author homepages in a new window/tab. props SergeyBiryukov. fixes #20839 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23394 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 16:20:01 +00:00
Mark Jaquith
ca7674b100
"Lookup" is a noun. "Look up" is the verb form. If you doubt me, you should have lookuped in a dictionary.
...
props johnbillion, SergeyBiryukov. fixes #22386
git-svn-id: https://develop.svn.wordpress.org/trunk@23393 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 16:19:04 +00:00
Mark Jaquith
2f6d3fed8c
Display post formats in the posts list table.
...
props nacin, garyc40, DrewAPicture, wonderboymusic, aaroncampbell.
fixes #16047
git-svn-id: https://develop.svn.wordpress.org/trunk@23392 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 16:10:05 +00:00
bumpbot
68360b40ab
Compress scripts/styles: 3.6-alpha-23386.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23386 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 14:38:03 +00:00
Andrew Ozz
682b66b560
Heartbeat API: throttle down when the window looses focus or when the user is inactive, always send 'screen_id', change the interval settings to 'fast' (5sec), 'standard' (15sec) and 'slow' (60sec), the interval can be changed from PHP, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23382 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-03 07:03:27 +00:00
Helen Hou-Sandi
7f2205971c
Maintain theme screenshot aspect ratio on the update screen. props cochran. fixes #23164 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23381 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 17:02:01 +00:00
Andrew Nacin
bb904fcf2b
Confirm a user exists before deleting them in wp_delete_user() and wpmu_delete_user(). props scribu, fixes #23067 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23380 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 04:41:02 +00:00
Sergey Biryukov
30650e32be
Return WP_Error from wp_crop_image() if saving has failed. props macbrink. fixes #23325 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23374 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 02:01:59 +00:00
Andrew Nacin
6caa05bc81
Clean up rendering of the title column in the posts list table. Simplify branching. Use get_userdata() rather than get_user_by( 'id' ). Change string to '%s is currently editing'. see #23312 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23372 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 01:54:06 +00:00
Andrew Ozz
712fcec00b
Posts screen: show when a post is "locked", hide the checkbox, Quick Edit and Trash links, props dh-shredder, see #23312
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23371 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 01:31:06 +00:00
Andrew Ozz
85fa686346
New icons: make the .icon32 container larger to prevent clipping, see #23333
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23370 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 01:01:35 +00:00
Andrew Ozz
11b614f32d
New icons take one, props empireoflight, see #23333
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23369 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 00:22:40 +00:00
Sergey Biryukov
a873f4acdb
Select "Attribute all posts to..." radio button automatically when selecting a username from the dropdown. fixes #23224 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23366 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-01 18:43:23 +00:00
Sergey Biryukov
e135387172
Only show "There is a pending change of your e-mail..." message on the current user's profile page. fixes #23146 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23364 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-01 01:50:19 +00:00
Andrew Ozz
5edc6b2711
Heartbeat API: first run, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23355 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-29 06:15:25 +00:00
Helen Hou-Sandi
a38f0e16c5
Remove the long-broken and questionably useful [more]/[less] toggle for hierarchical taxonomies in Quick/Bulk Edit. Nobody seems to have noticed in the nearly 3 years it's been broken. fixes #23006
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23354 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-28 22:36:15 +00:00
Sergey Biryukov
44c8e7aea8
Consistently use a helper function instead of directly printing the disabled attribute.
...
Remove an erroneous esc_attr() call.
fixes #23194 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23352 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-28 03:23:01 +00:00
Sergey Biryukov
81e88f1ec3
Make sure the post exists before checking its ID. fixes #23026 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23351 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-28 02:55:06 +00:00
Sergey Biryukov
b96d467630
Add missing inline descriptions.
...
props momo360modena, aaronholbrook.
see #20494 , fixes #23304 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23350 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-28 02:20:47 +00:00
Sergey Biryukov
7b811871b6
Correct return value for WP_Filesystem_Base::gethchmod(). props bananastalktome. fixes #23121 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23349 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-28 01:55:39 +00:00
Sergey Biryukov
56f44ff466
Prevent an unintended visibility change from "Password protected" to "Public" when updating the post.
...
props thomasvanderbeek. fixes #23065 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23338 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-23 03:30:04 +00:00
Sergey Biryukov
a7d1dfad01
Define the variable before using it. fixes #23181 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23337 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-23 03:00:20 +00:00
Andrew Ozz
f8a254ec56
Autop: <samp> is not a block tag, props toscho, fixes #18807
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23327 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 19:05:21 +00:00
Helen Hou-Sandi
7c08d57982
Make sure .widefat border and background coloring only applies to tables. props MikeHansenMe. fixes #21936 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23315 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 14:44:04 +00:00
Sergey Biryukov
5dfd000236
Restore Press This context menu in Firefox and Opera. props trepmal. fixes #22614 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23314 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 04:22:23 +00:00
Sergey Biryukov
8bdfc693c7
Move spinner-related styles out of Localized CSS section. fixes #23000 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23313 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 04:00:08 +00:00
Mark Jaquith
524e73f175
Consistently use $wp_rewrite->index instead of hardcoding "index.php".
...
props wonderboymusic. fixes #7337
git-svn-id: https://develop.svn.wordpress.org/trunk@23305 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-18 13:44:22 +00:00
Andrew Ozz
8cf528d255
Main editor: when setting or saving the height, look only at elements that have style="height:..." set. Reset a previously saved erroneous "ed_size" value (over 5000px) to the default height of 360px. Fixes #23042 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23302 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-16 19:10:38 +00:00
Dion Hulse
f4beefbb88
Core Update: Fix a issue which caused automatic upgrades from 2.7 to 3.5+ to fail. Pre-2.7 WP_Filesystem::wp_content_dir() returned unslashed paths. Introduced in [22227]. See #23177
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23297 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-11 10:16:45 +00:00
Mark Jaquith
24a509c81a
Resolve DOCUMENT_ROOT symlinks and standardize Windows slashing for various paths related to Multisite rewrite rule generation. props SergeyBiryukov, nacin, wpewill. fixes #23104 and #23073 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23295 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-10 08:08:14 +00:00
Andrew Nacin
8175cde11a
Ensure we wp_die() at the end of an ajax action. see #23055 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23293 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-07 03:59:44 +00:00
Andrew Nacin
fcbb71ad77
Whenever we have compat fields to render, send a dummy menu_order field (which was always sent in 3.4) to ensure an unchecked checkbox can still be processed by attachment_fields_to_save. fixes #22868 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23290 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-05 03:50:28 +00:00
bumpbot
3ef497695d
Compress scripts/styles: 3.6-alpha-23279.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23279 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 22:34:43 +00:00
Andrew Ozz
9de9019d41
Taxonomy postbox: fix toggling with "Choose from the most used tags" when several postboxes are shown, props SergeyBiryukov, fixes #23112 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23278 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 20:54:11 +00:00
Peter Westwood
d927271553
Tighten our braces. Fixes #23118 props evansolomon.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23265 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 10:13:51 +00:00
bumpbot
46e1c12b98
Compress scripts/styles: 3.6-alpha-23257.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23257 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 22:58:37 +00:00
Dion Hulse
17b6ada24a
Upgrade: When upgrading from WordPress 3.5, if an empty twentytwelve theme directory exists, remove it to allow the installation of Twenty Twelve. See #22856 . For trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23253 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 07:42:16 +00:00
Andrew Nacin
6e9830f34d
Don't stomp existing sizes inside wp_save_image().
...
props markoheijnen.
see #22985 .
for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23246 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 05:23:36 +00:00
Andrew Nacin
7fc8feabae
Fix the sprite positioning for HiDPI sorting arrows.
...
props lessbloat.
see #23071 .
for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23245 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-02 23:51:09 +00:00
Andrew Nacin
416f98b7c8
Remove deleted files on upgrade, including wp-app.php and class-wp-atom-server.php.
...
props duck_
see #22855
for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23203 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-26 20:34:30 +00:00
bumpbot
cff4199f69
Compress scripts/styles: 3.6-alpha-23200.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23200 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-23 22:58:43 +00:00
Helen Hou-Sandi
021167d954
Allow non-hierarchical taxonomy labels in Bulk Edit to span the available width. Props SergeyBiryukov, tar.gz. fixes #22703 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23198 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-23 16:30:12 +00:00
bumpbot
5999474328
Compress scripts/styles: 3.6-alpha-23193. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23193 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-21 18:52:36 +00:00
Helen Hou-Sandi
1303e7377a
its <=> it's in documentation, along with a rogue the, The, and looses. props trepmal. fixes #22665 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23191 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:55:32 +00:00
Helen Hou-Sandi
6c094b35ce
Nav menu item selection lists no longer need to be specifically de-whitespaced to match hierarchical taxonomy metaboxes. props corvannoorloos. See #22954 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23185 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-19 19:43:22 +00:00
Helen Hou-Sandi
a194505ae7
Align the "Available Themes" header with the search form. props wycks. fixes #22928 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23184 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-18 19:45:49 +00:00
Dion Hulse
0c9c23936b
When copying new bundled themes & plugins, bail early if the distro doesn't include the bundled item. This prevents us from creating an empty directory in the destination when the source doesn't exist. See #22856
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23179 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-15 03:09:50 +00:00
Mark Jaquith
30ead1f605
Fix code vomit in IIS rewrite rule generation. fixes #22920 for trunk. props toscho.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23177 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-13 22:54:36 +00:00
Andrew Nacin
05861ebb8c
Use 3 * HOUR_IN_SECONDS rather than 10800.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23175 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-12 07:30:28 +00:00
Andrew Nacin
bd4b5f955d
We no longer care if wp-admin/index.php is parseable by PHP 4. (And it's not, anyway.) If a user hits the root or wp-admin/install.php, they do get a proper warning.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23170 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-11 16:08:58 +00:00
Andrew Nacin
2c914a6c00
Only show help for upload_path and upload_url_path if those fields are visible. fixes #21720 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23134 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-09 17:04:08 +00:00
bumpbot
168fdca8e2
Compress scripts/styles: 3.5-RC4-23127.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23127 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 21:00:25 +00:00
Andrew Nacin
04cb50e1ce
Remove 'Insert Multiple Images' from the about page as it is now completely invisible in the UI. Requiring shift-click but not mentioning it is a bad omen. props helenyhou. fixes #22455 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23126 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 20:58:34 +00:00
Andrew Nacin
556664dd07
Final screenshot on the about page for the media manager.
...
props lessbloat.
props matt for the photos.
fixes #22455 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23109 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 19:49:42 +00:00
Andrew Nacin
110c7769e5
Rip keyboard shortcuts out of the image editor help. props helenyhou. fixes #22786 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23106 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 09:21:27 +00:00
bumpbot
66f7523e43
Compress scripts/styles: 3.5-RC3-23099.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23099 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 06:58:33 +00:00
Mark Jaquith
e0f5f47c57
Add the ability to click "Edit" and kick out to the advanced image editor from within the Media modal. New window, with "Refresh" offered on your return. fixes #22743 . props koopersmith, nacin, helenyhou.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23095 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:52:19 +00:00
Mark Jaquith
93442c1773
Run the attachment_fields_to_save filter even if we don't get the fields we used to get. props nacin. fixes #22774
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23094 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:34:17 +00:00
bumpbot
40dad409f4
Compress scripts/styles: 3.5-RC3-23093.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23093 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:26:39 +00:00
Daryl Koopersmith
a4f2112fd3
Add a canonical location for media frames, an alias to fetch attachments, and frame caching to custom header. fixes #22775 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23092 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:06:49 +00:00
Andrew Nacin
90e5fd56c0
Fix branchhing in edit_post() where attachment_fields_to_save would only run when the alt text was sent. It should run whenever an attachment is saved. props sc0ttclark. fixes #22774 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23088 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 03:50:31 +00:00
Daryl Koopersmith
f82ed67255
Add hidden fields via attachment_fields_to_edit to the existing compat output. props nacin. fixes #22769 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23086 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 03:28:21 +00:00
bumpbot
2255750962
Compress scripts/styles: 3.5-RC3-23084.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23084 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 00:42:44 +00:00
Andrew Nacin
1cc12103f5
Restore the Description field to the media UI in 3.5.
...
We tried in vain -- a noble but ultimately failed effort -- to reduce the number of fields for attachments from four (title, caption, alt, description) to one (caption for images, title otherwise). Alternative text needed to stay for accessibility reasons, of course.
Eventually title returned due to heavy plugin reliance. Description is too used by too many plugins (often times incorrectly -- the caption is more likely the proper field), hence its less-than-triumphant return today.
Version 3.5 has tried to streamline media in a number of ways. Removing fields may have been too much at once, as it forced not only a user interface change, but a paradigm change as well.
Finally, on upload we populate the description field with IPTC/EXIF captions, rather than the caption field. See #22768 , this should be fixed. For now, Description stays.
This commit also restores 'Title' attribute editing to the main tab of the Edit Image dialog. The "Title" field no longer populates title attributes for <img> tags by design (for accessibility and other purposes, see #18984 ). So, here is a more obvious 'workaround' for the tooltip community.
Finally, this:
* Cleans up the post.php attachment editor, including by showing a prettier form of the mime type.
* Enables plugins to specifically hide attachment_fields_to_edit from either post.php (where you can create meta boxes) or the modal (which you may not want to clutter), for compatibility reasons.
* Hides the 'Describe this file...' placeholder when a field is read-only in the modal.
props nacin, helenyhou.
fixes #22759 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23083 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 00:41:06 +00:00
Andrew Nacin
6c54baea98
Translate the 'First Steps with WordPress' Codex link. props SergeyBiryukov, fixes #22767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23082 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 22:51:24 +00:00
Andrew Nacin
a91ebc0abf
Media list table: Fix the categories column, hidden thanks to a typo. props eddiemoya, fixes #22764 . see #21240 , #21391 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23081 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 22:49:51 +00:00
Andrew Nacin
b2bafcca6a
Script loader: Chunk the script names as passed to load-scripts.php into 128-character pieces. Avoids hitting a limit for the length of a single variable, such as suhosin.get.max_value_length which defaults to 512. fixes #22757 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23074 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 18:57:56 +00:00
Mark Jaquith
92793b6ec2
Intelligently make media fields readonly when the user cannot update or do anything with them. props koopersmith, helenyhou, nacin. fixes #22613
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23072 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 10:29:24 +00:00
bumpbot
6b81fd778d
Compress scripts/styles: 3.5-RC3-23059.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23059 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 02:58:34 +00:00
Andrew Nacin
34f181654d
Admin ajax: Roll back new-style error sending in set-post-thumbnail. The JS handlers know to parse an unrecognized response (like -1 or 0) as a failure. see #21776 . see #22750 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23058 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 02:34:00 +00:00
Andrew Nacin
426eb50936
Fix inserting of multiple attachments with captions when the first attachment does not have a caption. props azaozz. fixes #22720 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23055 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:59:25 +00:00
Andrew Nacin
4e94295826
Remove options-privacy.php, as intended by [21838]. see #16416 . see #22349 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23050 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:16:54 +00:00
Andrew Nacin
71e16147bb
Use correct button class hierarchy to ensure the 'Update' button is button-large. see #21598 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23044 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 22:02:25 +00:00
Andrew Nacin
39049254ae
Move utils.js (cookie and user setting functions) to wp-includes to enable front-end use.
...
Make it a dependency of media-views (and therefore media-editor). Move its userSettings JS object from admin-header to being paired with the script in script loader.
see #22730 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23036 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:29:56 +00:00
Ryan Boren
fa4b718809
Only show Delete in media modal if the user can delete.
...
Props nacin, koopersmith
fixes #22711
git-svn-id: https://develop.svn.wordpress.org/trunk@23032 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:33:51 +00:00
bumpbot
344ddade55
Compress scripts/styles: 3.5-RC3-23025.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23025 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:25:14 +00:00
Andrew Nacin
e961de8af5
Media: Disable 'Insert gallery' and 'Set featured image' if nothing is queued. Converts selection toolbars to use the newer view manager. props koopersmith, fixes #22714 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23024 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:21:57 +00:00
Andrew Nacin
5d903fc14d
Update the 'Retina Ready' screenshot on the about page to reflect version 3.5, Twenty Twelve, and such. It's the little things. props lessbloat. fixes #22455 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23022 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 15:04:19 +00:00
Andrew Nacin
912aa5c95a
About page: Update retina screenshot to remove the old Upload/Insert icon from QuickPress. props lessbloat. see #22455 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23019 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 07:28:39 +00:00
bumpbot
e171e1c977
Compress scripts/styles: 3.5-RC2-23018.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23018 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 06:58:31 +00:00
Andrew Ozz
7bc623ca09
Editor: add sanity limit for editor height of 5000px, save only when resizing the Visual or the Text editor, fixes #22708
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23016 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 06:01:47 +00:00
Andrew Nacin
9e665f5355
Missing RTL for [21944]. props helenyhou. fixes #22707 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23014 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 05:06:24 +00:00
Andrew Nacin
8557740b7b
Updated media screenshot for the about page. props lessbloat. fixes #22455 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23010 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 04:13:30 +00:00
Andrew Nacin
ebc5376a0d
RTL support for Masonry on the custom header page. fixes #22709 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23009 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 04:08:32 +00:00
bumpbot
4073eb5ec2
Compress scripts/styles: 3.5-RC2-23007. props koopersmith. :-)
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23007 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 01:29:58 +00:00
Ryan Boren
00e20a52dc
Final round of media UX improvements.
...
Props koopersmith
fixes #21390 #22502
git-svn-id: https://develop.svn.wordpress.org/trunk@23006 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 01:26:03 +00:00
Andrew Nacin
57cda41fdf
RTL fixes for the tags meta box and two search inputs. props SergeyBiryukov. fixes #22707 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23004 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 00:47:54 +00:00
Ryan Boren
71d333f660
In the QuickPress media modal, use the new post id when a post is published.
...
Props nacin, koopersmith
fixes #22673
git-svn-id: https://develop.svn.wordpress.org/trunk@22994 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 07:17:10 +00:00
bumpbot
c164b8e2c4
Compress scripts/styles: 3.5-RC2-22988.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22988 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 05:42:30 +00:00
Andrew Nacin
a347195dca
In Firefox, style placeholder text a dark gray since the browser doesn't do it for us. props helenyhou, fixes #22689 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22986 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 05:17:23 +00:00
Andrew Nacin
40e9cce21d
When creating a network, use get_home_path() to calculate where .htaccess (or web.config) lives. fixes #22639 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22982 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 03:42:02 +00:00
Andrew Nacin
81a083e180
Remove errant space.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22981 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 02:59:04 +00:00
Andrew Nacin
e517a360cd
Correctly calculate the location of wp-config.php, used in the instructions for setting up a network. see #22639 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22980 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 02:54:29 +00:00
Andrew Nacin
f88b538001
Bring Featured Images back into the main media dialog.
...
Most users don't realize that the Featured Image meta box exists; if they do, few use it.
Restores the old meta box UI, including the admin_post_thumbnail_html filter. If a plugin is using _wp_post_thumbnail_html() in conjunction with Thickbox elsewhere, it will also magically still work.
Specific underlying changes:
* Converts the modal view to use the view manager, which means that a call to open() will automatically call render and attach if necessary.
* Doesn't automatically set a state in wp.media, to allow code to customize the states to be added before activation.
props koopersmith.
fixes #21776 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22979 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 02:38:10 +00:00
Andrew Nacin
b32e926551
Customizer: Ensure that the 'Collapse' button is styled properly (overridding the admin button style). props helenyhou. fixes #22684 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22977 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 00:42:11 +00:00
Andrew Nacin
d8e714d6e3
Allow the 'Uploaded to this post' view to be sorted, saving the resulting order as menu_order.
...
This functionality is designed to be backwards compatible with manual querying for attachments by menu_order.
props koopersmith.
see #22607 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22967 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:06:31 +00:00
Ryan Boren
efe3a45b76
Namespace the dashboard widget nonce to avoid collisions with plugins.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22964 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 00:12:43 +00:00
Ryan Boren
511cb0ec93
Directly access post_status instead of using get_post_status() when checking for auto-draft status. Attachments with their inherit post_status were getting the auto-draft status of their parent when using get_post_status(). This caused some things to display improperly on the edit attachment page.
...
Props nacin, miqrogroove
fixes #22672
git-svn-id: https://develop.svn.wordpress.org/trunk@22963 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 23:12:30 +00:00
Andrew Nacin
d3ab1fe6b8
Remove stray single quote in attachment_submit_meta_box(). props Yogi T. fixes #22674 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22962 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 18:59:16 +00:00
Ryan Boren
780c0ec85b
Properly pass WordPress uploading errors to wp.Uploader.
...
Props koopersmith
fixes #22655
git-svn-id: https://develop.svn.wordpress.org/trunk@22954 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:40:09 +00:00
bumpbot
98d7fb5e28
Compress scripts/styles: 3.5-RC2-22953. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22953 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:20:51 +00:00
Ryan Boren
06b9663f58
Refine media state machine methods.
...
* state( id ) becomes setState( id )
* get( id ) becomes state( id )
* state() stays the same
* previous() becomes lastState()
Props koopersmith
fixes #22652
git-svn-id: https://develop.svn.wordpress.org/trunk@22952 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:19:11 +00:00
Ryan Boren
e06828a6c4
Add a create_posts check to _wp_translate_postdata(). Move the edit_post check to the top of the function.
...
Props nacin
fixes #22417
git-svn-id: https://develop.svn.wordpress.org/trunk@22950 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 14:03:47 +00:00
bumpbot
74f9eabbd0
Compress scripts/styles: 3.5-RC2-22949.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22949 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:52:16 +00:00
Ryan Boren
c53137f535
Scope button classes so they can be used on the frontend without interfering with theme styles.
...
Props helenyhou, koopersmith
fixes #22644
git-svn-id: https://develop.svn.wordpress.org/trunk@22948 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:40:59 +00:00
Ryan Boren
5178ac86cb
RTL fixes for media and color picker.
...
Props ocean90
see #22453
git-svn-id: https://develop.svn.wordpress.org/trunk@22947 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:34:16 +00:00
Ryan Boren
addc12cbf0
Update permalink structure input when selecting a structure with the radio buttons.
...
Props nacin
fixes #22645
git-svn-id: https://develop.svn.wordpress.org/trunk@22931 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 00:01:26 +00:00
Andrew Nacin
f3da142f01
Nonces for dashboard controls.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22930 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 00:01:02 +00:00
Ryan Boren
cdce6a366e
Introduce API to add back the description field in the new media popup.
...
Props nacin
fixes #22642
git-svn-id: https://develop.svn.wordpress.org/trunk@22929 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 23:52:30 +00:00
Andrew Nacin
8eb663ed3c
Media help. props DrewAPicture, merty, Ipstenu. fixes #22451 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22925 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 17:51:54 +00:00
bumpbot
972a3b7e43
Compress scripts/styles: 3.5-RC1-22922.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22922 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:17:06 +00:00
Andrew Nacin
1119f34331
Use jQuery .html() when processing HTML.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22916 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 02:42:06 +00:00
Andrew Nacin
69f1ab8b9c
Verify attachment parent during upload.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22915 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 02:39:34 +00:00
Andrew Nacin
a50c33bc44
Fix disabling of the link manager on upgrade from 3.4.2 when there are no links.
...
In the 3.4 branch we bumped the DB version past the version used for disabling links in trunk, preventing it from running. In the future, we must avoid increasing branch DB version bumps to HEAD.
props SergeyBiryukov.
fixes #22626 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22911 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 00:37:30 +00:00
bumpbot
0e62b927c3
Compress scripts/styles: 3.5-RC1-22909.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22909 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:58:34 +00:00
Andrew Nacin
5aac5cb3de
Use the create_posts post type cap in more places. Remove the janky create_posts meta cap. see #16714 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22908 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:28:20 +00:00
Andrew Nacin
cb529c080a
Adjust size of the 'Clear List' list table button. Fix placement of other buttons next to bulk actions. props johnbillion, SergeyBiryukov, fixes #22621 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22906 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:20:45 +00:00
Andrew Nacin
fdfa14f185
Reorganize and polish the About WordPress 3.5 screen. Offer strings for translation.
...
props lessbloat, helenyhou, markjaquith, nacin.
fixes #22455 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22903 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 21:00:09 +00:00
Ryan Boren
bb1760e226
Route uploads through async-upload.php instead of admin-ajax.php.
...
Props nacin, koopersmith
fixes #22622
git-svn-id: https://develop.svn.wordpress.org/trunk@22902 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 20:17:57 +00:00
Andrew Nacin
b60b857268
Use create_posts whenever linking to post-new.php. props johnbillion. fixes #16714 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22900 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 18:24:11 +00:00
Andrew Nacin
55290a2004
Don't label the form on media-new.php an upload form to avoid esoteric breakage. In past lives, the form has been more complicated than the standard .wp-upload-form use case, with submit buttons that are not just for the uploader, which means we really can't disable them here.
...
Reverts part of [22663]. see #20855 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22880 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 22:41:15 +00:00
bumpbot
8d72af5bfc
Compress scripts/styles: 3.5-RC1-22879. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22879 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 20:58:37 +00:00
Andrew Nacin
7f34c3e8ec
Media: Introduce wp.media.editor.open(editor_id) and leverage it in distraction-free writing (fullscreen). props azaozz, koopersmith. fixes #22541 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22875 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:09:00 +00:00
Andrew Nacin
ae3472b2a2
Feature pointers:
...
* Finalize the text for the media pointer. Offer it for translation.
* Remove the favorites pointer.
fixes #22454 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22874 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 18:58:07 +00:00
bumpbot
fad058bf84
Compress scripts/styles: 3.5-RC1-22873.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22873 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 16:58:37 +00:00
Ryan Boren
d2d01ad797
Always send nocache_headers() for admin-ajax.php. This prevents iOS from caching ajax calls. http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results
...
Turn off multi selection uploads for mobile devices. Currently Plupload cannot upload multiple files in iOS Safari. Only the first file makes it to the queue.
Empty wp on unload to work around caching in iOS Safari.
Props azaozz, miqrogroove, nacin
fixes #22552
git-svn-id: https://develop.svn.wordpress.org/trunk@22872 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 16:17:53 +00:00
Ryan Boren
3c3233df00
Show plugin activation message when activating a network only plugin on a single site installation.
...
Props nacin
fixes #22576
git-svn-id: https://develop.svn.wordpress.org/trunk@22871 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 16:08:35 +00:00
Ryan Boren
6a9c14ed5f
Add a delete link to the media modal.
...
Props merty, nacin, koopersmith
fixes #22524
git-svn-id: https://develop.svn.wordpress.org/trunk@22869 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:50:59 +00:00
Ryan Boren
6099051c3e
Only show the image edit button for image attachments. Props markoheijnen. fixes #22596
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22867 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:06:02 +00:00
Ryan Boren
b750487b07
Fix dragging in IE10 on touch devices.
...
Props georgestephanis, koopersmith
fixes #22583
git-svn-id: https://develop.svn.wordpress.org/trunk@22866 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:00:00 +00:00
Ryan Boren
8b1ebd858a
In wp_image_editor(), use wp_image_editor_supports() to check for rotation capabilities rather than directly checking the existence of the imagerotate function.
...
In WP_Image_Editor_GD::test(), check for existence of imagerotate if the rotate capability is required.
Props DH-Shredder
fixes #22597
git-svn-id: https://develop.svn.wordpress.org/trunk@22863 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 14:36:55 +00:00
Andrew Nacin
a2535a19b9
No AYS or autosave for attachments on post.php. Reverts part of [22725]. fixes #22491 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22858 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 02:02:32 +00:00
Ryan Boren
0c434b7cc7
Rather than question ourselves, exclaim!
...
Props PotterSys
see #22455
git-svn-id: https://develop.svn.wordpress.org/trunk@22856 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 00:27:36 +00:00
Ryan Boren
2986ab9418
Show a better message ondmins on link-manager.php, link-add.php, link.php when links are disabled.
...
Props nacin
fixes #22569
git-svn-id: https://develop.svn.wordpress.org/trunk@22855 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 00:20:27 +00:00
Ryan Boren
293f8923c4
Consolidate some strings. Props SergeyBiryukov. see #21087
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22854 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 23:12:11 +00:00
Ryan Boren
0ba9380f4e
In media_upload_flash_bypass(), pass the post id in the media-new.php url.
...
In media-new.php, use post_id from REQUEST if passed and the current user can edit the post.
Fixes adding media with the browser uploader.
Props nacin, ocean90
fixes #22572
git-svn-id: https://develop.svn.wordpress.org/trunk@22853 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 23:10:19 +00:00
Andrew Nacin
340a772e73
Back compat for media_buttons_context, which is not the correct filter for adding new media buttons. If you want to add additional media buttons, use the media_buttons action instead. fixes #22559 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22848 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:32:35 +00:00
Ryan Boren
e12621eccb
In wp.media.editor:send, revert back to the old field names used by media_upload_form_handler() for easier back compat.
...
Fix notices in wp_ajax_send_attachment_to_editor().
Props nacin, azaozz, miqrogroove
fixes #22553
git-svn-id: https://develop.svn.wordpress.org/trunk@22847 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:08:50 +00:00
Ryan Boren
7ce1968d15
In media_buttons(), consult global post_ID if get_post() comes up with nothing.
...
Default postID to 0 in wp_enqueue_media().
Props nacin
fixes #22085
git-svn-id: https://develop.svn.wordpress.org/trunk@22846 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:03:37 +00:00
Andrew Nacin
390e1756a1
Don't use wp_send_json_* handlers in the upload-attachment XHR handler.
...
The difference is the content type: application/json (which jQuery deserializes automatically for us) and the default text/html.
jQuery correctly handles application/json requests for IE, so we can continue to use the wp_send_json_* handlers elsewhere. Plupload rolls its own requests and does not handle application/json correctly. So, keep the standard text/html content type on upload-attachment.
props koopersmith.
see #22446 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22845 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 20:12:50 +00:00
Andrew Nacin
a2eb48c7ab
Media: When inserting an attachment, if the item is unattached (no post_parent), attach it to the post. fixes #22085 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22843 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 16:34:42 +00:00
Ryan Boren
8bf86e30f7
Make is_upload_space_available() available for front end page loads. Fixes fatal error when calling wp_editor() from the front end.
...
Props scribu, itworx
fixes #22585
git-svn-id: https://develop.svn.wordpress.org/trunk@22840 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 14:42:43 +00:00
bumpbot
9dd670c47a
Compress scripts/styles: 3.5-RC1-22839.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22839 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 03:47:40 +00:00
Andrew Nacin
99097a2096
Only pass the current screen to the list table constructor when we have a screen to work with. This is not the case for admin-ajax requests. fixes #22570 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22838 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 03:39:29 +00:00
Andrew Nacin
76b8bb8450
Media: Remove vestige CSS that prevents thumbnails from always showing on media-new.php. props duck_. fixes #22547 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22837 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 03:37:25 +00:00
Andrew Nacin
1b8e6d9ac6
Use correct variable in wp_ajax_save_attachment(). see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22834 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 02:50:01 +00:00
Ryan Boren
8a75568cd4
Gettext markup for a welcome screen string. Props SergeyBiryukov, xibe. fixes #22546
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22831 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-23 16:42:31 +00:00
Andrew Ozz
080b51bfe6
Do not optimize/smush/ImageOptim GIFs. Most are either not reduced in size or reduced only couple of bytes but the optimization messes with the transparency/matte. Fixes #22536 , see #22381
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22829 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 19:08:22 +00:00
Andrew Nacin
4bf9e01c2b
Mustn't forget to hide the legacy media uploader! see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22828 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 13:23:27 +00:00
bumpbot
0c83571904
Compress scripts/styles: 3.5-beta3-22819.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22820 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 10:58:36 +00:00
Andrew Nacin
f44d1d009e
WP_Image_Editor: the last stand.
...
* Have wp_get_image_editor() rather than WP_Image_Editor::get_instance(). Having static factory methods would be less confusing if there weren't also static methods tied to individual editor implementations.
* Lazy-load the WP_Image_Editor base class and editor implementations.
* Have WP_Image_Editor_GD::supports_mime_type() actually check which types it supports.
* Deprecate gd_edit_image_support() in favor of wp_image_editor_supports().
props DH-Shredder, scribu, markoheijnen. fixes #22356 . see #6821 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22817 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:52:16 +00:00
Andrew Nacin
5e90f834be
Two initial feature pointers for WordPress 3.5: plugin favorites and the media dialog. One offered for translation. props nacin, lessbloat, DrewAPicture. see #22454 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22815 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:24:11 +00:00
Andrew Nacin
8865ae9b81
About page for WordPress 3.5, first pass. Not yet offered for translation. props lessbloat, johnbillion. see #22455 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22814 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:16:26 +00:00
Andrew Nacin
be4bf5a2aa
Updates to post.php help text for posts and pages, including a new section on inserting media. props DrewAPicture, Ipstenu. see #22451 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22813 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:00:39 +00:00
Andrew Nacin
40274b7956
Fix various typos and omissions across a number of help tabs. props DrewAPicture, Ipstenu. see #22451 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22812 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 08:45:15 +00:00
bumpbot
6f9025dbf5
Compress scripts/styles: 3.5-beta3-22808.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22808 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 04:58:35 +00:00
Daryl Koopersmith
ba65b3ffc7
Media: Replace the thumbnail on post.php using a request variable instead of the referer. props ocean90. fixes #21391 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22807 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 03:43:16 +00:00
bumpbot
54ae64c4b1
Compress scripts/styles: 3.5-beta3-22801.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22801 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 22:58:36 +00:00
Dion Hulse
a88a487797
Correct get_home_path() for cases where WordPress is installed in a subdirectory called /wp/, previously it would match on /wp-admin instead of /wp causing an incorrect return path. Props SergeyBiryukov. Fixes #20449
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22800 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 22:39:59 +00:00
Andrew Nacin
7d73996c18
Fix action link styling in IE7 and IE8. props SergeyBiryukov. fixes #22467 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22799 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 22:34:08 +00:00
Andrew Ozz
251ab5e8b1
Fix typo in [22795]
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22796 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 21:16:19 +00:00
Andrew Ozz
f1cdbe4224
Improve AYS comparison on the Edit Attachment screen, props nacin, fixes #22491
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22795 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 21:11:21 +00:00
bumpbot
94386517ce
Compress scripts/styles: 3.5-beta3-22793.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22793 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 21:03:21 +00:00
Andrew Nacin
7e091de398
Revert [22767] and fix icon alignment issues in the sprites themselves. props lessbloat. fixes #22527 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22785 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 19:17:01 +00:00
Andrew Nacin
e4759d815d
Support attachment_fields_to_save and attachment_fields_to_edit for attachments going through post.php. see #22186 . see #21391 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22783 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:53:00 +00:00
Andrew Nacin
d7590ae602
Remove legacy media uploader bits from custom-header.php and custom-background.php. see #22186 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22778 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 17:44:49 +00:00
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
Daryl Koopersmith
8ce1f39c6c
Media: Move the new sections of media-upload.js to media-editor.js to allow the media modal to be used on the front end and prevent dependency conflicts with older themes and plugins. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22770 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:46:32 +00:00
Peter Westwood
ebb921d018
Posting: Improve the capability checking _wp_translate_postdata() when updating posts.
...
* Use the specific post_type's 'edit_post' cap
* Pass the ID of the post being edited.
Fixes #22417
git-svn-id: https://develop.svn.wordpress.org/trunk@22769 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:34:57 +00:00
Daryl Koopersmith
9a2033cabc
Media: Backwards compatibility for the many send_to_editor filters. props nacin. see #22186 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22768 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:02:20 +00:00
Andrew Nacin
39df8515e5
Move the admin menu icons up one pixel, to restore their 3.4 positioning. props lessbloat. fixes #22527 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22767 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 15:37:43 +00:00
Andrew Nacin
431314d357
Have the media modal direct users to media-new.php for the browser uploader. fixes #22444 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22765 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 15:30:48 +00:00
Andrew Nacin
0b402a8dc1
media-new.php: Remove unused scripts, strings, error handling, save handling, and save button. fixes #22083 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22764 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 15:10:17 +00:00
bumpbot
fe20fc8ccc
Compress scripts/styles: 3.5-beta3-22763.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22763 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:58:31 +00:00
Daryl Koopersmith
493572fd09
Media: Backwards compatibility for the disable_captions filter. see #22186 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22761 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:27:22 +00:00
Daryl Koopersmith
185c2d1afc
Media: Use the wp.media.string functions when generating embed strings. Embed captions now work. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22760 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:20:01 +00:00
Andrew Nacin
893e77607d
Revert accidental changes to admin/includes/media.php in [22755]. see #22083 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22759 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:04:24 +00:00
Daryl Koopersmith
4c2e0d6b45
Media: Make the attachment object optional when using the wp.media.string methods. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22758 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 13:53:15 +00:00
Andrew Nacin
b59a8855db
Properly nest the if tag. props helenyhou. see #21391 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22757 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 13:32:26 +00:00
Daryl Koopersmith
663dd97aa8
Customizer: Track the link that was used to open the customizer and restore focus on close. props lessbloat. fixes #21283 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22756 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 13:17:10 +00:00
Andrew Nacin
9d2cc09ce1
Have media-new.php return simple rows of basic attachment data, with an 'Edit' link next to each taking them to post.php (in a new window). Not ideal, but this is largely a fallback screen at this point.
...
This is bolted on to existing code, the vast majority of which is destined to be ripped out in 3.6 once things settle.
see #22083 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22755 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 13:05:44 +00:00
Andrew Nacin
d2c8701c37
Remove cruft from media-new.php. No need to keep extra parameters around (including post ID, which is always 0 here). see #22083 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22752 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 12:27:12 +00:00
Andrew Nacin
7572347b8c
Split media-new.php and media-upload.php into distinct files.
...
* media-new.php will remain the entry point for uploading isolated files, and for using the browser-based uploader (versus Plupload).
* media-upload.php is the legacy (pre-3.5) media uploader.
see #22083 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22751 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 12:19:40 +00:00
Andrew Nacin
b69e4bf685
Properly refresh the thumbnail on post.php after an image edit. props ocean90. see #21391 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22749 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 12:05:24 +00:00
Andrew Nacin
4283deb34c
Non-images don't have alternative text. props helenyhou. see #21391 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22748 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 12:03:35 +00:00
Andrew Nacin
59be9048dd
Stop inserting title attributes for images inserted into the editor by modifying get_image_send_to_editor(), not the generic get_image_tag().
...
see #18984 , [22409].
git-svn-id: https://develop.svn.wordpress.org/trunk@22747 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 11:50:30 +00:00
Daryl Koopersmith
052b765819
Media: Add filters for image-only libraries. see #22514 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22745 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 11:04:23 +00:00
Daryl Koopersmith
8e6aa60fa4
Media: Dynamically generate attachment filters using get_post_mime_types().
...
Moves `get_post_mime_types()` from `wp-admin/includes/post.php` to `wp-includes/post.php`.
fixes #22514 , see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22743 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 10:18:59 +00:00
Andrew Nacin
79435f42fa
Use a variable that is set a few lines up. $post_id is set only in post.php, not post-new.php. fixes #21092 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22742 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 09:35:23 +00:00
Andrew Nacin
db7dc96921
Media: For pages, use 'Insert into page' rather than 'Insert into post'.
...
Custom post types can use the media_view_strings filter. No new post type "labels" for now.
see #22712 . see #21092 (and #19696 ).
git-svn-id: https://develop.svn.wordpress.org/trunk@22735 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 23:22:03 +00:00
bumpbot
265d65f0fd
Compress scripts/styles: 3.5-beta3-22734.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22734 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 22:58:28 +00:00
Andrew Nacin
0857770a56
Color picker: Instant feedback when typing a color. Strengthens alt + arrows for moving around the palette. props mattwiebe. fixes #22475 . fixes #22388 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22732 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 22:02:09 +00:00
Andrew Nacin
acf2af8cb7
Customizer: Let return/enter fire click events for dropdowns and links. Remove errant focus event. Re-add box shadow and border for the overlay header. props lessbloat. see #21283 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22731 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 21:25:54 +00:00
Andrew Ozz
b254457b19
Skip To links: visually hide by only setting top: -1000em; (this should make them work well in all screen readers), fixes #21312
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22730 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 21:14:49 +00:00
bumpbot
f633a3aeff
Compress scripts/styles: 3.5-beta3-22729.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22729 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 20:58:28 +00:00
Andrew Nacin
6b22cbcbc7
Use standard link colors with the skip links. see #21310 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22727 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 20:25:54 +00:00
Andrew Ozz
a1bb1de73f
Skip links: simplified look with more contrast, props sabreuse, fixes #21310
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22726 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 19:58:47 +00:00