Commit Graph

27232 Commits

Author SHA1 Message Date
Drew Jaynes (DrewAPicture) 51e97631f8 General inline documentation improvements in wp-includes/post.php.
Third-run. See #25412.


git-svn-id: https://develop.svn.wordpress.org/trunk@29093 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 10:27:02 +00:00
Drew Jaynes (DrewAPicture) 479b541dd1 General inline documentation improvements in wp-includes/post.php.
Second-run. See #25412.


git-svn-id: https://develop.svn.wordpress.org/trunk@29092 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 08:15:52 +00:00
Drew Jaynes (DrewAPicture) 628141afbf Convert phpDoc for `register_post_type()` to use a hash notation for the `$args` array.
See #25412.


git-svn-id: https://develop.svn.wordpress.org/trunk@29091 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 07:55:38 +00:00
Drew Jaynes (DrewAPicture) c7171e832d General inline documentation improvements in wp-includes/post.php.
First-run. See #25412.


git-svn-id: https://develop.svn.wordpress.org/trunk@29090 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 07:00:38 +00:00
Scott Taylor d75a332871 Media Grid:
* Don't store multiple references to the Edit Attachments frame.
* Fix keyboard navigation event delegation and proxy.
* Remove redundant function calls.

See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29089 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 06:38:51 +00:00
Scott Taylor 0f50df6cbd Media Grid, in the Edit Attachment modal:
* Label the fields under the attachment a la the Edit Media page
* Move the audio and video previews above the info
* Remove the audio / video icon display. Unnecessary.
* Ensure that `width` and `max-width` are set for `.mejs-container`

See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29088 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 06:14:31 +00:00
Scott Taylor aba2e372e0 Media Grid: "Add New" should open and close, not just open.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29087 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 05:43:26 +00:00
Scott Taylor ce01c5c760 Media Grid:
* Move the grid down via CSS transition when the Screen Options slide open.
* Remove some unused CSS for grid options.

See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29086 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 05:33:29 +00:00
Scott Taylor e52c72c366 Media Grid:
* The "Edit Image" link in the attachment modal details is redundant.
* After an attachment is deleted in the modal, automatically move to the next attachment in the library. If there are no attachments left, close the modal.

See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29085 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 05:21:04 +00:00
Scott Taylor aab0ba36fc Media Grid: fix z-index of attachment "check"
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29084 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 04:24:00 +00:00
Sergey Biryukov d2a246e82c Avoid inadvertently adding admin page titles as classes for admin menu submenu items.
fixes #28817.

git-svn-id: https://develop.svn.wordpress.org/trunk@29083 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 01:09:32 +00:00
Scott Taylor ba7b26d37e Media Grid: make the Uploader closable.
Props ericlewis.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29082 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 23:05:05 +00:00
Scott Taylor 640422c206 Media Grid: while in Bulk Edit mode, any selected attachment should have the blue border, rather than just the last clicked one.
Props ericlewis.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29081 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 23:02:51 +00:00
Scott Taylor b31d654816 Media Grid: JSHint.
See #24716.



git-svn-id: https://develop.svn.wordpress.org/trunk@29080 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 21:58:10 +00:00
Scott Taylor ee0e7ccbca Media Grid: make registering Screen Options for non-list tables more generic.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29079 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 21:43:49 +00:00
Scott Taylor d5cbf00457 Media Grid: Screen Options for grid have to play nice with Screen Options for list. This was fun.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29078 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 21:25:49 +00:00
Scott Taylor 3ebde0c4d6 Media Grid: Move toggling of visible fields to Screen Options. This moves us in a better direction... but this will probably need to be massaged again.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29077 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 20:59:12 +00:00
Scott Taylor 55acbf6e40 Media Grid: decouple the Grid and Edit modal frames. Next steps: we shouldn't have to reload the frame while paginating.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29076 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 19:38:56 +00:00
Helen Hou-Sandi e4f0744b8e Editor scrolling:
* Make sure the background color for tools is only applied to the main editor.
* Fix toolbar width for smaller screens.
* Ensure toolbar doesn't end up in a weird place when scrolling down too fast.
* Avoid JS errors for post types that don't support the editor.

