Commit Graph

34061 Commits

Author SHA1 Message Date
Sergey Biryukov
75fe71a13f Bootstrap/Load: Allow for ABSPATH to be defined outside of wp-load.php, e.g. in a script loaded via auto_prepend_file.
Props barry.
Fixes #26592.

git-svn-id: https://develop.svn.wordpress.org/trunk@37207 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-14 17:52:02 +00:00
Sergey Biryukov
1694407e0d Build Tools: Don't run the build task twice in grunt prerelease (it already runs via the precommit:js task).
Props netweb.
Fixes #36489.

git-svn-id: https://develop.svn.wordpress.org/trunk@37206 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-14 15:38:40 +00:00
Konstantin Obenland
6e15892673 Themes: Fix single theme modal on collapsed menu.
Prevents the modal from being displayed off screen, when there is only one
theme available and the menu is collapsed.

Props hardeepasrani for initial patch.
Fixes #36504.



git-svn-id: https://develop.svn.wordpress.org/trunk@37205 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-14 12:19:47 +00:00
Jeremy Felt
ac48e52ab3 Multisite: Fire a clean_site_cache action when a site's cache is cleared
Props spacedmonkey.
Fixes #36203.


git-svn-id: https://develop.svn.wordpress.org/trunk@37204 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-14 04:18:54 +00:00
Jeremy Felt
137d716ebb Multisite: Remove theme from network allowed themes when deleted
Previously, a deleted theme would remain in the list of allowed themes until manually cleared. This uses `WP_Theme::network_disable_theme()`, added in [37202].

Fixes #34182.


git-svn-id: https://develop.svn.wordpress.org/trunk@37203 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-14 03:49:01 +00:00
Jeremy Felt
a56fc1fba0 Multisite: Introduce WP_Theme methods to network enable/disable themes.
* `WP_Theme::network_enable_theme()` can be used to enable a theme or array of themes on a network.
* `WP_Theme::network_disable_theme()` can be used to disable a theme or array of themes on a network.
* Use these new methods in the network admin vs direct `update_site_option()` calls.
* Add tests.

Props igmoweb.
Fixes #30594.


git-svn-id: https://develop.svn.wordpress.org/trunk@37202 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-14 03:39:45 +00:00
Sergey Biryukov
2fb6a75885 I18N: Add translator comment for a string with a placeholder added in [36806].
Keep the comment for the string above too, for additional clarity.

Props christophherr.
Fixes #36493.

git-svn-id: https://develop.svn.wordpress.org/trunk@37201 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-14 03:38:09 +00:00
Jeremy Felt
85a6518c57 Multisite: Relocate revoke_super_admin() and grant_super_admin()
Moving these functions to `wp-includes/capabilities.php` allows plugins to access more than just `is_super_admin()` and `get_super_admin()` from the front end without including a file via `wp-admin/`. Add an `is_multisite()` check to prevent use of these on single site environments now that they have left `ms.php`..

Props johnjamesjacoby.
Fixes #21788.


git-svn-id: https://develop.svn.wordpress.org/trunk@37200 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-14 03:34:07 +00:00
Sergey Biryukov
c39ba1cdd9 Docs: Reference the correct variable in WP_Ajax_UnitTestCase::_handleAjax() documentation.
Props meitar.
Fixes #36522.

git-svn-id: https://develop.svn.wordpress.org/trunk@37199 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-14 02:28:03 +00:00
Sergey Biryukov
2e6c1d4d6c I18N: Remove <kbd> tags from translatable string in wp-admin/options-writing.php.
Add translator comment.

Props ramiy.
Fixes #36249.

git-svn-id: https://develop.svn.wordpress.org/trunk@37198 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-14 02:24:49 +00:00
Sergey Biryukov
fc709f0024 Customizer: Remove the 'appearance' reference from permission error messages added in [33857], [33889], and [33902].
Props Frozzare.
Fixes #36466.

git-svn-id: https://develop.svn.wordpress.org/trunk@37197 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-14 01:57:31 +00:00
Boone Gorges
dbf17abf5c Pass thumbnail ID to the admin_post_thumbnail_html filter.
Also updates changelog to reflect that `$post->ID` was added in 3.5

Props johnjamesjacoby.
Fixes #36443.

git-svn-id: https://develop.svn.wordpress.org/trunk@37196 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-13 16:17:10 +00:00
Sergey Biryukov
784c7d75ec Docs: Fix typo in a comment in wp-admin/js/postbox.js.
Props yoavf.
Fixes #36349.

