Sergey Biryukov
03cb69d8e2
When live-updating site title in toolbar, fall back to the site url if the title is empty.
...
props avryl.
see #28682 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30597 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 08:11:52 +00:00
Sergey Biryukov
980ca1471b
Add missing periods to strings introduced in [30333].
...
props DrewAPicture.
see #30264 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30596 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 06:25:14 +00:00
Drew Jaynes (DrewAPicture)
bcb88058f9
Improve inline documentation in wp_ajax_destroy_sessions()
.
...
If the token is set (`$keep` is a string), this means the user is viewing their own profile-editing screen and destroying their own sessions (except the current one). If it isn't set (`$keep` is null), the user is editing another user's profile and destroying all of their sessions with no exceptions.
See #30264 , #30469
git-svn-id: https://develop.svn.wordpress.org/trunk@30595 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 03:47:43 +00:00
Andrew Ozz
8206bceff6
Editor: move the DFW v2 transitions CSS from editor.css to wp-admin.css. They are needed only on the Edit Post screen.
...
See #30453 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30594 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 02:35:09 +00:00
Andrew Ozz
f078fc3e99
Editor: use the Alt+Shift+W keyboard shortcut for new DFW from both the Visual and Text editors. Props afercia, fixes #30450 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30593 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 01:43:56 +00:00
John Blackbourn
93eb8d6d45
Revert [30032] so appropriate PHP warnings aren't masked.
...
Fixes #28743
git-svn-id: https://develop.svn.wordpress.org/trunk@30592 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 01:28:28 +00:00
Andrew Ozz
8d578a1d1f
Better error message when the admin is ssl and non-ssl oEmbed previews are not available in the editor. Props Japh, fixes #30533 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30591 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 22:36:48 +00:00
Ian Stewart
e2a69b73b5
Twenty Fifteen: better highlights for tapped links in iOS Safari.
...
Props iamtakashi, fixes #30524 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30590 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 20:40:13 +00:00
Ian Stewart
d6d93cbcf5
Twenty Fifteen: overflow hidden can hide focus outlines here so out it goes.
...
Props iamtakashi, fixes #30523 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30589 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 20:35:20 +00:00
Ian Stewart
cde500a7ad
Twenty Fifteen: minor corrections to borders and post title colors in custom color schemes.
...
Props iamtakashi, fixes #30521 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30588 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 20:33:13 +00:00
Gary Pendergast
c00ba04e9c
WPDB: Remove the addition of STRICT_ALL_TABLES
, added in [30400]. This proved to be incompatible with too many plugins, as well as being incompatible with MySQL 5.7.
...
See #21212 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30587 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 10:59:10 +00:00
Andrew Ozz
19ed0a7c1a
Editor: limit scrolling triggered when TinyMCE is auto-resized to 100px. Prevents auto-scrolling on page load. Fixes #30515 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30586 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 00:59:04 +00:00
Boone Gorges
fffff63fbe
Revert shared taxonomy term splitting for 4.1.
...
This is a revert of [30494], [30492], [30347], and [30334]. The latter
changeset was a revert of [30336], which was a revert of [30241].
Watch for Term Splitting, Version III in version 4.2, coming soon to a
WordPress trunk near you.
See #30335 , #5809 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30585 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 00:04:59 +00:00
Andrew Ozz
9fe0de6c42
Remove unused CSS and JS from wp-mce-help.php, see #30517 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30584 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 23:22:33 +00:00
Andrew Ozz
59350a85ad
Editor: fix warnings in class-wp-editor.php, see #30453 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30583 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 23:03:16 +00:00
Mark Jaquith
3fb3ffbc78
Remove old DFW width adjustment help text.
...
fixes #30517
git-svn-id: https://develop.svn.wordpress.org/trunk@30582 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 22:29:57 +00:00
Dominik Schilling (ocean90)
94fad7cd07
Remove unbounded check for "install.php" in wp_not_installed()
.
...
The check is true for `wp-admin/plugin-install.php` and `wp-admin/theme-install.php` too. This will end in a redirect to `/wp-admin/upgrade.php` or a screen with a bunch of errors.
The `WP_INSTALLING` constant was added in WordPress 1.5.1 to `wp-admin/install.php` which makes the check for "install.php" redundant.
props joemcgill.
fixes #29694 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30581 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 20:55:19 +00:00
Drew Jaynes (DrewAPicture)
f534936cfe
Fix DocBlock formatting for wp_generate_password()
.
...
Props stevegrunwell for the initial patch.
Fixes #30509 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30580 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 20:37:36 +00:00
Dominik Schilling (ocean90)
fb8588f115
Comments: Use proper HTTP response codes for validation errors.
...
props miqrogroove, solarissmoke, mackensen.
fixes #11286 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30579 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 20:16:47 +00:00
Dominik Schilling (ocean90)
17cefe0288
Network Admin: Improve width of input fields on Add New Site and Edit Site screens.
...
props honeysilvas.
fixes #16383 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30578 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 19:50:20 +00:00
John Blackbourn
3c37c87f39
Remove the wp_is_trusted_network()
function pending further discussion on terminology and behaviour.
...
See #30145
git-svn-id: https://develop.svn.wordpress.org/trunk@30577 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 19:26:57 +00:00
ocean90
ebfa390ea1
Type cast $nonce
to string in wp_verify_nonce()
.
...
props jesin.
fixes #29542 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30576 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 19:18:02 +00:00
Dion Hulse
01b2c45025
Fix the PHPDoc example for _split_str_by_whitespace().
...
Props voldemortensen. Fixes #30504
git-svn-id: https://develop.svn.wordpress.org/trunk@30575 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 03:51:48 +00:00
Andrew Ozz
abf9e56ef2
Editor: add a pointer for the new DFW button. Remove the wp350_media and wp360_revisions pointers from the same screens. See #30458 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30574 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 02:53:54 +00:00
Andrew Ozz
d4946a7904
Editor:
...
- Add CSS reset for the TinyMCE fullscreen mode when used on the Edit Post screen.
- Fix loading of the old and new DFW buttons, use another arg. passed to WP_Editors.
- Reset editor-expand when exiting TinyMCE fullscreen mode.
Fixes #30453 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30573 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 02:49:41 +00:00
Ian Stewart
d7e4bdd88e
Twenty Fifteen: docs correction.
...
Props rachelbaker, DrewAPicture, fixes #30456
git-svn-id: https://develop.svn.wordpress.org/trunk@30572 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 21:10:56 +00:00
Ian Stewart
c55081a2d1
Twenty Fifteen: update the .pot file.
...
Props iamtakashi, fixes #30433 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30571 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 21:07:39 +00:00
Ian Stewart
41f3470242
Twenty Fifteen: make sure the 'says:' in comments is readable by a screen-reader.
...
Fixes #30479 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30570 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 21:04:13 +00:00
Ian Stewart
af691073b9
Twenty Fifteen: docs correction and cleanup.
...
Props DrewAPicture, see #30149 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30569 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 20:56:33 +00:00
Ian Stewart
3c19ea9381
Twenty Fifteen: correct number of menus used in comments
...
Props jeherve, see #30149
git-svn-id: https://develop.svn.wordpress.org/trunk@30568 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 20:37:42 +00:00
Ian Stewart
78cff98ef9
Twenty Fifteen: remove unneeded custom header admin callbacks.
...
Props philiparthurmoore, fixes #30432 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30567 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 15:11:11 +00:00
Ian Stewart
781309a11c
Twenty Fifteen: prevent too-wide tables from popping out of posts.
...
Props iamtakashi, fixes #30420
git-svn-id: https://develop.svn.wordpress.org/trunk@30566 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 15:03:49 +00:00
Ian Stewart
996b21e660
Twenty Fifteen: pinching to zoom in on landscape on iPads is breaking the layout with the sticky sidebar. Providing a one-column view on those screens looks good and will likely prevent other bugs we don't even know about.
...
Props iamtakashi, fixes #30366 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30565 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 14:57:40 +00:00
Ian Stewart
b5af639a5a
Twenty Fifteen: a shorter header on small screens when there is no header text or header image looks more correct.
...
Props iamtakashi, fixes #30326 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30564 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 14:46:13 +00:00
Dominik Schilling (ocean90)
836ef75b8e
Update embedded.png
after running grunt imagemin
.
...
After [30059] and [30079] we still had four images which could be minified. Three of them are handled by [30562], the last one by this.
fixes #30141 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30563 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 14:08:56 +00:00
Andrew Ozz
9185f64f20
TwentyFifteen:
...
- Fix image caption alignment in the editor.
- Remove unused var from functions.js.
Also includes few images that were shrunk a bit when running grunt precommit.
Fixes #30493 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30562 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 06:11:02 +00:00
Gary Pendergast
0cb93dd166
When json_encode()
returns a JSON string containing 'null'
in PHP 5.4 or earlier, wp_json_encode()
will now sanity check the data, as older versions of PHP failed to encode non UTF-8 characters correctly, instead returning 'null'
.
...
Fixes #30471 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30561 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 05:00:36 +00:00
Andrew Ozz
a6b7826831
TinyMCE: don't hide the image toolbar when the iframe window fires onresize. There is a bug in several browsers that triggers onresize when a tooltip is shown, only in RTL mode. Also use better variable name. Fixes #30147 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30560 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 04:30:31 +00:00
Jeremy Felt
f1e5edee9a
Add basic unit tests for is_plugin_active_for_network()
...
Props rodrigosprimo
Fixes #30491
git-svn-id: https://develop.svn.wordpress.org/trunk@30559 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 04:02:26 +00:00
Andrew Ozz
c2c0eee75a
TinyMCE: use the actual image node when calculating the position of the toolbar. Fixes a bug in old IE. See #30147 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30558 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 01:21:35 +00:00
Boone Gorges
4537217cf1
Add basic unit tests for is_plugin_active()
and is_plugin_inactive()
.
...
Props voldemortensen.
Fixes #30489 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30557 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 01:12:39 +00:00
Dominik Schilling (ocean90)
bc53a39130
Remove incorrect documentation for wp.media()
.
...
props ericlewis.
fixes #30090 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30556 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-24 23:11:54 +00:00
Dominik Schilling (ocean90)
3ebd474750
Improve the focus style for review links in the plugin info modal.
...
props johnbillion.
fixes #30375 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30555 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-24 22:58:12 +00:00
Dominik Schilling (ocean90)
f38be98c89
Clear update caches when site language is changed.
...
The update screen has a re-install button which could show the wrong language locale after the site language was changed. That's because the update data is cached.
Introduce `_wp_clear_update_cache()` as a helper function to clean up the update cache.
props SergeyBiryukov, ocean90.
fixes #30369 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30554 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-24 22:49:13 +00:00
Dominik Schilling (ocean90)
1b920af543
Customizer: Only show the default button in the upload control if there is a default attachment.
...
props celloexpressions.
see #21483 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30553 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-24 22:30:25 +00:00
Dominik Schilling (ocean90)
ea4528dc43
Customizer: Don't override Section.isContextuallyActive()
in SidebarSection
.
...
This fixes a bug where empty widget areas get deactivated in the Customizer.
fixes #30378 .
see #30235 .
props westonruter.
git-svn-id: https://develop.svn.wordpress.org/trunk@30552 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-24 22:25:30 +00:00
Dominik Schilling (ocean90)
09f6d69f5a
Update the Iris color picker to version 1.0.6.
...
Changes: https://github.com/Automattic/Iris/compare/1.0.4...1.0.6
props mattwiebe.
fixes #30365 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30551 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-24 22:16:39 +00:00
Dominik Schilling (ocean90)
c6222d9d78
Editor CSS: Add missing semicolons.
...
props cfoellmann.
fixes #30487 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30550 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-24 21:53:49 +00:00
Boone Gorges
7c8c493a9c
Fix the unit tests for Imagick alpha.
...
These tests were written to use the `assertImageAtAlpha()` helper method, whose
internals were specific to GD. As a result, the tests could not pass. This
changeset introduces GD- and Imagick-specific versions of this method.
Props voldemortensen.
Fixes #24871 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30549 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-24 20:56:36 +00:00
Boone Gorges
951409119e
Declare an explicit 'order' in test_get_comments_by_user()
.
...
This change fixes broken builds on older versions of MySQL. See #30462 .
Assertions regarding indeterminate secondary ORDER BY clauses will go in
separate test methods. See #30478 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30548 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-24 14:55:49 +00:00