props avryl. see #28328.


git-svn-id: https://develop.svn.wordpress.org/trunk@29075 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 19:35:32 +00:00
Scott Taylor 12204b379a Media Grid: add disambiguation between generic frames and routers and the router specifically interacting with the grid's frame.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29074 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 18:42:15 +00:00
Scott Taylor d45ed6a478 Media Grid: make the router work when `?item=` is in the URL on page load. This is still a hack, needs to be event-driven.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29073 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 18:24:23 +00:00
Scott Taylor 3c9fa4d68e Media Grid: `hasNext` and `hasPrevious` are functions that must be called. Otherwise they are always truthy properties.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29072 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 18:09:46 +00:00
Scott Taylor e8ce4559ed Avoid JS errors after [29057]. This is not how `_.debounce()` works.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29071 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 18:02:53 +00:00
Scott Taylor 5b6340a221 Avoid JS errors after [29057]. When the modal closes, reset the URL.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29070 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 17:55:43 +00:00
Scott Taylor f2e2f4c19c Avoid JS errors after [29057].
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29069 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 17:50:49 +00:00
Scott Taylor 6d64d05018 Avoid JS errors after [29057].
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29068 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 17:48:09 +00:00
Scott Taylor e91f5a7601 Media Grid, add padding to "No Media Found" message.
Props michalzuber.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29067 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 17:30:35 +00:00
Scott Taylor b11d095c7d Media Grid, remove unnecessary abstraction: `wp.media.controller._State`
Props ericlewis.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29066 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 16:01:49 +00:00
Scott Taylor 868d88800c Media Grid: make the edit attachment icon clickable.
Props ericlewis.
See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29065 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 15:55:21 +00:00
Sergey Biryukov 126b248fa0 is_active_widget() should skip orphaned widgets.
props Ninos Ego.
fixes #28810.

git-svn-id: https://develop.svn.wordpress.org/trunk@29064 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 15:48:54 +00:00
Peter Westwood 52aa1804e4 XMLRPC: Restore support in wp.newPost for dates to be supplied in the structured dateTime.iso8601 format as well as still supporting dates specified as strings.
Fixes #28601.


git-svn-id: https://develop.svn.wordpress.org/trunk@29063 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 14:16:20 +00:00
Peter Westwood c89afd5a59 XMLRPC: Extend the test cases from [28854] so that we also test valid date based strings. See #28601.
git-svn-id: https://develop.svn.wordpress.org/trunk@29062 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 14:05:22 +00:00
Peter Westwood 24852d4305 XMLRPC: Improve the test case from [28854] so that it truely tests an invalid date string like the test name implies. See #28601.
git-svn-id: https://develop.svn.wordpress.org/trunk@29061 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 13:55:46 +00:00
Helen Hou-Sandi f9b9039b79 4.0-beta1.
git-svn-id: https://develop.svn.wordpress.org/trunk@29060 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 09:59:31 +00:00
Andrew Nacin 0838b61b1d Unload the current default textdomain in wp_install_load_language().
see #28577.


git-svn-id: https://develop.svn.wordpress.org/trunk@29059 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 09:54:06 +00:00
Andrew Nacin 253e09f192 Install: Don't ask for the user's language a second time if they chose English originally.
see #28577.


git-svn-id: https://develop.svn.wordpress.org/trunk@29058 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 09:24:55 +00:00
Helen Hou-Sandi 466659cee6 Media grid attachment modal:
* Keyboard navigation.
* History and routes for single items and search results.

props adamsilverstein. see #24716.



