Commit Graph

11824 Commits

Author SHA1 Message Date
Sergey Biryukov
38c5e9a668 Inline documentation for hooks in wp-admin/press-this.php.
props ninio, kpdesign.
fixes #25731.
Built from https://develop.svn.wordpress.org/trunk@26237


git-svn-id: http://core.svn.wordpress.org/trunk@26144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-16 19:13:10 +00:00
Sergey Biryukov
53d47bf514 Remove redundant current_user_can() check. props jeremyfelt. fixes #26057.
Built from https://develop.svn.wordpress.org/trunk@26236


git-svn-id: http://core.svn.wordpress.org/trunk@26143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-16 17:38:11 +00:00
Sergey Biryukov
c7a96bbf29 Use get_current_site() instead of the $current_site global in wp-admin/admin-header.php and is_main_network().
fixes #25158.
Built from https://develop.svn.wordpress.org/trunk@26235


git-svn-id: http://core.svn.wordpress.org/trunk@26142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-16 13:46:10 +00:00
Sergey Biryukov
4e28c278a5 Fix replacement regex in wp-admin/js/nav-menu.js.
props rzen, jeremyfelt.
fixes #26047.
Built from https://develop.svn.wordpress.org/trunk@26233


git-svn-id: http://core.svn.wordpress.org/trunk@26140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-16 07:42:11 +00:00
Andrew Nacin
ef007d1a40 Fix JSHint errors in three files.
props tommcfarlin.
fixes #25942, #25943, #25944.

Built from https://develop.svn.wordpress.org/trunk@26232


git-svn-id: http://core.svn.wordpress.org/trunk@26139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 23:19:09 +00:00
Andrew Nacin
c03d9d3f01 Revert these action blocks in wp-admin/post.php to their pre-[26144] state.
see #25824.

Built from https://develop.svn.wordpress.org/trunk@26231


git-svn-id: http://core.svn.wordpress.org/trunk@26138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 22:29:09 +00:00
Andrew Nacin
791e807f08 More dash updates.
* Shuffle around some pixels.
 * Rename some things that weren't caught in [26220].
 * Revert default-widgets.php change from [26144].
props lessbloat.
see #25824.

Built from https://develop.svn.wordpress.org/trunk@26230


git-svn-id: http://core.svn.wordpress.org/trunk@26137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 22:23:09 +00:00
Matt Thomas
7b06d5b0a9 Move media uploader responsive styles from wp-admin.css to media-views.css; clean up duplicated media queries. See #25977.
Built from https://develop.svn.wordpress.org/trunk@26229


git-svn-id: http://core.svn.wordpress.org/trunk@26136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 21:47:09 +00:00
Andrew Ozz
0395919b11 JSHint fixes for editor.js. Props dougwollison, fixes #25947
Built from https://develop.svn.wordpress.org/trunk@26224


git-svn-id: http://core.svn.wordpress.org/trunk@26131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 21:03:10 +00:00
Matt Thomas
114d47cf18 Make the Install Plugins search results page responsive, so the table doesn't overflow the viewport. Props joen, fixes #25976.
Built from https://develop.svn.wordpress.org/trunk@26223


git-svn-id: http://core.svn.wordpress.org/trunk@26130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 20:59:11 +00:00
Andrew Nacin
963b2aa574 Merge wp_dashboard_recent_quickdrafts() into wp_dashboard_quick_press(). see #25824.
Built from https://develop.svn.wordpress.org/trunk@26221


git-svn-id: http://core.svn.wordpress.org/trunk@26129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 20:40:15 +00:00
Andrew Nacin
2cc8ed1594 Dash cleanup.
* Use wp_add_dashboard_widget() rather than add_meta_box().
 * Use original functions like wp_dashboard_primary(), wp_dashboard_right_now(), wp_dashboard_quick_press() (where possible).
 * Only include plugins section of the news widget when appropriate, which necessitates the set_current_screen() via the ajax action.
 * Remove some debug cruft that was preventing caching and invalidation.
 * Simplify lots of things where possible.
see #25824.

Built from https://develop.svn.wordpress.org/trunk@26220


