Konstantin Obenland
68588821c3
Dashboard: Community events formatting improvements
...
Props Soean.
See #40702 .
Built from https://develop.svn.wordpress.org/trunk@40669
git-svn-id: http://core.svn.wordpress.org/trunk@40532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-15 09:44:43 +00:00
Rachel Baker
580cf33c81
Taxonomy: Remove extraneous '
included in Term delete markup.
...
Unmatched single quotation mark after the delete link href was introduced in r40655.
Props Chouby.
Fixes #9777 .
Built from https://develop.svn.wordpress.org/trunk@40668
git-svn-id: http://core.svn.wordpress.org/trunk@40531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-14 19:50:44 +00:00
Weston Ruter
3ce794812d
Widgets: Fix deferred rendering of controls for media widgets until container element fully expands.
...
Adds omitted call to `renderWhenAnimationDone()` which was missed when this code was copied from the Text widget.
Amends [40656].
See #40750 .
Built from https://develop.svn.wordpress.org/trunk@40660
git-svn-id: http://core.svn.wordpress.org/trunk@40523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 22:01:42 +00:00
Adam Silverstein
cb2eac9e06
Users: Update name in toolbar when changing user display name.
...
When changing the user name in Users -> Your Profile, update the name displayed in the toolbar dynamically using JavaScript.
Props menakas, lukecavanagh, maguiar.
Fixes #40342 .
Built from https://develop.svn.wordpress.org/trunk@40657
git-svn-id: http://core.svn.wordpress.org/trunk@40520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 20:06:42 +00:00
Weston Ruter
020ffded1a
Widgets: Defer rendering controls for media widgets until container element fully expands.
...
Fixes issue with MediaElement.js failing to build the player in an animating container that doesn't have established dimensions.
Also utilizes MediaElement.js for the video widget instead of using a native player.
See #32417 .
Fixes #40750 .
Built from https://develop.svn.wordpress.org/trunk@40656
git-svn-id: http://core.svn.wordpress.org/trunk@40519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 19:56:43 +00:00
Adam Silverstein
d1ec180619
Taxonomy: Add a "delete" button on term edit page.
...
Add a 'delete' link next to the update button on the term edit screen so you can delete a term while you are reviewing it's details.
Props cklosows, bradt, ocean90, johnbillion, DrewAPicture, ryan, MatheusGimenez, maguiar.
Fixes #9777 .
Built from https://develop.svn.wordpress.org/trunk@40655
git-svn-id: http://core.svn.wordpress.org/trunk@40518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 19:26:41 +00:00
Andrea Fercia
705ecf3312
Customize: Make the media control buttons natural-width.
...
Natural-width buttons are better for translations, and don't feel as
overpowering as the half-width (and full-width) buttons.
Props melchoyce, timmydcrawford, afercia.
Fixes #40220 .
Built from https://develop.svn.wordpress.org/trunk@40653
git-svn-id: http://core.svn.wordpress.org/trunk@40516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 17:50:44 +00:00
Konstantin Obenland
7328d561b1
Dashboard: Persist location for community events
...
Fixes a bug where cached events & location data was not accessible because the
cache key could not be regenerated without latitude and longitude information.
Discovered and fixed during #wcber contributor day.
Props soean, kubik-rubik, obenland.
See #40702 .
Built from https://develop.svn.wordpress.org/trunk@40651
git-svn-id: http://core.svn.wordpress.org/trunk@40514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 15:53:46 +00:00
Andrea Fercia
8a07db035d
Add missing semicolons after [40646].
...
See #40453 .
Built from https://develop.svn.wordpress.org/trunk@40648
git-svn-id: http://core.svn.wordpress.org/trunk@40511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 07:05:41 +00:00
Andrea Fercia
55b6ee7e56
Media: Clean-up some MediaElementJS CSS: no more needed after [40642].
...
See #40707 , #32417 , #39994 , #39995 , #30281 .
Built from https://develop.svn.wordpress.org/trunk@40647
git-svn-id: http://core.svn.wordpress.org/trunk@40510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 07:00:45 +00:00
Andrea Fercia
bab7eb143e
Accessibility: Change the "Show details" links in the update core screen to buttons.
...
These controls toggle the visibility of the update progress: they perform an action
therefore they should be buttons. Also:
- uses `aria-expanded` to communicate the toggle button state
- removes some inline JavaScript
- when clicking the toggle buttons, the progress details get moved with JavaScript after the button: this helps users of assistive technologies in finding them and makes the UI a bit more intuitive
Props Cheffheid, afercia.
See #26504 .
Fixes #40453 .
Built from https://develop.svn.wordpress.org/trunk@40646
git-svn-id: http://core.svn.wordpress.org/trunk@40507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 23:50:41 +00:00
Andrea Fercia
274596b8ef
Accessibility: Add "(opens in a new window)" screen reader text to the "News-Nearby Events" dashboard widget footer links.
...
- standardizes similar messages in core to always use `(opens in a new window)`
- adds translators comments
- hides the dashicons with `aria-hidden="true"`, see #40428
Fixes #40733 .
Built from https://develop.svn.wordpress.org/trunk@40643
git-svn-id: http://core.svn.wordpress.org/trunk@40504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 22:47:41 +00:00
Weston Ruter
26a5058f43
Widgets: Utilize WP REST API oEmbed proxy endpoint in media widgets.
...
Props timmydcrawford.
See #32417 , #40450 .
Built from https://develop.svn.wordpress.org/trunk@40641
git-svn-id: http://core.svn.wordpress.org/trunk@40502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 21:24:42 +00:00
Weston Ruter
31d4d81039
Widgets: Introduce media widgets for images, audio, and video with extensible base for additional media widgets in the future.
...
The last time a new widget was introduced, Vuvuzelas were a thing, Angry Birds started taking over phones, and WordPress stopped shipping with Kubrick. Seven years and 17 releases without new widgets have been enough, time to spice up your sidebar!
Props westonruter, melchoyce, obenland, timmydcrawford, adamsilverstein, gonom9, wonderboymusic, Fab1en, DrewAPicture, sirbrillig, joen, matias, samikeijonen, afercia, celloexpressions, designsimply, michelleweber, ranh, kjellr, karmatosed.
Fixes #32417 , #39993 , #39994 , #39995 .
Built from https://develop.svn.wordpress.org/trunk@40640
git-svn-id: http://core.svn.wordpress.org/trunk@40501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 21:11:44 +00:00
Pascal Birchler
33047ba14e
Upgrade/Install: After [40394], rename wp_disallow_file_mods()
to wp_is_file_mod_allowed()
.
...
This makes it more clear what this function is about.
Props Mte90.
Fixes #38673 .
Built from https://develop.svn.wordpress.org/trunk@40638
git-svn-id: http://core.svn.wordpress.org/trunk@40499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:24:41 +00:00
Pascal Birchler
9af735e863
Themes: Avoid PHP warnings in the admin when no theme directory exists.
...
Props iseulde, chris_dev, swissspidy.
Fixes #35521 .
Built from https://develop.svn.wordpress.org/trunk@40636
git-svn-id: http://core.svn.wordpress.org/trunk@40497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:21:44 +00:00
Pascal Birchler
fc1350ebe5
Administration: Ensure validateForm
also validates other input fields.
...
With this change, textareas and select inputs will be checked as well.
Props shadyvb.
Fixes #37540 .
Built from https://develop.svn.wordpress.org/trunk@40634
git-svn-id: http://core.svn.wordpress.org/trunk@40495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:18:42 +00:00
Dominik Schilling
0cd74a6d6e
Plugins: Don't strip line breaks and blockquote elements in the plugin information modal.
...
Fixes #40679 .
Built from https://develop.svn.wordpress.org/trunk@40633
git-svn-id: http://core.svn.wordpress.org/trunk@40494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:16:42 +00:00
Pascal Birchler
c000e99d6f
Mail: Ensure entities are decoded in email change notifications on Multisite.
...
Adds new tests to ensure this bug does not pop up again.
Props stephenharris.
Fixes #40015 .
Built from https://develop.svn.wordpress.org/trunk@40632
git-svn-id: http://core.svn.wordpress.org/trunk@40493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:15:44 +00:00
Weston Ruter
40ebb188cd
Widgets: Extend the Text widget with TinyMCE.
...
Introduces rich text formatting: bold, italic, lists, links.
Props westonruter, azaozz, timmydcrawford, obenland, melchoyce.
See #35760 .
Fixes #35243 .
Built from https://develop.svn.wordpress.org/trunk@40631
git-svn-id: http://core.svn.wordpress.org/trunk@40492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 18:55:43 +00:00
Weston Ruter
2353930f90
Customize: Wait for processing
state to clear before starting to captureSettingModifiedDuringSave
.
...
See #32941 .
Fixes #40729 .
Built from https://develop.svn.wordpress.org/trunk@40627
git-svn-id: http://core.svn.wordpress.org/trunk@40488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 06:42:43 +00:00
Andrew Ozz
b952bf4eae
Dashboard: Update the existing WordPress News dashboard widget to also include upcoming meetup events and WordCamps near the current user’s location.
...
Props @afercia, @andreamiddleton, @azaozz, @camikaos, @coreymckrill, @chanthaboune, @courtneypk, @dd32, @iandunn, @iseulde, @mapk, @mayukojpn, @melchoyce, @nao, @obenland, @pento, @samuelsidler, @stephdau, @tellyworth.
See #40702 .
Built from https://develop.svn.wordpress.org/trunk@40607
git-svn-id: http://core.svn.wordpress.org/trunk@40477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-10 20:04:42 +00:00
Andrew Ozz
19ed296008
Editor: Update wp.editor.remove()
to use the new Quicktags instance removep()
.
...
Fixes : #35760
Built from https://develop.svn.wordpress.org/trunk@40599
git-svn-id: http://core.svn.wordpress.org/trunk@40469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-10 02:50:44 +00:00
Mike Schroder
391145df30
Media: Optionally return attachment id from media_sideload_image()
.
...
Introduces option to `$return` parameter to return the attachment id created after a successful image sideload.
Props slbmeh, kawauso, alexkingorg, SergeyBiryukov, georgestephanis, DrewAPicture, nacin, trepmal, mattheu, kraftbj, whyisjake, dotancohen, MrGregWaugh, danielbachhuber.
Fixes #19629 .
Built from https://develop.svn.wordpress.org/trunk@40597
git-svn-id: http://core.svn.wordpress.org/trunk@40467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-09 23:26:42 +00:00
Andrew Ozz
cbf3b2cff5
Editor: Add wp.editor.remove()
for editors that were dynamically instantiated from JS.
...
Fixes : #35760
Built from https://develop.svn.wordpress.org/trunk@40588
git-svn-id: http://core.svn.wordpress.org/trunk@40458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-09 03:41:42 +00:00
Andrea Fercia
cc9d3cfbb3
Themes: Fix missing search field in the Theme Install screen after [40572].
...
Props desrosj, cristianozanca for reporting.
Fixes #34881 .
Built from https://develop.svn.wordpress.org/trunk@40586
git-svn-id: http://core.svn.wordpress.org/trunk@40456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-08 15:59:44 +00:00
Andrew Ozz
dd0d110520
TinyMCE: update to 4.6.0. Has many new features and bug fixes, changelog: https://www.tinymce.com/docs/changelog/#version460-may42017 .
...
Fixes #40690 .
Built from https://develop.svn.wordpress.org/trunk@40583
git-svn-id: http://core.svn.wordpress.org/trunk@40453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-08 05:32:46 +00:00
Andrea Fercia
98402b7c15
Administration: Restore missing spinner when installing a new language.
...
Fixes #40478 .
Built from https://develop.svn.wordpress.org/trunk@40579
git-svn-id: http://core.svn.wordpress.org/trunk@40449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-07 12:01:42 +00:00
Andrea Fercia
fe96a729a0
Accessibility: Make the Get Shortlink button be a real button.
...
Worth noting, as of WordPress 4.4, the Get Shortlink button is hidden by default
but it can be restored via filters.
Props Cheffheid.
See #26504 .
Fixes #40448 .
Built from https://develop.svn.wordpress.org/trunk@40578
git-svn-id: http://core.svn.wordpress.org/trunk@40448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-07 11:47:41 +00:00
Pascal Birchler
7fd55738be
Administration: Remove unit and prefixed version from a CSS declaration.
...
The prefixed version gets added by Autoprefixer already.
Props MatheusFD.
Fixes #35358 .
Built from https://develop.svn.wordpress.org/trunk@40576
git-svn-id: http://core.svn.wordpress.org/trunk@40446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-06 14:37:44 +00:00
Pascal Birchler
064e62cbea
Cron API: Add a new wp_doing_cron()
helper function.
...
This replaces `DOING_CRON` checks via the constant.
Props tfrommen.
Fixes #39591 .
Built from https://develop.svn.wordpress.org/trunk@40575
git-svn-id: http://core.svn.wordpress.org/trunk@40445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-06 14:30:40 +00:00
Andrea Fercia
471f1e7201
Accessibility: Wrap the installed themes search field within a form element.
...
Valid code is important not just to formally meet the specification, but also to
ensure user agents, including assistive technologies, can accurately interpret
and parse content. When HTML elements are not used in the recommended way,
user agents may render them in unexpected ways. It can also become a problem for
compatibility with older or even future browsers, devices, or other software.
See W3C WCAG 4.1.1.
Props takayukister, aryamaaru.
Fixes #34881 .
Built from https://develop.svn.wordpress.org/trunk@40572
git-svn-id: http://core.svn.wordpress.org/trunk@40442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-05 19:02:45 +00:00
Andrea Fercia
3dab32af54
Accessibility: Improve the color contrast ratio of the dismiss notice buttons.
...
Props chris_dev.
Fixes #39970 .
Built from https://develop.svn.wordpress.org/trunk@40570
git-svn-id: http://core.svn.wordpress.org/trunk@40440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-04 22:32:46 +00:00
Andrea Fercia
3c7698808f
Customize: Fix a visual glitch on the widget control animation introduced in [40480].
...
Also, restores the original design intent that was meant to "compact widget-tops
on smaller laptops, but not tablets".
See #27112 .
Fixes #31476 .
Built from https://develop.svn.wordpress.org/trunk@40569
git-svn-id: http://core.svn.wordpress.org/trunk@40439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-03 22:39:44 +00:00
Andrea Fercia
1ca3b70929
Accessibility: Avoid a keyboard trap on the date and time custom format settings.
...
Using the `focus` event on the date and time custom format fields made impossible
to navigate through all the form fields using only the keyboard without actually
selecting the custom format setting. Instead, using `click` and `input` preserves
the original functionality when using any kind of pointing or input device.
Fixes #40515 .
Built from https://develop.svn.wordpress.org/trunk@40568
git-svn-id: http://core.svn.wordpress.org/trunk@40436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-02 20:03:42 +00:00
Weston Ruter
91a8af0ef6
Customize: Allow select
dropdowns to stretch full width in widened controls pane.
...
Props timmydcrawford.
Amends [40511].
Fixes #32296 .
Built from https://develop.svn.wordpress.org/trunk@40567
git-svn-id: http://core.svn.wordpress.org/trunk@40435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-02 19:30:46 +00:00
Andrea Fercia
f1be128cde
Widgets: Improve the News dashboard widget no-js notice.
...
In the rare case this notice was displayed, it was unstyled. Uses the notice
error style to make it prettier and consistent with other no-js notices.
Also, some CSS clean-up.
Fixes #40529 .
Built from https://develop.svn.wordpress.org/trunk@40556
git-svn-id: http://core.svn.wordpress.org/trunk@40425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-25 16:42:44 +00:00
Sergey Biryukov
2e6e53d26f
Help/About: Fix typo in help text on Reading Settings screen.
...
Props Arena94, bhargavbhandari90.
Fixes #40530 .
Built from https://develop.svn.wordpress.org/trunk@40540
git-svn-id: http://core.svn.wordpress.org/trunk@40416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-23 14:34:42 +00:00
Weston Ruter
cc77899e7f
Customize: Increase width of controls pane on large monitors to give more room.
...
Props celloexpressions, timmydcrawford.
Fixes #32296 .
Built from https://develop.svn.wordpress.org/trunk@40511
git-svn-id: http://core.svn.wordpress.org/trunk@40387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-21 05:25:43 +00:00
Weston Ruter
9eb9cc40bd
Customize: Fix visibility of "Hide Controls" link in IE.
...
Amends [39214].
Props timmydcrawford.
See #32296 , #38762 .
Fixes #40507 .
Built from https://develop.svn.wordpress.org/trunk@40510
git-svn-id: http://core.svn.wordpress.org/trunk@40386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-21 05:16:45 +00:00
Andrea Fercia
1d739a0925
Accessibility: Make some Widgets buttons real buttons.
...
Links used as UI controls that behave like buttons, should be buttons.
- changes the widgets "toggle", "Delete", and "Close" links to buttons
- uses `aria-expanded` to announce the state of the toggle buttons
- increases a bit the clickable area of the toggle
- ensures the "circular focus" doesn't get cut-off in some browsers by centering the toggle arrows
- uses a `<span>` element with an `aria-hidden` attribute to hide CSS generated font icons from assistive technologies
- standardizes on `.toggle-indicator:before` rather than `:after`
- changes two `#f00` reds in `#dc3232`, see #35622
Fixes #31476 .
Built from https://develop.svn.wordpress.org/trunk@40480
git-svn-id: http://core.svn.wordpress.org/trunk@40356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-19 21:14:44 +00:00
Andrew Ozz
d0e4448257
Editor: Provide API for the editor to be dynamically instantiated via JS. First run.
...
See: #35760
Built from https://develop.svn.wordpress.org/trunk@40476
git-svn-id: http://core.svn.wordpress.org/trunk@40352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-19 02:38:44 +00:00
Weston Ruter
cb6086ae9b
Customize: Use fixed-width illustrative placeholder for hex field in color picker to prevent truncation.
...
Props stormrockwell, sagarprajapati, Presskopp, afercia, tejas5989, westonruter, mayurk for testing.
Fixes #39096 .
Built from https://develop.svn.wordpress.org/trunk@40471
git-svn-id: http://core.svn.wordpress.org/trunk@40347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-18 00:31:43 +00:00
John Blackbourn
1e9446310a
Networks and Sites: Correct a capability check when accessing the Sites -> Add New screen.
...
Props flixos90
See #39156
Built from https://develop.svn.wordpress.org/trunk@40433
git-svn-id: http://core.svn.wordpress.org/trunk@40331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-15 17:30:48 +00:00
Sergey Biryukov
9fb2e79b57
Posts, Post Types: In wp_check_post_lock()
, check if the user with lock exists and return false otherwise.
...
Props arshidkv12, 1naveengiri.
Fixes #39888 .
Built from https://develop.svn.wordpress.org/trunk@40424
git-svn-id: http://core.svn.wordpress.org/trunk@40322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-13 23:09:43 +00:00
Sergey Biryukov
bef3ff1377
Posts, Post Types: Improve the docs for wp_check_post_lock()
and wp_set_post_lock()
.
...
See #39888 .
Built from https://develop.svn.wordpress.org/trunk@40423
git-svn-id: http://core.svn.wordpress.org/trunk@40321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-13 23:02:42 +00:00
Sergey Biryukov
902b91400d
Administration: Add "(link opens in a new window)" as a screen reader text for "Preview" link on Edit Post screen.
...
Props rianrietveld.
Fixes #40185 .
Built from https://develop.svn.wordpress.org/trunk@40422
git-svn-id: http://core.svn.wordpress.org/trunk@40320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-13 22:42:43 +00:00
Felix Arntz
45b64ba2ff
Multisite: Replace unnecessary is_super_admin()
check when setting up the initial network.
...
When using `is_super_admin()` in a non-multisite environment, the function is supposed to check for administrator capabilities. The process of querying all users and filtering them with that function can be optimized by only querying users with the administrator role instead.
Fixes #40406 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@40406
git-svn-id: http://core.svn.wordpress.org/trunk@40313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-10 22:00:43 +00:00
Weston Ruter
226e34effc
Customize: Verify availability of history.replaceState
(in IE9) before attempting to populate changeset_uuid
parameter.
...
Props westonruter, timmydcrawford for testing.
Amends [39686].
See #39227 .
Fixes #40405 .
Built from https://develop.svn.wordpress.org/trunk@40405
git-svn-id: http://core.svn.wordpress.org/trunk@40312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-10 21:15:41 +00:00
Felix Arntz
9354ea683f
Multisite: Introduce an upgrade_network
capability.
...
Prior to this change, a mix of `is_super_admin()` calls and `manage_network` capability checks was used to determine whether the current user could upgrade the network. With this changeset a dedicated capability is introduced that allows more granular handling.
Props dhanendran for the original patch.
Fixes #39205 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@40404
git-svn-id: http://core.svn.wordpress.org/trunk@40311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-10 21:11:43 +00:00