Commit Graph

4030 Commits

Author SHA1 Message Date
Mark Jaquith e0a0e46abd First pass at removing Post Format UI.
see #24452. fixes #24455.

git-svn-id: https://develop.svn.wordpress.org/trunk@24388 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-30 21:33:46 +00:00
Sergey Biryukov de68a37dc4 Avoid 'Only variables should be assigned by reference' warnings during installation. props sunnyratilal. fixes #24438.
git-svn-id: https://develop.svn.wordpress.org/trunk@24381 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-28 17:06:39 +00:00
Sergey Biryukov e210a7f280 Remove unnecessary esc_attr() call and redundant title attributes. props zeo. fixes #24437.
git-svn-id: https://develop.svn.wordpress.org/trunk@24380 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-28 04:53:46 +00:00
Sergey Biryukov fbdb577df0 Fix E_STRICT notice in WP_MS_Themes_List_Table::single_row(). fixes #24356.
git-svn-id: https://develop.svn.wordpress.org/trunk@24379 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-28 04:10:10 +00:00
Sergey Biryukov 0df3ab62a7 Fix E_STRICT notice in wp_get_popular_importers(). see #24356.
git-svn-id: https://develop.svn.wordpress.org/trunk@24378 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-28 03:53:59 +00:00
Sergey Biryukov 0abc45b90f Fix E_STRICT notices in walkers. props dvarga. see #24356.
git-svn-id: https://develop.svn.wordpress.org/trunk@24377 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-28 03:29:15 +00:00
Mark Jaquith 064451834e Remove unnecessary parenthetical that should have been "e.g." instead of "i.e." anyway.
see #23119

git-svn-id: https://develop.svn.wordpress.org/trunk@24356 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-25 16:52:26 +00:00
Sergey Biryukov 71bb15b4c9 Remove unused variable. props zeo. fixes #24412.
git-svn-id: https://develop.svn.wordpress.org/trunk@24346 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-24 16:50:50 +00:00
Andrew Nacin c4ee22898d Remove use of global $id from comment_form() and the media list table. see #24330.
git-svn-id: https://develop.svn.wordpress.org/trunk@24337 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-23 18:40:16 +00:00
Sergey Biryukov df63c08216 Use numbered placeholders. see #24389.
git-svn-id: https://develop.svn.wordpress.org/trunk@24327 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-22 21:26:36 +00:00
Andrew Nacin 56b03bc118 Remove /extend/ from URLs to wordpress.org/plugins, /themes, and /mobile, as those are all now top-level. see #24389.
git-svn-id: https://develop.svn.wordpress.org/trunk@24320 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-22 21:01:57 +00:00
Andrew Ozz d67790d7eb Add more specific error messages when upgrading themes and plugins and the package cannot be extracted (no files), props SergeyBiryukov, fixes #24223
git-svn-id: https://develop.svn.wordpress.org/trunk@24313 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-22 16:57:20 +00:00
Andrew Ozz 2700b71b35 Post locks:
- Change from IDs to classes for the notification-dialog divs so they can be reused.
- Do not check post locks if the dialog's html is not present.
- Do not check post locks if there is only one user on a single site install.
See #23697.

git-svn-id: https://develop.svn.wordpress.org/trunk@24304 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-20 19:36:29 +00:00
Ryan Boren 687d1a2ce9 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@24303 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-20 12:10:58 +00:00
Ryan Boren 6f80083f14 Display the post format UI when there is structured data associated with the post regardless of the screen option.
Props kovshenin
see #24327


git-svn-id: https://develop.svn.wordpress.org/trunk@24282 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-17 15:12:50 +00:00
Ryan Boren 3506db6e1c Don't show both "update failed" and "update successful" messages when upgrading a theme fails due to connectivity problems.
Props SergeyBiryukov
fixes #23027