git-svn-id: http://core.svn.wordpress.org/trunk@26128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 20:15:10 +00:00
Matt Thomas
a9bab73408 Improvements to the media uploader at responsive sizes:
* Change load order so larger breakpoint loads before smaller breakpoint.
* Use absolute positioning rather than floats, to fix some overflow issues.
* Remove the max-height media query so desktop browsers benefit from the responsive styles.
* Reset text inputs to 16px so iOS doesn't force zoom.
* Adjust the position of the close button so it doesn't overlap the Create Gallery link.

See #25977. Props joen.


Built from https://develop.svn.wordpress.org/trunk@26219


git-svn-id: http://core.svn.wordpress.org/trunk@26127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 19:54:10 +00:00
Andrew Nacin
1832d880a5 Sort themes by name on the new themes.php page. see #25948.
Built from https://develop.svn.wordpress.org/trunk@26216


git-svn-id: http://core.svn.wordpress.org/trunk@26124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 16:42:10 +00:00
Andrew Nacin
52ecbebba3 Remove debug cruft. props dimadin. see #25948.
Built from https://develop.svn.wordpress.org/trunk@26215


git-svn-id: http://core.svn.wordpress.org/trunk@26123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 16:40:09 +00:00
Andrew Nacin
4f17571b3f Fix JSHint errors in theme-install.js.
props kovshenin.
fixes #26045.

Built from https://develop.svn.wordpress.org/trunk@26210


git-svn-id: http://core.svn.wordpress.org/trunk@26118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 14:16:08 +00:00
Andrew Nacin
a66b92af4c JSHint fixes for word-count.js and wp-mediaelement.js. see #25187.
Built from https://develop.svn.wordpress.org/trunk@26209


git-svn-id: http://core.svn.wordpress.org/trunk@26117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 06:52:09 +00:00
Andrew Nacin
d7423a466e Residual JSHint fixes in common.js and edit-comments.js.
see #25912, #25979.

Built from https://develop.svn.wordpress.org/trunk@26208


git-svn-id: http://core.svn.wordpress.org/trunk@26116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 06:37:09 +00:00
Andrew Nacin
4e72213373 Fix JSHint errors in customize-controls.js.
props jorbin.
fixes #25917.

Built from https://develop.svn.wordpress.org/trunk@26206


git-svn-id: http://core.svn.wordpress.org/trunk@26114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 06:08:10 +00:00
Andrew Nacin
42dab0d17f Fix JSHint errors in post.js.
props atimmer.
fixes #25994.

Built from https://develop.svn.wordpress.org/trunk@26204


git-svn-id: http://core.svn.wordpress.org/trunk@26112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 05:35:10 +00:00
Andrew Nacin
6292b4c519 Fix JSHint errors in 5 files.
props seanchayes.
fixes #26015, #26020, #26019, #26034, #26022.

Built from https://develop.svn.wordpress.org/trunk@26200


git-svn-id: http://core.svn.wordpress.org/trunk@26108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 05:16:09 +00:00
Andrew Nacin
12acfa4e81 Fix JSHint errors in 3 files.
props atimmer.
fixes #25990, #25993, #26008.

Built from https://develop.svn.wordpress.org/trunk@26199


git-svn-id: http://core.svn.wordpress.org/trunk@26107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 05:12:09 +00:00
Andrew Nacin
8daa128928 Fix JSHint errors in tags.js.
props atimmer.
fixes #26009.

Built from https://develop.svn.wordpress.org/trunk@26198


git-svn-id: http://core.svn.wordpress.org/trunk@26106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 05:02:10 +00:00
Andrew Nacin
7e1bf9f745 Fix JSHint errors in media-upload.js.
props iblamefish.
fixes #26023.

Built from https://develop.svn.wordpress.org/trunk@26196


git-svn-id: http://core.svn.wordpress.org/trunk@26104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 04:53:10 +00:00
Dion Hulse
cd6096c44b Updates: Force an update check to occur when the 'Check Again' button is used in the Dashboard. Fixes #25831
Built from https://develop.svn.wordpress.org/trunk@26192