git-svn-id: https://develop.svn.wordpress.org/trunk@37195 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-13 07:28:52 +00:00
Sergey Biryukov
2014288c62 Docs: Fix typo in get_image_send_to_editor() description.
Props yoavf.
See #36349.

git-svn-id: https://develop.svn.wordpress.org/trunk@37194 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-13 07:27:15 +00:00
Sergey Biryukov
194debdc0d Docs: Fix typo in wp_update_theme() description.
Props yoavf.
See #36349.

git-svn-id: https://develop.svn.wordpress.org/trunk@37193 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-13 07:26:27 +00:00
Mike Schroder
09e9e53c30 Media: Resolve fatal error on resize with ImageMagick < 6.4.6
Improper checking for 'Imagick::ALPHACHANNEL_UNDEFINED' and
'Imagick::ALPHACHANNEL_OPAQUE' caused fatal errors for some users
with Imagick when compiled against ImageMagick < 6.4.6, when these
constants were introduced. Fixes these compatibility checks.

Props gblsm.
Fixes #36501.

git-svn-id: https://develop.svn.wordpress.org/trunk@37192 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-13 06:17:25 +00:00
Sergey Biryukov
1af1c2d30f I18N: Update translator comments after [37190].
See #36496.

git-svn-id: https://develop.svn.wordpress.org/trunk@37191 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-13 04:29:25 +00:00
Sergey Biryukov
8594b7922d I18N: After [37188], display script and style tags in the message as <script> and <style>.
Props dd32.
See #36496.

git-svn-id: https://develop.svn.wordpress.org/trunk@37190 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-13 04:15:40 +00:00
Boone Gorges
26a5e78d94 Improve testability and coverage of wp_ext2type().
* Following pattern of `wp_get_mime_types()`, introduce `wp_get_ext_types()` function. New function returns a filtered list of file types with their extensions.
* Use this function in new tests for `wp_ext2type()`.

Props borgesbruno.
Fixes #35987.

git-svn-id: https://develop.svn.wordpress.org/trunk@37189 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-13 03:11:25 +00:00
Sergey Biryukov
c1913d5ad3 I18N: Remove tag and function names from two translatable strings.
Add translator comments.

Props andg for initial patch.
Fixes #36496.

git-svn-id: https://develop.svn.wordpress.org/trunk@37188 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-13 03:01:56 +00:00
Ella Iseulde Van Dorpe
f0bc007421 Build/Test Tools: Better git/svn detection
Prevent tasks from running twice in parallel 
if both .svn and .git directories are present.

Add `--ignore-externals` to `svn status`
and replace `git diff --name-only` with `git status --short`.

Merge some duplicate code.

Fixes #36394.
See #35557.
See [36906].



git-svn-id: https://develop.svn.wordpress.org/trunk@37185 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-12 22:33:18 +00:00
Boone Gorges
765e23a4a6 Use LEFT JOIN when building WP_Tax_Query SQL.
`LEFT JOIN` ensures that `NOT EXISTS` queries will not miss posts that have
no taxonomy data whatsoever.

Props swissspidy, crstauf.
Fixes #36343.

git-svn-id: https://develop.svn.wordpress.org/trunk@37184 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-12 20:36:31 +00:00
Dominik Schilling (ocean90)
65ec7e5d81 Trunk is now 4.6-alpha.
git-svn-id: https://develop.svn.wordpress.org/trunk@37183 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-12 20:03:58 +00:00
Mike Schroder
cc5dc7f8d1 WordPress 4.5
git-svn-id: https://develop.svn.wordpress.org/trunk@37179 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-12 17:28:55 +00:00
Mike Schroder
80fc954dd2 About Page: Add Final Video
Props siobhan, melchoyce, hugobaeta, rosso99.

git-svn-id: https://develop.svn.wordpress.org/trunk@37178 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-12 17:24:37 +00:00
Mike Schroder
d90c3a9f1e Post 4.5-RC3 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@37177 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-11 19:12:39 +00:00
Mike Schroder
4de5a113a0 4.5-RC3
git-svn-id: https://develop.svn.wordpress.org/trunk@37176 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-11 18:30:45 +00:00
Dominik Schilling (ocean90)
6008eca766 About Page: Use srcset and the w.org CDN for images.
Also, flip the "Selective Refresh" and "Smart Image Resizing" section and remove script enqueues which are no longer used.

Props joemcgill, melchoyce, ocean90.
Fixes #36173.