git-svn-id: https://develop.svn.wordpress.org/trunk@24276 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-16 12:46:36 +00:00
Andrew Ozz e4f73af495 Separate the nonces update from checking the post lock. Fix scheduling the logged out check. See #23697, see #23295.
git-svn-id: https://develop.svn.wordpress.org/trunk@24273 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-16 03:47:09 +00:00
Sergey Biryukov 5b3dc65c14 Add file header to post-formats.php. props DrewAPicture. fixes #24349.
git-svn-id: https://develop.svn.wordpress.org/trunk@24267 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-15 23:14:45 +00:00
Andrew Ozz 22b2023e4b Fix showing and hiding of UI elements when disabling the Post Formats UI, props kovshenin, see #24327
git-svn-id: https://develop.svn.wordpress.org/trunk@24264 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-15 20:43:09 +00:00
Dominik Schilling (ocean90) a5ab9e5dca Revisions: Correct check for ensuring comparison always from newer to older revision. props adamsilverstein. fixes #24340.
git-svn-id: https://develop.svn.wordpress.org/trunk@24263 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-15 19:09:39 +00:00
Dominik Schilling (ocean90) f2b66aafbd RTL support for the new post Format UI. see #24326.
git-svn-id: https://develop.svn.wordpress.org/trunk@24258 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-14 19:01:57 +00:00
Ryan Boren fea88ce184 phpdoc improvements for wp_dashboard_quota()
Props DrewAPicture, h4ck3rm1k3


git-svn-id: https://develop.svn.wordpress.org/trunk@24246 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-14 12:37:30 +00:00
Andrew Nacin da0a46d405 Pass blog_id to the wpmu_drop_tables filter. props mitchoyoshitaka. see #24320.
git-svn-id: https://develop.svn.wordpress.org/trunk@24245 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-11 21:58:40 +00:00
Sergey Biryukov d75c52e120 Prevent menu items with '0' label from being removed on menu saving. props MikeHansenMe, kovshenin. fixes #23051.
git-svn-id: https://develop.svn.wordpress.org/trunk@24235 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-10 18:03:09 +00:00
Sergey Biryukov 6c2631f1ca Display consistent labels in Image post format UI for users with and without unfiltered_html capability. props tollmanz. fixes #24304. see #24291.
git-svn-id: https://develop.svn.wordpress.org/trunk@24232 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-10 14:41:58 +00:00
Sergey Biryukov c57e761ce5 Remove debug cruft. props kovshenin. see #23930.
git-svn-id: https://develop.svn.wordpress.org/trunk@24231 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-10 12:26:46 +00:00
Sergey Biryukov cb45a6cb79 Use esc_textarea(), not esc_html(), for escaping textarea content. props johnbillion. fixes #24300.
git-svn-id: https://develop.svn.wordpress.org/trunk@24230 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-10 02:06:34 +00:00
Sergey Biryukov 2b1420456d Fix typos in phpdoc. props TheLastCicada. fixes #24302.
git-svn-id: https://develop.svn.wordpress.org/trunk@24229 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-10 01:39:30 +00:00
Sergey Biryukov 1e66ba73ed Use correct escaping function. props tollmanz. fixes #24300.
git-svn-id: https://develop.svn.wordpress.org/trunk@24228 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-09 23:53:24 +00:00
Mark Jaquith 31c316214a Improve the UX and flow of the Image post format.
* Drag-and-drop
* Textarea for HTML/URL hidden to start
* Bigger click target for entering Media modal
* Image preview height-contrained to 300 pixels
* Hid the alignment, size, etc options that didn't have an effect anyway
* Got wp-format-{format} into the <body> class

props DrewAPicture, aaroncampbell, markjaquith, azaozz. see #24291.

git-svn-id: https://develop.svn.wordpress.org/trunk@24226 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-09 22:45:14 +00:00
Sergey Biryukov 7cf933b2c9 * Pass ellipsis as a parameter to wp_html_excerpt() instead of appending it manually.
* Consolidate the logic to avoid appending ellipsis if the entire string is shown.
* Show ellipsis after truncated filenames and post titles.

props solarissmoke, bpetty, SergeyBiryukov. fixes #11446.

git-svn-id: https://develop.svn.wordpress.org/trunk@24214 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-09 00:22:02 +00:00
Sergey Biryukov a21af7c29f Use wp_trim_words() in Recent Drafts widget. fixes #24292.
git-svn-id: https://develop.svn.wordpress.org/trunk@24212 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-08 23:06:41 +00:00
Andrew Ozz 701a2d23f9 Post locks and autosave:
- Move nonces refreshing from autosave to lock checking.
- Do autosave only when there is something to save.
See #23295