git-svn-id: http://core.svn.wordpress.org/trunk@26100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 03:04:10 +00:00
Dion Hulse
8d65f7dc7c Updates: When a failed Background Update occurs, only show the failed update nag if the user hasn't yet updated if it was an early abort. Props SergeyBiryukov. Fixes #25887 for trunk
Built from https://develop.svn.wordpress.org/trunk@26186


git-svn-id: http://core.svn.wordpress.org/trunk@26095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 02:31:11 +00:00
Helen Hou-Sandí
a9c3558df2 We only need to declare Open Sans once in wp-admin.css. See #25858.
Built from https://develop.svn.wordpress.org/trunk@26185


git-svn-id: http://core.svn.wordpress.org/trunk@26094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 00:15:11 +00:00
Matt Thomas
35557b1393 Fixing some inconsistent behavior on toolbar icons:
- Use .ab-icon:before, .ab-item:before, and #adminbarsearch:before to select all toolbar icons.
- Rewrite the selector for toolbar icon hover styles so they're not overridden by default colors.
- Add #adminbarsearch:before to color schemes, so its icon color is changed with the others.
- Remove duplicate color rule on #adminbarsearch:before.

See #25858.


Built from https://develop.svn.wordpress.org/trunk@26184


git-svn-id: http://core.svn.wordpress.org/trunk@26093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-15 00:09:10 +00:00
Andrew Nacin
ae1710882c Clean up wp-admin/index.php after dash merge. see #25824.
Built from https://develop.svn.wordpress.org/trunk@26183


git-svn-id: http://core.svn.wordpress.org/trunk@26092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 23:59:09 +00:00
Helen Hou-Sandí
70330d468c Remove now-unused #adminmenushadow. see #25858.
Built from https://develop.svn.wordpress.org/trunk@26182


git-svn-id: http://core.svn.wordpress.org/trunk@26091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 23:49:10 +00:00
Matt Thomas
5542f1c515 Color schemes should use .ab-icon:before instead of .ab-item:before to target adminbar icons. See #25858.
Built from https://develop.svn.wordpress.org/trunk@26181


git-svn-id: http://core.svn.wordpress.org/trunk@26090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 23:46:10 +00:00
Matt Thomas
a71ffcfd24 Move the color rule for adminbar icons to a less-specific selector so that color schemes correctly affect icon color in the toolbar.
Built from https://develop.svn.wordpress.org/trunk@26180


git-svn-id: http://core.svn.wordpress.org/trunk@26089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 23:30:10 +00:00
Matt Thomas
922227d137 Reduce responsive menu transition animation from .2s to .05s to reduce lag. See #25969.
Built from https://develop.svn.wordpress.org/trunk@26179


git-svn-id: http://core.svn.wordpress.org/trunk@26088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 23:13:10 +00:00
Matt Thomas
8235710c41 In multisite, set storage space labels to nowrap to prevent unnecessary line breaks. Fixes #25919, props SergeyBiryukov.
Built from https://develop.svn.wordpress.org/trunk@26178


git-svn-id: http://core.svn.wordpress.org/trunk@26087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 22:48:10 +00:00
Matt Thomas
10878d8422 Move the responsive padding for html.wp-toolbar to wp-admin.css since it affects the page content, not the toolbar.
Built from https://develop.svn.wordpress.org/trunk@26177


git-svn-id: http://core.svn.wordpress.org/trunk@26086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 22:43:10 +00:00
Matt Thomas
ce8be8ec8b Move #wpadminbar responsive styles from wp-admin.css to admin-bar.css. Remove unneeded font overrides and !importants where possible. Make sure the site menu item uses the globe icon consistently instead of switching to the home icon <782px. Fixes #25971.
Built from https://develop.svn.wordpress.org/trunk@26176


git-svn-id: http://core.svn.wordpress.org/trunk@26085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 22:37:09 +00:00
Andrew Nacin
b70b7a0ee1 More specific CSS for the dashboard activity widget.
props iammattthomas.
see #26028.

Built from https://develop.svn.wordpress.org/trunk@26175


git-svn-id: http://core.svn.wordpress.org/trunk@26084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 22:11:10 +00:00
Andrew Nacin
10858d38b0 JSHint and coding style fixes for xfn.js.
props dougwollison.
fixes #26030.

