Dion Hulse
34fa8af8bb
Core Upgrader: Include an unmodified $wp_version in Core_Upgrader::upgrade(). This protects against cases where the global $wp_version has been modified. See #25772
...
git-svn-id: https://develop.svn.wordpress.org/trunk@26017 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-05 06:22:23 +00:00
Dion Hulse
18e173ae80
Core Upgrader success statistics: Pass the version of WordPress we're upgrading from, as well as the version being upgraded to. Props nacin. See #25772 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@26016 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-05 06:19:05 +00:00
Dion Hulse
83754e1636
Remove dead code from the Plugin Upgrader class. Props jdgrimes. Fixes #25470
...
git-svn-id: https://develop.svn.wordpress.org/trunk@26015 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-05 05:47:41 +00:00
Dion Hulse
58e4a21f07
When checking filesystem permissions for core updates, only check the permissions of the files which we need to alter. Props nacin for initial patch. Fixes #25771 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@26014 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-05 05:42:23 +00:00
Dion Hulse
43d50e9c9e
Add a filter to the Background Updates debug email, matches the filter used on the non-debug post-update emails. Props pento. Fixes #25756
...
git-svn-id: https://develop.svn.wordpress.org/trunk@26013 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-05 02:14:34 +00:00
Scott Taylor
d8f57f88ad
Respect paged
when offset
is used in WP_Query
. Adds unit tests.
...
Props coffee2code.
Fixes #18897 .
git-svn-id: https://develop.svn.wordpress.org/trunk@26012 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-05 01:34:44 +00:00
Scott Taylor
5643e3ca17
Pass $args
to the export_wp
action in export_wp()
, which is currently passed no arguments.
...
Props nickdaugherty.
Fixes #25574 .
git-svn-id: https://develop.svn.wordpress.org/trunk@26011 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-05 01:26:49 +00:00
Scott Taylor
ed22220a0f
Cast proper fields to int
when returning from wp_get_object_terms()
. Add term_taxonomy_id
and object_id
to the list in sanitize_term()
and sanitize_term_field()
.
...
Fixes #17646 . Adds unit tests.
Props simonwheatley, dd32, kovshenin.
git-svn-id: https://develop.svn.wordpress.org/trunk@26010 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-05 01:18:02 +00:00
Scott Taylor
67443e080c
Don't globalize version variables twice. See #23685 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@26009 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-05 00:57:52 +00:00
Scott Taylor
268667e170
When WordPress is loaded in a function (e.g. unit tests) the variables initialized at the top level aren't globals, but we expect them to be. Explicitly make the version variables global.
...
Props nbachiyski.
Fixes #23685 .
git-svn-id: https://develop.svn.wordpress.org/trunk@26008 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-05 00:23:38 +00:00
Scott Taylor
0923b7b93a
Category and tag are typically checked before checking for a custom taxonomy. If the global query matches category or tag (even if it also has tax_query set), return category/tag as the queried object, instead of arbitrarily returning the first term in the tax_query
stack (typically those added with 'pre_get_posts').
...
Real world example: http://www.emusic.com/17dots/topics/daily-download/ - "tag" page, regionalized for US-only content using `pre_get_posts` passing in the terms "US" and "ALL" for "region" (custom tax). All of the theme functions would output "ALL" as the term name. Even though it was a tag archive, the queried object was an arbitrary term from `tax_query`.
See [26006]. All unit tests pass.
Fixes #20767 .
git-svn-id: https://develop.svn.wordpress.org/trunk@26007 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-04 23:53:55 +00:00
Scott Taylor
5321bc4957
WP_UnitTestCase::go_to()
tried its best to clean up global space, but ultimately fell short. Because it was blowing away WP
every time it was called, it was dropping all the query vars that were registered for custom taxonomies and custom post types (ouch).
...
Introduces `_cleanup_query_vars()`. This is a prerequisite for the unit tests on #20767 . All unit tests pass with this change.
See #20767 .
Fixes #25818 .
git-svn-id: https://develop.svn.wordpress.org/trunk@26006 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-04 22:46:44 +00:00
Lance Willett
e512f03e75
Twenty Fourteen: update bundled Genericons to the latest version, 3.0.2. Props iamtakashi, closes #25812 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@26003 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-04 18:07:18 +00:00
Lance Willett
848937c672
Twenty Thirteen: capitalize "Not Found" string for use in a page title, see #24891 and r25907.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@26002 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-04 17:56:32 +00:00
Sergey Biryukov
6fa1c89458
Pass comment ID and comment post ID to get_comment_class() in WP_Comments_List_Table::single_row().
...
props drozdz.
fixes #25814 .
git-svn-id: https://develop.svn.wordpress.org/trunk@26001 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-04 10:59:58 +00:00
Sergey Biryukov
acc8ac64b8
Fall back to comment author email in get_avatar() if the user who left the comment no longer exists.
...
props mauryaratan, lite3.
fixes #25803 .
git-svn-id: https://develop.svn.wordpress.org/trunk@26000 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-02 12:19:43 +00:00
Lance Willett
fcc1bb0b65
Twenty Fourteen: revamp the RTL stylesheet and related cleanup. Props iamtakashi, see #25801 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25999 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-02 04:35:35 +00:00
Lance Willett
b604102332
Twenty Fourteen: second pass at revamping the main CSS file. Update pattern graphics to fix issue with orientation changes on tablets. Props iamtakashi, fixes #25592 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25998 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-31 04:27:51 +00:00
Sergey Biryukov
3c625347e6
Correct $user_id parameter description. props mauryaratan, Corphi. fixes #25774 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25997 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-30 20:17:21 +00:00
Andrew Nacin
90202aed35
Explicitly globalize $is_nginx in vars.php.
...
props johnjamesjacoby.
fixes #25776 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25996 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-30 19:36:39 +00:00
Lance Willett
34139288e8
Twenty Fourteen: JavaScript fixes after running jshint, see r25960:
...
* Enforce `===` instead of `==`
* Fix confusing use of `!`
* Remove unused variables like `calcNext`, defined but never used
* Proper use of braces
* Move functions out of if/else statements
* Document unknown functions as Microsoft-specific
git-svn-id: https://develop.svn.wordpress.org/trunk@25995 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-30 18:52:54 +00:00
Drew Jaynes
206d47a9c2
Inline documentation for hooks in wp-admin/network/edit.php and wp-admin/network/users.php.
...
Props aralbald for the initial patch.
Fixes #25728 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25994 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-30 16:03:14 +00:00
Drew Jaynes
3dc92bdd03
Inline documentation for hooks in wp-admin/nav-menus.php.
...
Props pauldewouters for the intial patch.
Fixes #25528 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25993 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-30 15:44:32 +00:00
Sergey Biryukov
bc6c0c9b0f
Correct @since values for various hooks. fixes #25766 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25991 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-30 03:19:16 +00:00
Sergey Biryukov
a1fe0926b3
Remove incorrect @return value from status_header(). Rename some variables for clarity.
...
props tivnet for initial patch.
fixes #25451 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25990 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-29 22:43:08 +00:00
Andrew Nacin
23ad7058fb
Internal linking: Remove explicit orderby, thus allowing the relevancy improvements in #7394 to work.
...
see #25763 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25988 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-29 21:20:59 +00:00
Andrew Nacin
1cce2a89fd
PHP4 compatibility for files loaded before we bail. fixes #25760 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25986 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-29 20:05:16 +00:00
Lance Willett
e575c315fb
Twenty Fourteen: allow any page to be set as the front page, removing requirement for front-page.php
template file. Props iamtakashi, fixes #25685 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25985 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-29 19:05:02 +00:00
Drew Jaynes
6b711ca35e
Inline documentation for hooks in wp-admin/edit-form-comment.php.
...
Props rzen.
Fixes #25521 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25983 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-29 17:35:13 +00:00
Lance Willett
7b05d5c2e7
Twenty Fourteen: get rid of two last cases of clear
class value. See #25592 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25980 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-29 16:40:38 +00:00
Lance Willett
93b93b103f
Twenty Fourteen: implement an alternate "slider" view for home page featured content. Props iamtakashi for the design and implementation. Slider JavaScript code adapted from FlexSlider v2.2.0 props WooThemes and mbmufffin. See #25550 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25979 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-29 16:28:11 +00:00
Sergey Biryukov
e3e3e1d109
Remove docs suggesting that wp_insert_user() can be used to update an existing user. wp_update_user() should be used instead. fixes #25745 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25978 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-29 14:31:07 +00:00
Andrew Nacin
78f8c980da
Use correct variable in WP_Automatic_Updater::send_email().
...
props pento.
see #25757 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25977 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-29 13:45:17 +00:00
Andrew Nacin
2cac0fde8a
Avoid resetting the 'hierarchical' argument in get_pages() when 'parent' is -1, the default.
...
Fixes a regression introduced in [25270]. Adds unit tests.
props chrisbliss18.
fixes #25750 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25974 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-29 01:46:01 +00:00
Dominik Schilling (ocean90)
4be9031dc3
Widen fields for Quick Edit for the de_DE locale and improve styles for the ru_RU locale.
...
props zodiac1978.
fixes #25753 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25973 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 23:28:32 +00:00
Lance Willett
eb01af41c2
Twenty Fourteen: clean up post thumbnail naming. Props iamtakashi, fixes #25718 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25971 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 17:57:57 +00:00
Lance Willett
01a703070b
Twenty Fourteen: Fix gallery posts in the ephemera widget. Props iamtakashi, fixes #25740 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25970 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 17:52:45 +00:00
Lance Willett
bd5ac31911
Twenty Fourteen: display titles for aside, link, and quote format on small screens. Props iamtakashi, fixes #25694 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25969 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 17:48:46 +00:00
Sergey Biryukov
2e50c871ab
Avoid a PHP warning in wp_generate_attachment_metadata() if $metadata is not an array. props asakurayoh. fixes #25649 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25968 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 16:42:36 +00:00
Drew Jaynes
030d69717c
Inline documentation for hooks in wp-admin/network/settings.php.
...
Props ninio for the initial patches.
Fixes #25727 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25967 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 15:21:59 +00:00
Sergey Biryukov
9a5e8acead
Restore @see get_next_post_link() reference and move it to next_post_link(). see #25743 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25966 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 11:10:28 +00:00
Sergey Biryukov
5674a54940
Fix a copy/paste error in get_next_post_link() description and $format argument. props jim912, ounziw. fixes #25743 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25965 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 11:05:26 +00:00
Sergey Biryukov
267b476885
Fix a copy/paste error in wp_update_theme() description. props Caspie. fixes #25742 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25964 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 10:55:50 +00:00
Drew Jaynes
e496679014
Clarify that wpmu_update_blog_options
fires after ''site'' options are updated.
...
See #25725 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25963 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 00:16:54 +00:00
Drew Jaynes
d8f9cc6fff
Mark subdirectory_reserved_names
filter as duplicate in wp-admin/network/site-new.php.
...
Props ninio.
Fixes #25729 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25962 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 23:36:46 +00:00
Drew Jaynes
3a26e383ae
Inline documentation for hooks in wp-admin/includes/theme.php.
...
Props l10n for the initial patch.
Fixes #25732 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25961 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 22:45:32 +00:00
Andrew Nacin
add8bc4e57
Add a $taxonomy argument to each of the adjacent post functions.
...
Each took an array of category (IDs) when to search. Those can now be term IDs and each function now has $taxonomy = 'category' as an optional argument.
Functions affected: get_previous_post(), get_next_post(), get_adjacent_post(), get_adjacent_post_rel_link(), adjacent_posts_rel_link(), next_post_rel_link(), prev_post_rel_link(), get_boundary_post(), get_previous_post_link(), previous_post_link(), get_next_post_link(), next_post_link(), get_adjacent_post_link(), adjacent_post_link().
props ethitter.
finally fixes #17807 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25959 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 21:39:51 +00:00
Andrew Nacin
1694272bff
When an HTTPS request to api.wordpress.org fails, try an insecure HTTP request and issue a warning.
...
Certain versions of cURL appear to claim OpenSSL support but fail to work. We need to not trap users on older versions while we work this out, and instead fall back to an insecure request.
see #25716 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25956 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 21:08:25 +00:00
Andrew Nacin
47c58004fe
Query stopwords: Only eliminate single A-Z letters as search terms.
...
Stop trying to match any single letters that are not East Asian characters, as this requires PCRE with UTF-8 support; and because it doesn't actually work.
fixes #25709 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25954 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 20:50:31 +00:00
Helen Hou-Sandi
61b82f7eb3
Consolidate logic for not showing a taxonomy meta box. props ocean90. fixes #21543 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25953 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 20:35:49 +00:00
Drew Jaynes
4b1e151b04
Inline documentation for hooks in wp-admin/network/site-settings.php.
...
Props admiralthrawn.
Fixes #25725 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25952 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 20:04:16 +00:00
Drew Jaynes
eaedc9b427
Inline documentation for hooks in wp-admin/update.php.
...
Props ninio, kpdesign.
Fixes #25723 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25951 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 18:36:37 +00:00
Drew Jaynes
1c625a49ac
Inline documentation for hooks in wp-includes/functions.wp-styles.php.
...
Props admiralthrawn.
Fixes #25722 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25950 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 17:58:32 +00:00
Drew Jaynes
1c127e99bd
Inline documentation for hooks in wp-includes/functions.wp-scripts.php.
...
Props ninio for the initial patch.
Fixes #25720 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25949 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 17:50:38 +00:00
Helen Hou-Sandi
b2e15261ba
Allow passing false
for the meta_box_cb
arg in register_taxonomy()
to turn off the meta box display entirely. fixes #21543 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25948 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 16:28:19 +00:00
Andrew Nacin
6af7557201
Update readme in trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25947 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 15:34:59 +00:00
Drew Jaynes
5f3883cc8f
Revert another instance where a WP
property was assigned to a one-time variable for inline docs purposes.
...
Referencing a non-existent variable only in the docs here would have been the better choice.
See #25495 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25946 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 07:58:24 +00:00
Drew Jaynes
0969689efb
Fix error introduced in [25940] where $public_query_vars
should have only been used as a non-existent inline docs variable in the query_vars
filter.
...
Restores `$this->public_query_vars` to the `query_vars` filter in wp-includes/class-wp.php.
Props mauryaratan.
Fixes #25495 . See #25719 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25945 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 07:48:34 +00:00
Andrew Ozz
0bb0c068ef
Bump the TinyMCE version for 3.8, see #25700 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25944 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 21:44:39 +00:00
Drew Jaynes
d26d83a36d
Inline documentation for hooks in wp-admin/async-upload.php.
...
Props rzen for the initial patch.
Fixes #25517 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25942 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 21:40:13 +00:00
Drew Jaynes
3c1036d653
Inline documentation for hooks in wp-includes/admin-bar.php.
...
Props swissspidy.
Fixes #25508 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25941 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 21:18:00 +00:00
Drew Jaynes
421d906a59
Inline documentation for hooks in wp-includes/class-wp.php.
...
Props dougwollison.
Fixes #25495 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25940 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 21:02:06 +00:00
Drew Jaynes
4d9d985a64
Inline documentation for hooks in wp-admin/network/site-users.php.
...
Props sboisvert for the initial patch. Props kpdesign.
Fixes #25497 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25939 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 20:32:14 +00:00
Drew Jaynes
acb441a519
Inline documentation for hooks in wp-admin/includes/schema.php.
...
Props johnafish, kpdesign.
Fixes #25498 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25938 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 20:28:34 +00:00
Drew Jaynes
25becc93f9
Inline documentation for hooks in wp-admin/tool.php.
...
Props dougwollison for the initial patch.
Fixes #25496 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25937 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 19:22:08 +00:00
Drew Jaynes
eef2e83b13
Inline documentation for hooks in wp-admin/includes/nav-menu.php.
...
Props Faison.
Fixes #25474 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25935 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 17:47:33 +00:00
Drew Jaynes
3f8c645247
Inline documentation for hooks in wp-includes/bookmark.php.
...
Props ShinichiN, kpdesign.
Fixes #25468 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25934 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 16:52:48 +00:00
Andrew Nacin
90b55d0279
Fix the exclude_tree argument in get_terms(), which fixes the exclude argument in wp_list_categories().
...
This was a 3.7 regression caused by [25162].
props dd32.
see #25710 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25933 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 15:03:10 +00:00
Andrew Nacin
287e4db6f6
In search stopwords filtering, suppress possible PHP warnings when PCRE lacks UTF-8 support.
...
see #25709 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25932 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 05:58:37 +00:00
Andrew Nacin
eba5ddbcfa
Have get_current_user_id() return 0 when pluggable.php is not yet included (which brings the ability to set or get the current user).
...
fixes #25690 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25929 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 03:19:41 +00:00
Andrew Nacin
350c015f94
In update_option(), call the update_option hook before the DB update.
...
Reverses a regression from [25664].
props calin.
fixes #25705 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25925 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 02:56:24 +00:00
Andrew Nacin
559dc21202
3.7 regression from [25119]: Have in_category() return false when the first argument is empty.
...
Adds unit tests.
props ericlewis.
fixes #25706 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25923 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 02:53:30 +00:00
Andrew Nacin
99a4f77ea7
3.7 regression: Fix the width of captioned images inserted into the visual editor.
...
Pulls some arithmetic outside of some string concatenation to avoid a nasty uglify.js regression: https://github.com/mishoo/UglifyJS2/pull/330 .
props LucP.
fixes #25700 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25921 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 02:50:02 +00:00
Andrew Nacin
9a2bf56fc3
Avoid a notice for an undefined $checksums variable when updating from pre-3.7 to post-3.7.
...
props GaryJ.
fixes #25689 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25915 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-25 20:14:23 +00:00
Andrew Nacin
9e70ced313
POT update.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25911 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 20:37:53 +00:00
Andrew Nacin
53a3ebddce
Translator comments are special, make sure they are parsed properly. see #25256 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25908 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 20:28:43 +00:00
Andrew Nacin
04397b30c6
Twenty Thirteen: Restore the original "Not found" string. see #24891 , for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25907 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 20:19:19 +00:00
Andrew Nacin
af5921fdca
Update POT files for Twenty Ten through Twenty Thirteen.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25904 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 20:01:08 +00:00
Lance Willett
ddb409d998
Bundled themes: bump version numbers (ignoring Twenty Ten).
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25902 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 19:36:48 +00:00
Andrew Nacin
ceaf87ff2d
Maintain the same output for get_avatar() as 3.6. see [25895].
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25899 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 19:31:06 +00:00
Andrew Nacin
7508e7c03b
Add editimage.min.js to $_old_files. see #24999 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25897 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 19:26:11 +00:00
Andrew Nacin
31e45a7aeb
Always escape URLs at the last possible moment.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25895 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 18:51:59 +00:00
Andrew Nacin
391b22a4de
Confirm delete_site_option() exists before calling it during an update.
...
This function won't yet exist when updating from 2.7 [sic].
fixes #25682 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25893 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 18:17:41 +00:00
Andrew Nacin
9c5420d74d
Remove debug code from WP_Automatic_Updater::send_email().
...
props markmcwilliams for initial patch.
see #25678 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25891 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 01:50:09 +00:00
Andrew Nacin
a75c4a56a8
Avoid notice with search feeds.
...
fixes #25677 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25889 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-23 20:54:22 +00:00
Andrew Nacin
ed15997210
About page: Cache our zxcvbn calls and limit the variation of the animation.
...
Diff is mostly whitespace.
props jorbin, azaozz.
fixes #25603 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25884 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-23 19:50:30 +00:00
Andrew Nacin
1d33726b1a
About page, updates section: Don't show a message on about.php if the updater is 100% disabled. Don't show it if the user can't update core. Don't show the email if notifications are disabled. New string.
...
see #25603 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25883 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-23 19:47:39 +00:00
Andrew Nacin
3d2776d023
Introduce a send_core_update_notification_email filter to control whether to send update notifications.
...
Currently, this is dependent on whether the automatic updater is enabled (generally). This is likely to be decoupled in a future release.
This refocuses the auto_core_update_send_email filter to specifically be for success/fail emails for auto updates, while the new filter is more general.
see #25603 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25882 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-23 19:46:33 +00:00
Ryan Boren
30f822b8ee
Pinking shears
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25880 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-23 14:37:54 +00:00
Andrew Nacin
b10ef05fb1
Trunk is now 3.8-alpha
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25879 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 23:58:08 +00:00
Andrew Nacin
c773d253ec
3.7-RC2
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25875 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 22:09:18 +00:00
Andrew Nacin
46302236ae
Have heartbeat's connection lost notice handle 503 errors send by the upgrader's maintenance mode.
...
fixes #25660 for 3.7.
git-svn-id: https://develop.svn.wordpress.org/trunk@25874 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 21:26:04 +00:00
Andrew Nacin
ff69fb4b8f
Make some changes to the email templates to account for the fact that an auto update offer might not be to the latest version.
...
For example, 3.7.2 install is served a 3.7.3 update, but the current version is 3.8.1.
This commit also allows for core update notification emails to be sent even when we are unable to run an auto update due to filesystem configuration (VCS checkout or file permissions). But, since these emails go through WP_Automatic_Updater, they will not be sent if the updater is outright disabled.
fixes #25654 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25873 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 21:18:09 +00:00
Andrew Nacin
aab4ffb29d
Show the nag we show for a stuck .maintenance file when an auto update failed.
...
see #25654 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25872 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 21:14:06 +00:00
Andrew Nacin
ddbc271329
"some files" instead of "certain files". Less stuffy.
...
props markjaquith.
see #25652 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25871 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 18:40:20 +00:00
Andrew Nacin
f36fbb550c
New, better error message when we realize we won't be able to copy a file and continue with the update.
...
fixes #25652 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25870 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 18:20:51 +00:00
Andrew Nacin
1a7bfffd0b
Only enforce disk free space checks when doing background updates.
...
see #25652 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25869 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 18:17:13 +00:00
Andrew Nacin
c87ad6023d
Spell out duplicate hook locations.
...
props DrewAPicture.
fixes #25658 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25868 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 17:21:32 +00:00
Andrew Nacin
d3981e2793
Always apply the posts_search filter. Restores 3.6 behavior.
...
props SergeyBiryukov.
fixes #25664 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25867 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 17:20:17 +00:00
Andrew Nacin
ea7d0de723
Updates: Disable maintenance mode once we've finished copying files, to minimize disruption.
...
props dd32.
fixes #25655 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25866 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 17:19:48 +00:00