git-svn-id: https://develop.svn.wordpress.org/trunk@24209 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-08 22:52:55 +00:00
Sergey Biryukov bb2a27be5b Use ellipsis instead of three dots. props tjsingleton, jordie23, wojtek.szkutnik, DrewAPicture, SergeyBiryukov. see #8714.
git-svn-id: https://develop.svn.wordpress.org/trunk@24207 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-08 21:27:31 +00:00
Mark Jaquith cf2a8e08d2 Ensure that draft posts cannot be given a non-unique post slug when using Quick Edit.
fixes #22902. props SergeyBiryukov.

git-svn-id: https://develop.svn.wordpress.org/trunk@24206 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-08 21:26:17 +00:00
Dominik Schilling (ocean90) 0b5b837917 Revisions UI: RTL support. (And inline docs.)
props DrewAPicture, adamsilverstein. fixes #23897.

git-svn-id: https://develop.svn.wordpress.org/trunk@24205 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-08 21:22:01 +00:00
Mark Jaquith 3ddb5cb066 Go back to plain text diffs between revisions instead of attempting partial rendering.
fixes #24254

git-svn-id: https://develop.svn.wordpress.org/trunk@24192 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-07 20:34:58 +00:00
Andrew Nacin 7a9f91869e Fix usage of undeclared variables.
* the_weekday_date() needs the global $currentday
 * ms_site_check() needs the global $current_site
 * media list table does not need to check for $total_orphans
 * upgrader has no $feedback variable, appears to be copypasta from other upgrade APIs
 * install_themes_feature_list() has no $features variable, return array() instead of a new return type of WP_Error

see #24210.



git-svn-id: https://develop.svn.wordpress.org/trunk@24189 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-07 16:35:03 +00:00
Andrew Nacin 06507af832 remove_filter() only accepts three arguments: filter, callback, and priority. An accepted args parameter is only used for adds.
props rlerdorf.
see #24210.



git-svn-id: https://develop.svn.wordpress.org/trunk@24188 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-07 15:55:31 +00:00
Andrew Nacin 7e9ed03bd1 Remove manual printing of userSettings as utils.js receives this as inline script data (since 3.5). see #24210.
git-svn-id: https://develop.svn.wordpress.org/trunk@24187 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-07 15:49:20 +00:00
Sergey Biryukov 3edcfbd798 Update the instructions on Edit Menus screen. props DrewAPicture. fixes #24261.
git-svn-id: https://develop.svn.wordpress.org/trunk@24185 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-07 14:55:14 +00:00
Ryan Boren 63c3307f28 Update some copy in the Post Formats UI.
see #24227


git-svn-id: https://develop.svn.wordpress.org/trunk@24184 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-07 13:56:07 +00:00
Sergey Biryukov 2b666b1ef8 Avoid PHP notices in Media Library if an attachment parent does not exist. props trepmal, viniciusmassuchetto, alex-ye, adamsilverstein for initial patches. fixes #22312. fixes #23154.
git-svn-id: https://develop.svn.wordpress.org/trunk@24182 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-07 11:46:35 +00:00
Dominik Schilling (ocean90) 3e0f930659 Revisions: Mark deprecated arguments in `wp_list_post_revisions()`.
* Second argument is now a string, which controls the revision type
* Back compat for $args['type']
* Remove lines for the old form-table format, since it's now just a list 

props a.hoereth. fixes #24213.

git-svn-id: https://develop.svn.wordpress.org/trunk@24175 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-04 12:54:00 +00:00
Dominik Schilling (ocean90) 67d2cfeb89 Revisions UI: Add translation contexts and remove unneeded lines.
props nao. fixes #23917.

git-svn-id: https://develop.svn.wordpress.org/trunk@24157 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-02 10:12:19 +00:00
Andrew Nacin 3c47a45910 Terms list table:
* Don't call single_row() with an undeclared and unused $taxonomy argument.
 * Don't define optional parameters before required parameters in the _rows() method. Make them required.
 * Move empty( $terms ) check above other operations. This function was improperly returning an else case until [24123].

props rlerdorf.
see #24210.



git-svn-id: https://develop.svn.wordpress.org/trunk@24127 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-29 13:39:28 +00:00
Andrew Nacin 2523656757 delete_user_setting() and remove_action() were getting called with too many args. props rlerdorf. see #24210.
git-svn-id: https://develop.svn.wordpress.org/trunk@24125 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-29 13:25:15 +00:00
Sergey Biryukov ece505b122 Remove redundant echo calls from list tables. Don't mix string concatenation with direct output. see #24210.
git-svn-id: https://develop.svn.wordpress.org/trunk@24123 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-29 01:10:50 +00:00
Mark Jaquith 438f4085f1 Post format UI refresh.
* Post format switcher does not go away after clicking
* Refresh of format switcher style
* Highlighting of active post format
* Prompt text goes under the switcher
* Better animations