git-svn-id: https://develop.svn.wordpress.org/trunk@29057 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 06:36:34 +00:00
Helen Hou-Sandi 2e0c881d54 Media grid:
* Introduce the concept of bulk editing via a separate mode. Like the list view, only bulk deleting is available. The UI is a little funky, especially with the field display toggles there, but refinements will come.
* Up the max thumbnail size from 120px to 150px.
* Slide-down panel for the add new uploader. Known issue: it doesn't close again.
* Remove the toolbar region in the EditAttachment frame.
* Defer a function call so the grid fills available space.
* Give feedback when no results are found. Also needs styling.

props ericlewis. see #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@29056 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 03:49:28 +00:00
Helen Hou-Sandi 72730d86dd Better styling for the larger image preview in the attachment details modal. Portrait images still have problems in Firefox due to percentage height. props mikeyarce for the initial patch. see #28800, #24716.
git-svn-id: https://develop.svn.wordpress.org/trunk@29055 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 01:44:20 +00:00
Sergey Biryukov c35bd6c927 Revisions: Properly position the spinner on Compare Revisions screen.
props vinod dalvi for initial patch.
fixes #28590.

git-svn-id: https://develop.svn.wordpress.org/trunk@29054 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 01:43:59 +00:00
Helen Hou-Sandi 6afe00e338 Use a more generic selector for image editor in media modal styling so that the Media Grid modal also gets it. see #24716.
git-svn-id: https://develop.svn.wordpress.org/trunk@29053 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 01:23:41 +00:00
Sergey Biryukov ca97e64c50 Revisions: Explicitly set the 'from' handle position when switching from two-handled mode back to single-handled mode.
props adamsilverstein.
fixes #26793.

git-svn-id: https://develop.svn.wordpress.org/trunk@29052 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 00:59:13 +00:00
Sergey Biryukov 1477277b53 Customizer: Introduce WP_Customize_Control::active() method to determine whether the control is relevant to the current context (i.e. to the current URL being previewed).
Control can indicate its active state by a subclass overriding the 'active_callback' method, by supplying a callable 'active_callback' argument into the control's constructor, or by filtering 'customize_control_active'.

props westonruter.
see #27993.

git-svn-id: https://develop.svn.wordpress.org/trunk@29051 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 23:57:29 +00:00
Andrew Ozz ccef0ae5f0 Fix whitespace, quotes and double patch content in wpautoresize plugin, see #28328
git-svn-id: https://develop.svn.wordpress.org/trunk@29050 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 22:42:28 +00:00
Andrew Ozz 14d1e57e99 Enhance the editor on the Add/Edit Post screens, first run. Props avril, see #28328.
git-svn-id: https://develop.svn.wordpress.org/trunk@29049 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 22:05:06 +00:00
Sergey Biryukov f92dc5aa41 Customizer: Export Previewer instance to wp.customize.previewer, and utilize for Widget Customizer.
props westonruter.
fixes #27666.

git-svn-id: https://develop.svn.wordpress.org/trunk@29048 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 20:57:58 +00:00
Helen Hou-Sandi 2a5fa0e4c5 Display plugin install results as "cards" rather than in a list table, first run.
props stephdau, ryelle, tellyworth, melchoyce. see #28785, #28646.



git-svn-id: https://develop.svn.wordpress.org/trunk@29047 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 20:01:35 +00:00
John Blackbourn a8fa7036aa Revert [29033] pending further discussion. See #28319.
git-svn-id: https://develop.svn.wordpress.org/trunk@29046 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 19:18:44 +00:00
Andrew Nacin adbe839132 WP_Comment_Query: Add fields => 'ids' query var.
props mordauk.
fixes #28434.


git-svn-id: https://develop.svn.wordpress.org/trunk@29045 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 18:15:42 +00:00
Scott Taylor 3cda5caafd Revert [28563]. See #18298.
git-svn-id: https://develop.svn.wordpress.org/trunk@29044 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 18:06:54 +00:00