git-svn-id: https://develop.svn.wordpress.org/trunk@37175 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-11 17:45:17 +00:00
Dominik Schilling (ocean90)
303ecbe36a TinyMCE, inline link: Make styles for the autocomplete results available on front end.
Also, replace the generic `.alignright` class with a more specific class to avoid styling issues with themes which have padding/margin attached to `.alignright`.

Props azaozz, imath.
Fixes #36461.

git-svn-id: https://develop.svn.wordpress.org/trunk@37174 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-11 15:11:32 +00:00
Mike Schroder
c5f5a505be Post 4.5-RC2 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@37173 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-10 05:15:50 +00:00
Mike Schroder
ee135f2093 4.5-RC2
git-svn-id: https://develop.svn.wordpress.org/trunk@37172 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-10 04:20:26 +00:00
Jeremy Felt
f98744ec86 Ensure consistent dependency order when using wp_add_inline_script()
This disables the concatenation of remaining enqueued scripts once `wp_add_inline_script()` is invoked, which allows us to reliably print these scripts and their before/after inline scripts in the desired order.

Props gitlost, azaozz, swisspidy, ocean90.
Fixes #36392.


git-svn-id: https://develop.svn.wordpress.org/trunk@37171 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-10 03:32:47 +00:00
Jeremy Felt
fc1f8db19a 4.5 About Page, second round.
* Adjust text.
* Improve headings hierarchy.
* Add translation functions and translator comments throughout.

Props ocean90, afercia, ramiy, mikeschroder, mattfelten, helen. 
See #36173.


git-svn-id: https://develop.svn.wordpress.org/trunk@37170 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-10 02:02:04 +00:00
Andrew Ozz
8cb08d7ac4 4.5 About screen.
Props mikeschroder, melchoyce, ocean90, ryelle, jeremyfelt, Ipstenu, celloexpressions, DrewAPicture.
See #36173.

git-svn-id: https://develop.svn.wordpress.org/trunk@37169 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-09 06:22:18 +00:00
Helen Hou-Sandi
575afdc9f8 Default theme bumps for 4.5.
* Twenty Eleven 2.4
* Twenty Twelve 2.0
* Twenty Thirteen 1.9
* Twenty Fourteen 1.7
* Twenty Fifteen 1.5

props davidakennedy, ocean90.
fixes #36354.


git-svn-id: https://develop.svn.wordpress.org/trunk@37168 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-08 21:21:50 +00:00
Andrew Ozz
db17c15778 Customizer: fix cropping of small images when setting header image, site icon or logo.
Props obenland.
Fixes #36412.

git-svn-id: https://develop.svn.wordpress.org/trunk@37167 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-08 01:22:06 +00:00
Dominik Schilling (ocean90)
ca5db69c31 Customize: Harden assignment of Customizer settings transports for selective refreshable widgets
Theme support for `customize-selective-refresh-widgets` can be added _after_ the logic for registering the settings for incoming widgets that have been changed. This is due to themes adding the theme support in `after_setup_theme` which is also the action where `WP_Customize_Widgets::register_settings()` is called. If these both happen at priority 10, which one is called first depends on which one was added first. The other issue is that at the time that `WP_Customize_Widgets::register_settings()` is called at `after_setup_theme`, it is called before `widgets_init` and thus no widgets are yet registered. This means that any settings registered at this point will always have a `refresh` transport even if the theme supports `customize-selective-refresh-widgets`, since the `WP_Widget` instance is not visible yet to see if it supports selective refresh.

The fix: Defer `WP_Customize_Widgets::register_settings()` from `after_setup_theme` to `widgets_init` at priority 95 when the widget objects have all been registered. Also, ensure that the preview filter for `sidebars_widgets` is added before the sidebars are iterated for adding the controls.

Props westonruter.
Fixes #36389.

git-svn-id: https://develop.svn.wordpress.org/trunk@37166 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-07 20:58:56 +00:00
boonebgorges
f1c3ec9010 Use __trashed suffix rather than -%trashed% for trashed post slugs.
Percent signs are reserved characters in URIs. As such, it was impossible for
plugins to route requests to trashed posts, as happens in bbPress. The new
`__trashed` suffix should be sufficiently unique.

Also adds a test that demonstrates that the `__trashed` suffix can be
appended to slugs that contain the suffix somewhere other than the end of
the string.

Props netweb, ericlewis.
Fixes #11863.

git-svn-id: https://develop.svn.wordpress.org/trunk@37165 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-07 19:21:02 +00:00
Aaron Jorbin
1a27ba9fd7 External Libraries: Update jQuery to 1.12.3.
Sing it with me: jQuery fixed two issues, now you can get them with WP 4.5.