see #24046. props wonderboymusic, johnjamesjacoby, aaroncampbell, PeteMall.

Also, because I forgot it on [24006]: props saracannon.

git-svn-id: https://develop.svn.wordpress.org/trunk@24098 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-26 12:22:55 +00:00
Mark Jaquith 3bde819dbe Screen option for Post Format UI.
props nacin. see #23930.

git-svn-id: https://develop.svn.wordpress.org/trunk@24092 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-25 07:28:33 +00:00
Mark Jaquith 9d531ae545 post-new.php?format=X will pre-fill the format, to allow for Post-Format-chosen-first editor jump-starting.
props kovshenin, wonderboymusic. fixes #24116.

git-svn-id: https://develop.svn.wordpress.org/trunk@24081 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-25 02:44:23 +00:00
Andrew Nacin c2dd3036e3 dbDelta: When parsing out the DEFAULT value, avoid being too greedy. props hbanken, fixes #15948.
git-svn-id: https://develop.svn.wordpress.org/trunk@24065 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-22 22:00:50 +00:00
Andrew Nacin 57a7513b56 Remove ancient 'lookup' quicktag from the text editor. This had called up answers.com.
props mboynes, jonbishop, SergeyBiryukov.
fixes #23322.



git-svn-id: https://develop.svn.wordpress.org/trunk@24052 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-22 20:17:25 +00:00
Andrew Nacin 3ebbe1ae51 Revert [23871] - Customize should be added to the menu, but not hacked in as first. see #21413.
git-svn-id: https://develop.svn.wordpress.org/trunk@24048 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-22 19:33:39 +00:00
Andrew Nacin 3fc35855e9 Ensure that the resulting post time is localized after the date is changed. props SergeyBiryukov. fixes #24072.
git-svn-id: https://develop.svn.wordpress.org/trunk@24046 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-22 19:04:02 +00:00
Andrew Ozz 008336ee9c Post locks:
- Show 'Saving revision...' while autosaving after a post has been taken over. Change to 'Your latest changes were saved as a revision.' when autosave completes.
- Make sure a user exists before using $user->display_name.
- Add 'post_lock_text' action for extending the message text.

git-svn-id: https://develop.svn.wordpress.org/trunk@24042 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-22 03:08:51 +00:00
Dominik Schilling (ocean90) 24901103a9 Post Formats: Change post screen icon on selection. props markjaquith. fixes #24140.
git-svn-id: https://develop.svn.wordpress.org/trunk@24039 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-19 22:00:10 +00:00
Mark Jaquith 58ad769e8b Post Formats: use the content body for the body of the Quote post format.
* Searchable, better editing tools
* Less cluttered Post Format UI

props kovshenin, DrewAPicture. see #24009

git-svn-id: https://develop.svn.wordpress.org/trunk@24034 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-18 18:07:58 +00:00
Andrew Nacin e97159bc63 Pass $post to display_post_states filter (in _post_states()).
git-svn-id: https://develop.svn.wordpress.org/trunk@24028 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-18 15:02:30 +00:00
Sergey Biryukov 2fd3b0fa55 Rename some variables for consistency. Remove redundant absint() call. see #24010.
git-svn-id: https://develop.svn.wordpress.org/trunk@24024 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-18 00:40:36 +00:00
Mark Jaquith 177556309d Standardize post format postmeta keys around the ones already used by the Crowd Favorite plugin.
props wonderboymusic. fixes #24010.

git-svn-id: https://develop.svn.wordpress.org/trunk@24021 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-17 20:57:44 +00:00
Dominik Schilling (ocean90) d8bf6c44b3 Revisions: Clean up JavaScript variable names, see #23901.
git-svn-id: https://develop.svn.wordpress.org/trunk@24019 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-17 19:34:21 +00:00
Mark Jaquith 793f27f07e New Post Format UI chooser treatment in response to testing.
* Bigger icons
* Format description under each
* UI hides after choice
* Saving without choosing implies "Standard"
* Helpful text, with "Change format" link

