John Blackbourn
6845b3cd4a
Move the test_is_home_should_be_false_when_visiting_custom_endpoint_without_a_registered_query_var_and_page_on_front_is_set()
test into a more appropriate place.
...
See #25143
git-svn-id: https://develop.svn.wordpress.org/trunk@35256 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-18 01:34:29 +00:00
John Blackbourn
ab43e7362d
Correct a test after r35253.
...
See #34272
git-svn-id: https://develop.svn.wordpress.org/trunk@35255 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-18 00:55:16 +00:00
John Blackbourn
01a92d7908
Remove an IDE-specific rule in .gitignore
. These should be managed in the user's ~/.gitignore_global
file.
...
Fixes #34345
git-svn-id: https://develop.svn.wordpress.org/trunk@35254 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-18 00:15:23 +00:00
Sergey Biryukov
8c19030438
Embeds: After [35235], replace some missed oembed
references with embed
.
...
Props peterwilsoncc.
Fixes #34272 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35253 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 23:25:56 +00:00
John Blackbourn
d5b31e6ba2
Introduce map_deep()
, a utility function that recursively maps a callable function to every item in an array or object. Works like array_walk_recursive()
but works with objects too.
...
Updates `rawurlencode_deep()`, `urlencode_deep()`, and `stripslashes_deep()` to use `map_deep()`. Introduces `urldecode_deep()` for completeness.
Props wpmuguru, nbachiyski, boonebgorges, MikeHansenMe, chriscct7, realloc, johnbillion
Fixes #22300
git-svn-id: https://develop.svn.wordpress.org/trunk@35252 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 23:25:21 +00:00
Weston Ruter
f8e79c5bbc
Customizer: Fix margin-top
calculation for Themes section.
...
Ensure that the Themes section calculates its `margin-top` as a panel, since the section behaves as one. Fixes regression caused by [35231].
See #33567 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35251 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 22:40:10 +00:00
Scott Taylor
641e372432
Media: in wp_get_attachment_image_sizes()
, ensure that $img_width
exists when the image does not.
...
Props kraftbj.
See #33641 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35250 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 22:11:28 +00:00
Scott Taylor
768958f7a0
Unit Tests: better fixtures for Tests_Meta_Slashes
and Tests_WP_Customize_Section
.
...
See #30017 , #33968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35249 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 21:28:43 +00:00
Scott Taylor
80b732819b
Unit Tests: better fixtures for Tests_User_WpSetCurrentUser
.
...
See #30017 , #33968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35248 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 21:18:38 +00:00
Scott Taylor
721d4c5a77
Unit Tests: better fixtures for Tests_User
.
...
See #30017 , #33968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35247 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 21:14:28 +00:00
Scott Taylor
c173dc5595
Unit Tests: better fixtures for Tests_AdminBar
. Don't force-delete some posts: some filter callbacks are no-ops on Multisite if the post is vanquished.
...
See #30017 , #33968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35246 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 20:48:33 +00:00
Scott Taylor
8506f48d6b
Unit Tests: better fixtures for Tests_Admin_Includes_Post
.
...
See #30017 , #33968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35245 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 19:47:07 +00:00
Scott Taylor
613e88fe86
Unit Tests: WP_UnitTest_Generator_Sequence
needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static).
...
While we're at it, remove unnecessary `tearDown()` code.
See #30017 , #33968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35244 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 19:24:20 +00:00
Scott Taylor
ae226d66b6
Unit Tests: after [35242], declare some missing instance props on individual test classes.
...
See #30017 , #33968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35243 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 18:29:32 +00:00
Scott Taylor
b757b37551
Unit Tests: after [35225], make factory
a method/getter on WP_UnitTestCase
and add magic methods for BC for every plugin that is extending WP_UnitTestCase
and accessing the $factory
instance prop.
...
Props nerrad, wonderboymusic.
See #30017 , #33968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35242 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 18:02:16 +00:00
Drew Jaynes
5a0fd03f95
Docs: Add missing file headers to the list table classes and adjust class DocBlocks accordingly.
...
See #33701 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35241 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 15:12:48 +00:00
Drew Jaynes
0bb4a1bdd0
Docs: Improve the hook doc for the get_post_status
filter, introduced in [35233].
...
Also adds a missing parameter description for `$post`.
See #23458 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35240 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 14:23:05 +00:00
Ella Iseulde Van Dorpe
5b5b67ee31
JSHint after [35238]
...
git-svn-id: https://develop.svn.wordpress.org/trunk@35239 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 07:10:55 +00:00
Ella Iseulde Van Dorpe
112af0751f
Admin: fix repositioning notices
...
Fixes #34294 .
Props afercia.
git-svn-id: https://develop.svn.wordpress.org/trunk@35238 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 07:03:30 +00:00
Drew Jaynes
cba5390270
Docs: Add a missing file header for wp-admin/includes/class-wp-list-table.php.
...
See #33701 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35237 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 06:06:59 +00:00
Weston Ruter
0e81f51cac
Customizer: Add unit test for WP_Customize_Widgets::is_panel_active()
.
...
See #33052 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35236 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 04:43:27 +00:00
Sergey Biryukov
9b591d6b09
Embeds: Rename files, functions, and hooks added in [34903] to make it more clear what is oEmbed-specific and what isn't.
...
See https://core.trac.wordpress.org/ticket/34272#comment:7 for full list of renamed functions and hooks.
Props swissspidy.
Fixes #34272 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35235 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 01:20:19 +00:00
Sergey Biryukov
5c19a7a704
Replace Quick Edit and Bulk Edit headings with <legend>
elements.
...
Props afercia.
Fixes #34289 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35234 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 00:44:12 +00:00
Aaron Jorbin
7db19dcda2
Improve get_post_permalink
compatibility with non standard post status
...
This adds a new filter named `get_post_status` to the function named `get_post_status` which can be used to make additional post types behave like unpublished post status in `get_post_permalink`.
Props misterbisson, antpb, iamfriendly
Fixes #23458
git-svn-id: https://develop.svn.wordpress.org/trunk@35233 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 00:43:54 +00:00
Sergey Biryukov
fe72320f33
Merge two strings for expanding accordion and Customizer sections.
...
Props pavelevap.
Fixes #33939 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35232 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-17 00:27:44 +00:00
Weston Ruter
370057b5d7
Customizer: Always show Widgets panel initially if sidebars are registered; show notice to users in panel if no widget areas are in current preview.
...
Widgets panel will not wait to display until the preview loads.
Also fixes problems with `margin-top` in panels where other panels' `active` states change, as well as ensuring sections of deactivated panel collapse before panel is hidden to prevent the pane from becoming empty of controls.
Fixes #33052 .
Fixes #33567 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35231 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 23:47:56 +00:00
Sergey Biryukov
de182f7736
Merge two warning strings.
...
Props pavelevap.
Fixes #29740 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35230 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 23:30:29 +00:00
Sergey Biryukov
af36c261e3
Sample permalink: Improve accessibility of changing the permalink on Edit Post screen.
...
Props afercia.
Fixes #34255 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35229 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 23:01:58 +00:00
Sergey Biryukov
7b6454bf6b
Embeds: In print_oembed_embed_styles()
, load non-minified file if SCRIPT_DEBUG
is true.
...
This is consistent with `print_oembed_embed_scripts()`.
Props MikeHansenMe.
Fixes #34321 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35228 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 22:42:47 +00:00
Boone Gorges
f22ba848df
Return null
from get_term()
on taxonomy mismatch.
...
[34997] caused `get_term()` to return an error object in the case when
`$taxonomy` did not match the taxonomy of the located term. This was an
inadvertant change from the previous behavior, when `get_term()` would return
null in these cases.
Props dlh.
See #14162 . Fixes #34332 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35227 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 21:41:51 +00:00
Scott Taylor
61edcd5021
Unit Tests: PHP 5.2, I Hate You and You Are Bringing Me Down.
...
#YOLOFriday
See #30017 , #33968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35226 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 21:14:52 +00:00
Scott Taylor
e70ebea219
Unit Tests: one $factory
to rule them all, and it shall be static
.
...
Using more than one instance of `WP_UnitTest_Factory` causes all kinds of craziness, due to out-of-sync internal generator sequences. Since we want to use `setUpBeforeClass`, we were creating ad hoc instances. To avoid that, we were injecting one `static` instance via Dependency Injection in `wpSetUpBeforeClass`. All tests should really use the `static` instance, so we will remove the instance prop `$factory`.
Replace `$this->factory` with `self::$factory` over 2000 times.
Rewrite all of the tests that were hard-coding dynamic values.
#YOLOFriday
git-svn-id: https://develop.svn.wordpress.org/trunk@35225 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 21:04:12 +00:00
Scott Taylor
84272ff8cd
Unit Tests: since [32953], we can just use self::delete_user()
instead of using if
logic for Multisite.
...
See #30017 , #33968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35224 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 19:51:32 +00:00
Sergey Biryukov
0d4a7ee029
In WP_Posts_List_Table
, correct the type for $comment_pending_count
.
...
See #11381 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35223 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 18:24:25 +00:00
Sergey Biryukov
e4c9f97fb3
In WP_Media_List_Table
, rename $pending_count
to $comment_pending_count
and mark it as protected, for consistency with WP_Posts_List_Table
.
...
See #11381 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35222 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 18:22:12 +00:00
Drew Jaynes
ea8e9f89cd
Docs: Standardize the file header summary for wp-admin/includes/file.php.
...
Also adds an `@since` version and corrects the `@subpackage` value.
See #33701 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35221 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 16:55:24 +00:00
Andrea Fercia
cb2285f63e
Accessibility: Improve headings hierarchy in the Theme browser modal dialog.
...
Fixes #34288 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35220 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 15:55:06 +00:00
Andrea Fercia
e68dfb6c6b
Bump H4 headings to H2 in the Updates screen for better accessibility.
...
Fixes #34265 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35219 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 15:44:49 +00:00
Dominik Schilling (ocean90)
baf6f0bb6d
Travis CI: Use a pinned version of the object cache drop-in.
...
Props tollmanz.
See #31491 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35218 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 14:15:18 +00:00
Ella Iseulde Van Dorpe
4abf64eb14
TinyMCE: add lang attribute
...
This is needed to make `hyphens: auto;` work correctly.
Fixes #32555 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35217 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 10:10:32 +00:00
Ella Iseulde Van Dorpe
093b6b5d11
TinyMCE: make sure markers are removed after first init
...
This is only relevant to non embeddable URLs.
After first init, markers were set but not removed,
causing an edited URL to revert when switching to text mode
or any paragraph after the URL to just contain that URL.
Fixes #33954 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35216 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 05:42:22 +00:00
Helen Hou-Sandi
b9c1a56e38
Account for icon alignment using text-indent in RTL.
...
fixes #33808 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35215 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 00:57:47 +00:00
Scott Taylor
2845280ffd
Unit Tests: add SpeedTrapListener
to phpunit/includes
and add the config node to phpunit.xml.dist
.
...
See #30017 , #33968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35214 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 00:27:28 +00:00
Dominik Schilling (ocean90)
159a5b518b
Travis: Extend our test suite with a memcached instance.
...
To test persistent object caching Travis CI runs now a build on PHP 5.6 with memached enabled. The build uses the drop-in from https://github.com/tollmanz/wordpress-pecl-memcached-object-cache which is based on the PECL memcached extension.
Props pento, ocean90.
Fixes #31491 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35213 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-15 22:51:38 +00:00
Dominik Schilling (ocean90)
f75321f3ec
Multisite: Remove the strictness for $using_paths
in WP_Network::get_by_path()
.
...
The network lookup was broken when using an external object cache because `$using_paths` isn't always a boolean. Added in [34099].
See #31985 , #31491 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35212 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-15 22:06:38 +00:00
Dominik Schilling (ocean90)
c6e2e6c1b5
Tests: Remove the @runTestsInSeparateProcesses
annotation for Ajax tests.
...
They were added 3 years ago in [846/tests] because tests weren't excluded from the normal runs.
Reverts [35209] because it doesn't work with Xdebug.
`Tests_Ajax_Response::test_response_charset_in_header` is the only test which needs to run in a separate process, see [975/tests].
See #31491 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35211 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-15 21:30:52 +00:00
Drew Jaynes
c8bf2ce727
Docs: Fix a typo in an inline comment in wp_get_attachment_image_srcset_array()
.
...
Props neoxx.
Fixes #34319 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35210 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-15 20:51:58 +00:00
Dominik Schilling (ocean90)
666d07352e
Tests: Don't preserve the global state for Ajax tests when using an external object cache.
...
Most of the Ajax tests are running in a separate PHP process, and thus PHPUnit attempts to preserve the global state from the parent process by serializing all globals. But this doesn't work for external object caches so we have to disable this "feature".
See #31491 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35209 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-15 20:34:08 +00:00
Aaron Jorbin
a0305d5020
Add Twenty Sixteen to travis builds
...
This allows the automated tests to include Twenty Sixteen.
Fixes #34315 . See #34306 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35208 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-15 19:05:17 +00:00
Helen Hou-Sandi
3a8bd20594
Circular focus styling for widgets and menus in the customizer.
...
see #33808 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35207 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-15 18:52:24 +00:00