Release Post: http://blog.jquery.com/2016/04/05/jquery-1-12-3-and-2-2-3-released/
Changelog: https://github.com/jquery/jquery/compare/1.12.2...1.12.3

Fixes #35380.
Props ocean90.



git-svn-id: https://develop.svn.wordpress.org/trunk@37164 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-06 22:44:29 +00:00
Mark Jaquith
9deec9e723 REST API: Deliver parameters unadulterated instead of slashed.
We goofed, and parameters accessed through the REST API's methods
were slashed (inconsistently, even). This unslashes the data, so
you get the un-messed-with data that was sent.

Props joehoyle.
Fixes #36419.

git-svn-id: https://develop.svn.wordpress.org/trunk@37163 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-06 21:01:11 +00:00
Dominik Schilling (ocean90)
28699803ee I18N: On the Updates screen simplify plugin's version details link.
Replace the use of a `.screen-reader-text` element with an `aria-label` attribute to make the text easier to translate.

Props dimadin, ocean90.
See #35001.
Fixes #36410.

git-svn-id: https://develop.svn.wordpress.org/trunk@37162 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-06 12:51:57 +00:00
Aaron Jorbin
2b5f172b57 Make Moderate Comment Screen Great Again by showing links
You know what's wrong with the Moderate Comment Screen? It doesn't win anymore. Well, I'm going make the Moderate Comment screen win. It's going to win by showing the urls that are linked to from every anchor. It's going to win by having those urls be a lighter shade of gray than the surrounding text. Spammy links aren't going to be able to hide in commas. Spammy links aren't going to win.  The Moderate Comment Screen is going to win and we are going to make the Moderate Comment Screen Great Again.

Fixes #36380
Props rachelbaker, mikeschroder, adamsilverstein, boonebgorges, melchoyce, ocean90, jorbin, pento


git-svn-id: https://develop.svn.wordpress.org/trunk@37161 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-06 00:34:23 +00:00
Andrea Fercia
68a8211a55 Accessibility: improvements for the Editor wpLink modal form fields.
Adds `aria-describedby` attributes to the modal form fields after it
was partly restored in [37154].

Fixes #33301.

git-svn-id: https://develop.svn.wordpress.org/trunk@37160 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-05 22:23:23 +00:00
Dominik Schilling (ocean90)
d9212519fa Editor: Remove trailing space from a help text string.
Props dimadin.
Fixes #36407.

git-svn-id: https://develop.svn.wordpress.org/trunk@37159 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-05 10:53:15 +00:00
John Blackbourn
2d95d4187d Comments: Wrap the formatted comment text on the comment moderation screen in comment_text() so paragraphs and texturisation are applied.
Fixes #34133


git-svn-id: https://develop.svn.wordpress.org/trunk@37158 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-04 23:32:15 +00:00
John Blackbourn
6c79b715bd Role/Capability: Add create_sites and delete_sites to the list of capabilities that are checked as part of the comporehensive roles and capabilities tests.
See #32394, #36413


git-svn-id: https://develop.svn.wordpress.org/trunk@37157 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-04 22:29:55 +00:00
Dominik Schilling (ocean90)
7ef7a98dd1 Plugins: Use correct placeholder for the number of reviews.
`number_format_i18n()` returns a string, not an integer.

See #35111.
Fixes #36395.

git-svn-id: https://develop.svn.wordpress.org/trunk@37156 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-02 11:16:32 +00:00
Dominik Schilling (ocean90)
6bf0509046 I18N: Clarify translator comment for an a11y label added in [36618].
Props TacoVerdo.
See #35111.
Fixes #36396.

git-svn-id: https://develop.svn.wordpress.org/trunk@37155 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-02 11:11:52 +00:00
Andrew Ozz
bd800fbca4 Editor, wpLink:
- Restore the bottom half of the modal.
- Make it always expanded and remove the toggle. It is used as advanced link options now, no need to have simple mode.

Props iseulde, adamsilverstein, azaozz.
Fixes #36359.

git-svn-id: https://develop.svn.wordpress.org/trunk@37154 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-01 21:12:18 +00:00
Weston Ruter
cfd07d69cf Customize: Fix toggle of title attribute field visibility on nav menus admin page.
Improves alignment with nav menus in the Customizer, fixing regression introduced in [36908].

See #35273.
Props sidati, westonruter.
Fixes #36353.


git-svn-id: https://develop.svn.wordpress.org/trunk@37153 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 21:54:45 +00:00