see #24046. props lessbloat, wonderboymusic.

git-svn-id: https://develop.svn.wordpress.org/trunk@24006 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-17 04:08:46 +00:00
Dominik Schilling (ocean90) b3879a543a Revisions UI: Remove the "To:" prefix from the header when viewing a single revision. Also prefix a revision field with a label.
props SergeyBiryukov, adamsilverstein, faishal. fixes #23903.

git-svn-id: https://develop.svn.wordpress.org/trunk@23994 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-15 18:40:17 +00:00
Mark Jaquith 1df1727e55 Only say we accept a raw video/audio embed code for unfiltered_html users.
props wonderboymusic. see #23961

git-svn-id: https://develop.svn.wordpress.org/trunk@23985 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-14 01:21:47 +00:00
Andrew Ozz 8ab406d2fb Fix accidental revert of revisions comparison in [23981]
git-svn-id: https://develop.svn.wordpress.org/trunk@23982 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-13 00:45:47 +00:00
Andrew Ozz 7effedba90 Post locks: make sure we never overwrite a draft when it's locked, clean up wp_ajax_autosave() and make wp-refresh-post-lock a bit more robust, see #23697
git-svn-id: https://develop.svn.wordpress.org/trunk@23981 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-13 00:41:15 +00:00
Mark Jaquith 3f6c7493e7 Use ID3 data for audio and video
fixes #23926. props wonderboymusic, SergeyBiryukov, johnbillion.

git-svn-id: https://develop.svn.wordpress.org/trunk@23979 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-12 22:27:24 +00:00
Andrew Ozz 239ccffe14 Revisions: compare revisions by date in wp_ajax_revisions_data(), deprecate the $parent arg in wp_list_post_revisions() as now revisions always include a copy of the current post, props adamsilverstein, see #23901
git-svn-id: https://develop.svn.wordpress.org/trunk@23975 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-12 19:29:21 +00:00
Sergey Biryukov 021c744c82 Fix typo in upgrade_100(). props tivnet, bpetty. fixes #24020.
git-svn-id: https://develop.svn.wordpress.org/trunk@23949 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-10 16:04:36 +00:00
Sergey Biryukov 99a0fef80c Add alt attribute for selected image. see #19570.
git-svn-id: https://develop.svn.wordpress.org/trunk@23940 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-09 17:12:47 +00:00
Sergey Biryukov db94cf138b Fix inconsistent id attributes. props kovshenin. fixes #24006.
git-svn-id: https://develop.svn.wordpress.org/trunk@23939 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-09 17:08:25 +00:00
Helen Hou-Sandi f7857ce942 Remove unnecessary label, placeholder, and class for a hidden input. see #23938.
git-svn-id: https://develop.svn.wordpress.org/trunk@23931 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-07 16:49:56 +00:00
Andrew Ozz 48dc22b9eb Revisions:
- Store the post format as meta on revisions (including autosaves).
- Add post formats data (post meta) when autosaving.
- Only add non-empty post formats data to revisions.
- Correct the post format when previewing a published post.
Props kovshenin, see #19570, see #20564.


git-svn-id: https://develop.svn.wordpress.org/trunk@23928 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-06 23:18:52 +00:00
Andrew Ozz 7ebe9d62c6 Post formats: connect labels with fields, move the two css blocks dealing with formats next to each other, see #23938
git-svn-id: https://develop.svn.wordpress.org/trunk@23926 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-06 21:40:58 +00:00
Sergey Biryukov c868bd8540 Avoid an undefined index notice in wp_read_video_metadata(). props ocean90. fixes #23953.
git-svn-id: https://develop.svn.wordpress.org/trunk@23923 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-06 00:29:12 +00:00
Helen Hou-Sandi 6fa6b65574 Show labels and remove improperly-used placeholders for post format fields. props Ipstenu, azaozz. see #23938.
git-svn-id: https://develop.svn.wordpress.org/trunk@23918 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-05 02:37:13 +00:00
Andrew Nacin 7ef23da2b0 WP_Upgrader: Add upgrader_process_complete hooks and add a abort_if_destination_exists flag (default is true). props dd32. see #18200.
git-svn-id: https://develop.svn.wordpress.org/trunk@23912 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-04 21:10:54 +00:00
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
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 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
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
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
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
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
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 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 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
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
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