Built from https://develop.svn.wordpress.org/trunk@26174


git-svn-id: http://core.svn.wordpress.org/trunk@26083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 21:58:10 +00:00
Matt Thomas
a41f3f9bb3 Make the menu location screen full-width at responsive sizes. Fixes #25975, props johnbillion.
Built from https://develop.svn.wordpress.org/trunk@26173


git-svn-id: http://core.svn.wordpress.org/trunk@26082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 20:43:11 +00:00
Matt Thomas
959adbf9f4 In bulk editing mode, make all columns full-width and increase the font size when at responsive sizes. Fixes #25978, props johnbillion.
Built from https://develop.svn.wordpress.org/trunk@26172


git-svn-id: http://core.svn.wordpress.org/trunk@26081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 20:41:10 +00:00
Matt Thomas
46c9c4f33f Add a :disabled style for radio inputs and checkboxes. Fixes #26004.
Built from https://develop.svn.wordpress.org/trunk@26170


git-svn-id: http://core.svn.wordpress.org/trunk@26079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 19:46:10 +00:00
Andrew Ozz
188fce6c9b Heartbeat: clean up code style, better naming, better code structure. Props carldanley, props evansolomon.
Changes:
- Add connectNow() public method to trigger a connection immediately.
- Remove the "skipping" when no data to send.
- Change the default interval to 60 sec.
- Fix resetting the next connection time when changing the interval.
See #25073.
Built from https://develop.svn.wordpress.org/trunk@26169


git-svn-id: http://core.svn.wordpress.org/trunk@26078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 18:41:10 +00:00
Andrew Nacin
c962236312 Fix JSHint errors in postbox.js.
props atimmer.
fixes #26006.

Built from https://develop.svn.wordpress.org/trunk@26167


git-svn-id: http://core.svn.wordpress.org/trunk@26077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 18:10:09 +00:00
Helen Hou-Sandí
7598382a67 Remove old control/accordion section title gradients that were still appearing in the customizer and reinstate a divider between the customizer sidebar and the preview. props ryelle, helen. see #25858.
Built from https://develop.svn.wordpress.org/trunk@26165


git-svn-id: http://core.svn.wordpress.org/trunk@26076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 16:42:10 +00:00
Dion Hulse
9109f107c4 Bacground Updates: Move the 'automatic_updates_complete' hook to only fire when some updates have actually been completed. Props nacin. Fixes #25841
Built from https://develop.svn.wordpress.org/trunk@26164


git-svn-id: http://core.svn.wordpress.org/trunk@26075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 06:29:09 +00:00
Andrew Nacin
2c1ccede9d Fix JSHint errors in nav-menu.js.
props atimmer.
fixes #25953.

Built from https://develop.svn.wordpress.org/trunk@26163


git-svn-id: http://core.svn.wordpress.org/trunk@26074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 06:09:11 +00:00
Andrew Nacin
118caf7373 Fix JSHint errors (again) for revisions.js.
props adamsilverstein.
fixes #25955.

Built from https://develop.svn.wordpress.org/trunk@26162


git-svn-id: http://core.svn.wordpress.org/trunk@26073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 05:56:09 +00:00
Andrew Nacin
5468d53024 Fix JSHint errors in custom-header.js and custom-background.js.
props jorbin.
fixes #25915, #25916.

Built from https://develop.svn.wordpress.org/trunk@26158


git-svn-id: http://core.svn.wordpress.org/trunk@26069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 05:40:11 +00:00
Andrew Nacin
97eff9117b JSHint: Make commentReply a declared global from elsewhere.
props adamsilverstein.
see #25979, [26156].

Built from https://develop.svn.wordpress.org/trunk@26157


git-svn-id: http://core.svn.wordpress.org/trunk@26068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 05:30:09 +00:00
Andrew Nacin
47559f45bf Avoid jshint errors in edit-comment.js.
props adamsilverstein.
fixes #25979.

Built from https://develop.svn.wordpress.org/trunk@26156


git-svn-id: http://core.svn.wordpress.org/trunk@26067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-14 05:10:10 +00:00