Dion Hulse
4678d33216
WordPress Core Automatic Updates: Add the first slice of Automatic Upgrades, This is presently disabled, and requires a filter to enable ( 'auto_upgrade_core' ). See #22704
...
Built from https://develop.svn.wordpress.org/trunk@25421
git-svn-id: http://core.svn.wordpress.org/trunk@25346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 06:19:12 +00:00
Sergey Biryukov
533519086e
Better alignment for wp_prepare_revisions_for_js() inline docs. see #25283 .
...
Built from https://develop.svn.wordpress.org/trunk@25420
git-svn-id: http://core.svn.wordpress.org/trunk@25345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 23:15:10 +00:00
Sergey Biryukov
b01adf9615
Inline documentation fixes and additions for wp-admin/revision.php and wp-admin/includes/revision.php.
...
props adamsilverstein.
see #25283 .
Built from https://develop.svn.wordpress.org/trunk@25419
git-svn-id: http://core.svn.wordpress.org/trunk@25344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 22:59:08 +00:00
Lance Willett
77614b547f
Twenty Fourteen: let authors customize the green "accent" color by changing to a different hex value in the Customizer. Props celloexpressions.
...
Also add an ID attribute to all `style` elements.
See #25220 .
Built from https://develop.svn.wordpress.org/trunk@25418
git-svn-id: http://core.svn.wordpress.org/trunk@25343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 22:06:09 +00:00
Lance Willett
b94a54be45
Twenty Fourteen: prefix Genericons enqueue handle so that the theme uses the its own version of the font CSS. Fixes a few display issues when plugins like Jetpack enqueue a different version of Genericons. See #25085 .
...
Built from https://develop.svn.wordpress.org/trunk@25417
git-svn-id: http://core.svn.wordpress.org/trunk@25342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 21:45:08 +00:00
Andrew Nacin
52feff7a75
Clear all transients (regardless of expiration) on all database upgrades. see #20316 .
...
Built from https://develop.svn.wordpress.org/trunk@25416
git-svn-id: http://core.svn.wordpress.org/trunk@25341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 21:14:10 +00:00
Andrew Nacin
e6bf2a293f
Add populate_network_meta filter to populate_network().
...
props jeremyfelt.
fixes #25020 .
Built from https://develop.svn.wordpress.org/trunk@25414
git-svn-id: http://core.svn.wordpress.org/trunk@25340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 20:49:09 +00:00
Andrew Nacin
717ec20ac7
Fix comma placement in [25179].
...
props gradyetc.
see #15004 , fixes #25298 .
Built from https://develop.svn.wordpress.org/trunk@25413
git-svn-id: http://core.svn.wordpress.org/trunk@25339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 20:16:11 +00:00
Helen Hou-Sandí
321268ba9d
No space between // and duplicate_hook. see #25229
...
Built from https://develop.svn.wordpress.org/trunk@25412
git-svn-id: http://core.svn.wordpress.org/trunk@25338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 18:57:10 +00:00
Helen Hou-Sandí
bbb18589c0
Inline docs for hooks in wp-admin/options-writing.php
. props siobhyb. see #25229 .
...
Built from https://develop.svn.wordpress.org/trunk@25411
git-svn-id: http://core.svn.wordpress.org/trunk@25337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 18:53:09 +00:00
Helen Hou-Sandí
e9d72209f1
Inline docs for hooks in wp-includes/nav-menu-template.php
. props Faison. see #25229 .
...
Built from https://develop.svn.wordpress.org/trunk@25410
git-svn-id: http://core.svn.wordpress.org/trunk@25336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 18:48:09 +00:00
Lance Willett
5214954488
Twenty Fourteen: fix comment for twentyfourteen_excerpt_length()
, props SergeyBiryukov. Fixes #25297 .
...
Built from https://develop.svn.wordpress.org/trunk@25406
git-svn-id: http://core.svn.wordpress.org/trunk@25335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 17:44:10 +00:00
Scott Taylor
acf3ee37e3
Fix the failing Tests_Link::test_wp_get_shortlink()
assertion:
...
* `wp_get_shortlink()` was firing a notice when reading `$post->ID` while `$post` was null in some cases
* Before the assertions that assume `$GLOBALS['post']` is not set, call `unset( $GLOBALS['post'] );` - there was global spillage from other tests
See #25282 .
Built from https://develop.svn.wordpress.org/trunk@25404
git-svn-id: http://core.svn.wordpress.org/trunk@25334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 17:30:10 +00:00
Helen Hou-Sandí
0758df9758
Add file size to attachment publish meta box. props desrosj. fixes #25170 .
...
Built from https://develop.svn.wordpress.org/trunk@25403
git-svn-id: http://core.svn.wordpress.org/trunk@25333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 15:10:09 +00:00
Andrew Nacin
4542e678d2
Return false from wp_get_original_referer() if it is called before wp_validate_redirect() is defined.
...
see #25294 .
Built from https://develop.svn.wordpress.org/trunk@25400
git-svn-id: http://core.svn.wordpress.org/trunk@25331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 13:36:09 +00:00
Andrew Nacin
46611d4282
Return false from wp_get_referer() if it is called before wp_validate_redirect() is defined.
...
see #25294 .
Built from https://develop.svn.wordpress.org/trunk@25399
git-svn-id: http://core.svn.wordpress.org/trunk@25330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 13:33:09 +00:00
Scott Taylor
13d5ff7090
* Fill in undefined var in Tests_Option_BlogOption
...
* Add `defined()` check for `BLOGSUPLOADDIR`
* Suppress deprecated function notices for `is_blog_user()` and `get_dashboard_blog()`
* Check existence of `$user` in `wpmu_log_new_registrations()` before arbitrarily making a database query
Fixes all notices in multisite unit tests.
See #25282 .
Built from https://develop.svn.wordpress.org/trunk@25397
git-svn-id: http://core.svn.wordpress.org/trunk@25328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 07:17:11 +00:00
Dion Hulse
641d3b2560
Fix wp_guess_url() to work in every scenario I could find, allows us to use it to determine the correct path to the WordPress Site URL before installation for install.php and setup-config.php redirects. Fixes #24480 Fixes #16884
...
Built from https://develop.svn.wordpress.org/trunk@25396
git-svn-id: http://core.svn.wordpress.org/trunk@25327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 06:57:09 +00:00
Scott Taylor
6744355f70
* Add isset()
checks all over WP_User_Query::prepare_query()
and WP_User_Query::query()
. When a WP_User_Query
instance is constructed without passing args, no query vars are filled in, thus $qv
doesn't contain most of the expected indices.
...
* Suppress an undefined index notice in `tests/user/query.php`
Fixes #25292 .
See #25282 .
Built from https://develop.svn.wordpress.org/trunk@25392
git-svn-id: http://core.svn.wordpress.org/trunk@25326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 06:25:09 +00:00
Scott Taylor
71430cd29a
Add sanity checks to get_*_template()
functions to ensure that the return value of get_queried_object()
is compatible with the assumed context.
...
Fixes #25291 .
See #25282 .
Built from https://develop.svn.wordpress.org/trunk@25386
git-svn-id: http://core.svn.wordpress.org/trunk@25325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 05:32:10 +00:00
Dion Hulse
93f7757c24
When the WordPress files are in a subdirectory, correctly redirect the user to the setup-config.php page from the parent directories index.php. Fixes #24480
...
Built from https://develop.svn.wordpress.org/trunk@25385
git-svn-id: http://core.svn.wordpress.org/trunk@25324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 05:13:08 +00:00
Scott Taylor
072b0f2128
Use reset()
to access the first element of an array, don't assume there is an item at index 0
.
...
See #25282 .
Built from https://develop.svn.wordpress.org/trunk@25384
git-svn-id: http://core.svn.wordpress.org/trunk@25323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 05:09:09 +00:00
Sergey Biryukov
f2391051c7
Inline documentation for hooks in wp-admin/options.php.
...
props siobhyb.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25372
git-svn-id: http://core.svn.wordpress.org/trunk@25322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 03:44:08 +00:00
Helen Hou-Sandí
8359c66176
Indicate that the fall-through in is_serialized()
is deliberate. fixes #24023 .
...
Built from https://develop.svn.wordpress.org/trunk@25371
git-svn-id: http://core.svn.wordpress.org/trunk@25321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 03:41:09 +00:00
Sergey Biryukov
b533a2bd94
Consistently call skin methods in WP_Upgrader. fixes #25254 .
...
Built from https://develop.svn.wordpress.org/trunk@25370
git-svn-id: http://core.svn.wordpress.org/trunk@25320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 02:43:10 +00:00
Sergey Biryukov
0232d1cfd8
Fix invalid markup when searching for installed themes. fixes #25288 .
...
Built from https://develop.svn.wordpress.org/trunk@25369
git-svn-id: http://core.svn.wordpress.org/trunk@25319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 00:03:10 +00:00
Scott Taylor
6fb5ef65c0
Avoid a notice by casting $args['rewrite']
to array()
before adding a slug
property and running array_merge()
.
...
Fixes #23668 .
Built from https://develop.svn.wordpress.org/trunk@25351
git-svn-id: http://core.svn.wordpress.org/trunk@25313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 17:17:11 +00:00
Dion Hulse
fc1fc39a89
Fix the action that set_site_transient()
fires so as not to include the private option prefix. This brings set_site_transient() back in line with it's documented behaviour, and the behaviour of all other transient functions. Fixes #25213
...
Built from https://develop.svn.wordpress.org/trunk@25350
git-svn-id: http://core.svn.wordpress.org/trunk@25312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 08:46:10 +00:00
Dion Hulse
26ebfca466
Make use of the mbstring.func_overload helper functions in WP_Filesystem so byte lengths are properly determined. See #25259 Fixes #25237
...
Built from https://develop.svn.wordpress.org/trunk@25349
git-svn-id: http://core.svn.wordpress.org/trunk@25311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 08:27:10 +00:00
Dion Hulse
c93eb27bb2
Switch WP_HTTP over to using the mbstring.func_overload helper functions. This change moves the check from within the Streaming-handling function to wrap the individual request, this fixes it for both cURL and Streams and any future changes to the transports which use strlen() on binary data. See #25259 See #16057
...
Built from https://develop.svn.wordpress.org/trunk@25348
git-svn-id: http://core.svn.wordpress.org/trunk@25310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 08:13:10 +00:00
Dion Hulse
83ebc727e8
Switch unzip_file() over to using the mbstring.func_override helper functions. See #25259
...
Built from https://develop.svn.wordpress.org/trunk@25347
git-svn-id: http://core.svn.wordpress.org/trunk@25309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 08:09:08 +00:00
Dion Hulse
ca008522f3
Add a set of helpers to turn the behaviour of mbstring.func_overload off when needed. Fixes #25259
...
Built from https://develop.svn.wordpress.org/trunk@25346
git-svn-id: http://core.svn.wordpress.org/trunk@25308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 07:23:08 +00:00
Andrew Nacin
1536779aaf
Avoid error in ms-files.php after [25317].
...
Built from https://develop.svn.wordpress.org/trunk@25344
git-svn-id: http://core.svn.wordpress.org/trunk@25306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 04:49:10 +00:00
Andrew Nacin
1d27a97756
Bump version in trunk.
...
Built from https://develop.svn.wordpress.org/trunk@25343
git-svn-id: http://core.svn.wordpress.org/trunk@25305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 04:20:09 +00:00
Andrew Nacin
7320c14dc4
SimplePie: Fix use of DOMElement as array.
...
props MikeSchinkel.
fixes #25274 .
Built from https://develop.svn.wordpress.org/trunk@25342
git-svn-id: http://core.svn.wordpress.org/trunk@25304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 04:02:10 +00:00
Andrew Nacin
b302f84b49
Avoid string offset notices in [25319].
...
Built from https://develop.svn.wordpress.org/trunk@25340
git-svn-id: http://core.svn.wordpress.org/trunk@25302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 03:57:09 +00:00
Andrew Nacin
89c57124da
Improve clarity and speed of [25320].
...
Built from https://develop.svn.wordpress.org/trunk@25338
git-svn-id: http://core.svn.wordpress.org/trunk@25300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 03:23:08 +00:00
Andrew Nacin
d637330d43
Bump TinyMCE version for [25132]. See #25131 .
...
Built from https://develop.svn.wordpress.org/trunk@25337
git-svn-id: http://core.svn.wordpress.org/trunk@25299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 02:44:08 +00:00
Scott Taylor
cb982c66ac
Don't call sanitize_title_with_dashes( $taxonomy )
in register_taxonomy()
unless $args['rewrite']['slug']
is empty.
...
Props SergeyBiryukov.
Fixes #23668 .
Built from https://develop.svn.wordpress.org/trunk@25335
git-svn-id: http://core.svn.wordpress.org/trunk@25297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 00:09:10 +00:00
Scott Taylor
7c2e7f8995
Add term_taxonomy_id
to available fields in get_term_by()
. Adds unit test.
...
Props jchristopher.
Fixes #21651 .
Built from https://develop.svn.wordpress.org/trunk@25334
git-svn-id: http://core.svn.wordpress.org/trunk@25296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 00:02:08 +00:00
Scott Taylor
02757de9d8
Remove dead code in add_query_arg()
.
...
Props hakre, c3mdigital.
Fixes #16942 .
Built from https://develop.svn.wordpress.org/trunk@25333
git-svn-id: http://core.svn.wordpress.org/trunk@25295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 23:38:09 +00:00
Scott Taylor
569bcc5dad
Use wp_get_nav_menus()
instead of get_terms('nav_menu')
in WP_Nav_Menu_Widget
to preserve use of `wp_get_nav_menus' filter.
...
Props Frank Klein.
Fixes #25263 .
Built from https://develop.svn.wordpress.org/trunk@25332
git-svn-id: http://core.svn.wordpress.org/trunk@25294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 23:30:10 +00:00
Scott Taylor
dbec80b469
Support orderby => meta_value
in WP_User_Query
. Adds unit test.
...
Props wpsmith.
Fixes #21581 .
Built from https://develop.svn.wordpress.org/trunk@25331
git-svn-id: http://core.svn.wordpress.org/trunk@25293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 23:10:09 +00:00
Scott Taylor
988caeb9a7
Check $profileuser->rich_editing
for empty before using it in Edit User admin code.
...
Props sorich87, c3mdigital.
Fixes #17328 .
Built from https://develop.svn.wordpress.org/trunk@25330
git-svn-id: http://core.svn.wordpress.org/trunk@25292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 22:49:08 +00:00
Scott Taylor
cb70e277af
Add an additional available param (the WP_User
instance) to the user_has_cap
filter.
...
Props Viper007Bond.
Fixes #24490 .
Built from https://develop.svn.wordpress.org/trunk@25329
git-svn-id: http://core.svn.wordpress.org/trunk@25291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 22:23:10 +00:00
Scott Taylor
2f267f6a2a
Add filter flush_rewrite_rules_hard
to give devs chance to prevent writing to file when hard-flushing rewrite rules.
...
Props jeremyfelt, nacin.
Fixes #23491 .
Built from https://develop.svn.wordpress.org/trunk@25328
git-svn-id: http://core.svn.wordpress.org/trunk@25290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 22:19:09 +00:00
Scott Taylor
3f5ec88eda
Introduce get_previous_post_link()
, get_next_post_link()
, and get_adjacent_post_link()
. Allows developers to retrieve the value without echo
ing.
...
Props yoavf, markjaquith, SergeyBiryukov.
Fixes #17302 .
Built from https://develop.svn.wordpress.org/trunk@25327
git-svn-id: http://core.svn.wordpress.org/trunk@25289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 22:12:10 +00:00
Andrew Nacin
a461a25d76
Loose validation for is_serialized() in maybe_serialize().
...
Built from https://develop.svn.wordpress.org/trunk@25320
git-svn-id: http://core.svn.wordpress.org/trunk@25282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 18:10:09 +00:00
Andrew Nacin
3e41af8489
Better protocol validation in set_url_scheme().
...
Built from https://develop.svn.wordpress.org/trunk@25319
git-svn-id: http://core.svn.wordpress.org/trunk@25281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 18:08:11 +00:00
Andrew Nacin
cf3fddde96
Validate referrers to prevent off-domain redirects.
...
Built from https://develop.svn.wordpress.org/trunk@25318
git-svn-id: http://core.svn.wordpress.org/trunk@25280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 18:07:10 +00:00