Dion Hulse
560b0c8b0a
Fix a case where wp_guess_url() would leave a prefixed path in the generated URL when symlinks were involved. Fixes #25797
...
Built from https://develop.svn.wordpress.org/trunk@26031
git-svn-id: http://core.svn.wordpress.org/trunk@25961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-07 03:34:10 +00:00
Sergey Biryukov
bf6f02320a
A negative term parent value should be sanitized to 0, not 1. Fix a regression in sanitize_term_field() caused by [26010].
...
props mattheu for initial patch.
fixes #25852 .
Built from https://develop.svn.wordpress.org/trunk@26028
git-svn-id: http://core.svn.wordpress.org/trunk@25958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-06 23:41:09 +00:00
Sergey Biryukov
72d4b140fb
Make Twenty Fourteen the default theme. props markmcwilliams. fixes #25702 .
...
Built from https://develop.svn.wordpress.org/trunk@26024
git-svn-id: http://core.svn.wordpress.org/trunk@25955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-06 20:02:09 +00:00
Sergey Biryukov
918e8bab96
Remove irrelevant @see references. props mt8.biz. fixes #25843 .
...
Built from https://develop.svn.wordpress.org/trunk@26022
git-svn-id: http://core.svn.wordpress.org/trunk@25953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-06 10:17:09 +00:00
Scott Taylor
a519007202
Respect paged
when offset
is used in WP_Query
. Adds unit tests.
...
Props coffee2code.
Fixes #18897 .
Built from https://develop.svn.wordpress.org/trunk@26012
git-svn-id: http://core.svn.wordpress.org/trunk@25943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 01:35:10 +00:00
Scott Taylor
cefafee3d3
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.
Built from https://develop.svn.wordpress.org/trunk@26010
git-svn-id: http://core.svn.wordpress.org/trunk@25941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 01:19:11 +00:00
Scott Taylor
7d7ba0aea3
Don't globalize version variables twice. See #23685 .
...
Built from https://develop.svn.wordpress.org/trunk@26009
git-svn-id: http://core.svn.wordpress.org/trunk@25940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 00:58:09 +00:00
Scott Taylor
92ba8748aa
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 .
Built from https://develop.svn.wordpress.org/trunk@26008
git-svn-id: http://core.svn.wordpress.org/trunk@25939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 00:24:10 +00:00
Scott Taylor
ca85591c3c
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 .
Built from https://develop.svn.wordpress.org/trunk@26007
git-svn-id: http://core.svn.wordpress.org/trunk@25938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-04 23:54:10 +00:00
Scott Taylor
a5eb3208d7
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 .
Built from https://develop.svn.wordpress.org/trunk@26006
git-svn-id: http://core.svn.wordpress.org/trunk@25937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-04 22:47:10 +00:00
Sergey Biryukov
40391f4e37
Fall back to comment author email in get_avatar() if the user who left the comment no longer exists.
...
props mauryaratan, lite3.
fixes #25803 .
Built from https://develop.svn.wordpress.org/trunk@26000
git-svn-id: http://core.svn.wordpress.org/trunk@25933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-02 12:20:11 +00:00
Sergey Biryukov
0888c85811
Correct $user_id parameter description. props mauryaratan, Corphi. fixes #25774 .
...
Built from https://develop.svn.wordpress.org/trunk@25997
git-svn-id: http://core.svn.wordpress.org/trunk@25930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-30 20:18:10 +00:00
Andrew Nacin
11eb5055ac
Explicitly globalize $is_nginx in vars.php.
...
props johnjamesjacoby.
fixes #25776 .
Built from https://develop.svn.wordpress.org/trunk@25996
git-svn-id: http://core.svn.wordpress.org/trunk@25929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-30 19:37:09 +00:00
Andrew Nacin
d0cfa40983
Add jshintrc to qunit.
...
props jorbin.
see #25187 .
Built from https://develop.svn.wordpress.org/trunk@25992
git-svn-id: http://core.svn.wordpress.org/trunk@25925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-30 14:39:10 +00:00
Andrew Nacin
26d4fdf58d
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 .
Built from https://develop.svn.wordpress.org/trunk@25959
git-svn-id: http://core.svn.wordpress.org/trunk@25918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-27 21:40:09 +00:00
Andrew Nacin
a8ef13972c
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.
Built from https://develop.svn.wordpress.org/trunk@25956
git-svn-id: http://core.svn.wordpress.org/trunk@25915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-27 21:09:10 +00:00
Andrew Nacin
3b82280cb4
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 .
Built from https://develop.svn.wordpress.org/trunk@25954
git-svn-id: http://core.svn.wordpress.org/trunk@25913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-27 20:51:10 +00:00
Drew Jaynes
02d3a290ec
Inline documentation for hooks in wp-includes/functions.wp-styles.php.
...
Props admiralthrawn.
Fixes #25722 .
Built from https://develop.svn.wordpress.org/trunk@25950
git-svn-id: http://core.svn.wordpress.org/trunk@25909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-27 17:59:09 +00:00
Drew Jaynes
d3fbb93eb1
Inline documentation for hooks in wp-includes/functions.wp-scripts.php.
...
Props ninio for the initial patch.
Fixes #25720 .
Built from https://develop.svn.wordpress.org/trunk@25949
git-svn-id: http://core.svn.wordpress.org/trunk@25908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-27 17:51:09 +00:00
Helen Hou-Sandí
7fa704d972
Allow passing false
for the meta_box_cb
arg in register_taxonomy()
to turn off the meta box display entirely. fixes #21543 .
...
Built from https://develop.svn.wordpress.org/trunk@25948
git-svn-id: http://core.svn.wordpress.org/trunk@25907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-27 16:29:09 +00:00
Drew Jaynes
85ccb59294
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 .
Built from https://develop.svn.wordpress.org/trunk@25946
git-svn-id: http://core.svn.wordpress.org/trunk@25905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-27 07:59:10 +00:00
Drew Jaynes
c01501b516
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 .
Built from https://develop.svn.wordpress.org/trunk@25945
git-svn-id: http://core.svn.wordpress.org/trunk@25904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-27 07:49:09 +00:00
Andrew Ozz
fde786ab5d
Bump the TinyMCE version for 3.8, see #25700 .
...
Built from https://develop.svn.wordpress.org/trunk@25944
git-svn-id: http://core.svn.wordpress.org/trunk@25903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-26 21:45:09 +00:00
Drew Jaynes
a7465eb374
Inline documentation for hooks in wp-includes/admin-bar.php.
...
Props swissspidy.
Fixes #25508 .
Built from https://develop.svn.wordpress.org/trunk@25941
git-svn-id: http://core.svn.wordpress.org/trunk@25900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-26 21:18:09 +00:00
Drew Jaynes
75e0cad6af
Inline documentation for hooks in wp-includes/class-wp.php.
...
Props dougwollison.
Fixes #25495 .
Built from https://develop.svn.wordpress.org/trunk@25940
git-svn-id: http://core.svn.wordpress.org/trunk@25899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-26 21:03:09 +00:00
Drew Jaynes
3c22a3fd6d
Inline documentation for hooks in wp-includes/bookmark.php.
...
Props ShinichiN, kpdesign.
Fixes #25468 .
Built from https://develop.svn.wordpress.org/trunk@25934
git-svn-id: http://core.svn.wordpress.org/trunk@25893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-26 16:53:09 +00:00
Andrew Nacin
bba2a414a2
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.
Built from https://develop.svn.wordpress.org/trunk@25933
git-svn-id: http://core.svn.wordpress.org/trunk@25892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-26 15:04:11 +00:00
Andrew Nacin
c08aee70bb
In search stopwords filtering, suppress possible PHP warnings when PCRE lacks UTF-8 support.
...
see #25709 .
Built from https://develop.svn.wordpress.org/trunk@25932
git-svn-id: http://core.svn.wordpress.org/trunk@25891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-26 05:59:09 +00:00
Andrew Nacin
823ad1ae6e
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.
Built from https://develop.svn.wordpress.org/trunk@25929
git-svn-id: http://core.svn.wordpress.org/trunk@25888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-26 03:20:09 +00:00
Andrew Nacin
d6b436afe8
In update_option(), call the update_option hook before the DB update.
...
Reverses a regression from [25664].
props calin.
fixes #25705 for trunk.
Built from https://develop.svn.wordpress.org/trunk@25925
git-svn-id: http://core.svn.wordpress.org/trunk@25884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-26 02:57:09 +00:00
Andrew Nacin
73ee71a239
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.
Built from https://develop.svn.wordpress.org/trunk@25923
git-svn-id: http://core.svn.wordpress.org/trunk@25882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-26 02:54:10 +00:00
Andrew Nacin
dfe0e26154
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.
Built from https://develop.svn.wordpress.org/trunk@25921
git-svn-id: http://core.svn.wordpress.org/trunk@25880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-26 02:51:09 +00:00
Andrew Nacin
1a2f89d5d0
Avoid a notice for an undefined $checksums variable when updating from pre-3.7 to post-3.7.
...
props GaryJ.
fixes #25689 for trunk.
Built from https://develop.svn.wordpress.org/trunk@25915
git-svn-id: http://core.svn.wordpress.org/trunk@25878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-25 20:15:10 +00:00
Andrew Nacin
70fd806759
Revert r25824:25875 from the core.svn.wordpress.org repository.
...
These commits were accidentally re-synced commits from develop.svn.wordpress.org due to a race condition. Thankfully, the history of this repository matters fairly little. It also happened only for trunk.
git-svn-id: http://core.svn.wordpress.org/trunk@25876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-25 02:29:52 +00:00
Andrew Nacin
38775d5a1d
3.7-RC2
...
Built from https://develop.svn.wordpress.org/trunk@25875
git-svn-id: http://core.svn.wordpress.org/trunk@25875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 23:00:19 +00:00
Andrew Nacin
ede8b8db88
Have heartbeat's connection lost notice handle 503 errors send by the upgrader's maintenance mode.
...
fixes #25660 for 3.7.
Built from https://develop.svn.wordpress.org/trunk@25874
git-svn-id: http://core.svn.wordpress.org/trunk@25874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 23:00:09 +00:00
Andrew Nacin
ac2e70227f
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 .
Built from https://develop.svn.wordpress.org/trunk@25873
git-svn-id: http://core.svn.wordpress.org/trunk@25873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 23:00:01 +00:00
Andrew Nacin
5361a8abca
Spell out duplicate hook locations.
...
props DrewAPicture.
fixes #25658 .
Built from https://develop.svn.wordpress.org/trunk@25868
git-svn-id: http://core.svn.wordpress.org/trunk@25868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:59:20 +00:00
Andrew Nacin
93e54b6646
Always apply the posts_search filter. Restores 3.6 behavior.
...
props SergeyBiryukov.
fixes #25664 .
Built from https://develop.svn.wordpress.org/trunk@25867
git-svn-id: http://core.svn.wordpress.org/trunk@25867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:59:12 +00:00
Drew Jaynes
2d58250bea
Improve inline documentation for the wp_get_sites()
return value.
...
Fixes #25645 .
Built from https://develop.svn.wordpress.org/trunk@25862
git-svn-id: http://core.svn.wordpress.org/trunk@25862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:58:32 +00:00
Andrew Nacin
de7977d66c
Move upgrader_process_complete for core to its proper place in Core_Upgrader.
...
This means it will be firing as a JS redirect is taking place if the update is from pre-3.4. Acceptable.
props dd32.
fixes #25659 .
Built from https://develop.svn.wordpress.org/trunk@25861
git-svn-id: http://core.svn.wordpress.org/trunk@25861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:58:23 +00:00
Drew Jaynes
4d1482cd0d
Inline documentation for the WP_Date_Query
class in wp-includes/date.php.
...
- Adds a complete hash notation for the `WP_Date_Query` arguments array.
- Adds missing documentation for the `date_query_valid_columns` and `get_date_sql` filter hooks.
Props aeg0125 for the incremental patches.
Fixes #25552 .
Built from https://develop.svn.wordpress.org/trunk@25860
git-svn-id: http://core.svn.wordpress.org/trunk@25860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:58:12 +00:00
Andrew Ozz
48ce800aab
TinyMCE: fix detection of IE11 in compatibility mode, fixes #25634 .
...
Built from https://develop.svn.wordpress.org/trunk@25852
git-svn-id: http://core.svn.wordpress.org/trunk@25852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:57:01 +00:00
Andrew Nacin
04bbb52c7c
Commit [25823] should not have renamed AUTOMATIC_UPDATER_DISABLED to AUTOMATIC_UPDATES_DISABLED.
...
The proper constant is AUTOMATIC_UPDATER_DISABLED. Keep the filter in line with that too.
see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25851
git-svn-id: http://core.svn.wordpress.org/trunk@25851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:56:54 +00:00
Andrew Nacin
e369b3b242
3.7-RC1
...
Built from https://develop.svn.wordpress.org/trunk@25850
git-svn-id: http://core.svn.wordpress.org/trunk@25850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:56:46 +00:00
Andrew Nacin
83b20ee7f9
Notify administrators of successful, failed, and pending core updates.
...
Blocks future background updates after critical failures, but allow retries in certain situations. More in the ticket.
fixes #10787 .
Built from https://develop.svn.wordpress.org/trunk@25841
git-svn-id: http://core.svn.wordpress.org/trunk@25841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:55:30 +00:00
Andrew Nacin
b13c7791a9
Awesome about page design for WordPress 3.7.
...
The page includes a giant password meter that serves as both an animated example and a working demo. How cool is that?
props jorbin, melchoyce.
see #25603 .
Built from https://develop.svn.wordpress.org/trunk@25839
git-svn-id: http://core.svn.wordpress.org/trunk@25839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:55:12 +00:00
Andrew Nacin
a3561e7e07
In automatic background updates, standardize on 'update'.
...
New, final filter names:
* auto_update_{$type} (plugin, theme, core, language)
* automatic_updates_is_vcs_checkout
* automatic_updates_disabled
New class name is WP_Automatic_Updater. Method names include update() and should_update().
see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25835
git-svn-id: http://core.svn.wordpress.org/trunk@25835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:54:38 +00:00
Andrew Nacin
deadb7b296
Avoid a notice in is_main_network() when called in single site. see #25030 .
...
Built from https://develop.svn.wordpress.org/trunk@25827
git-svn-id: http://core.svn.wordpress.org/trunk@25827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:53:31 +00:00
Andrew Nacin
8ae8e01b67
Remove the old wp_auto_updates_maybe_update cron event. Schedule the new wp_maybe_auto_update event at 7 a.m. and 7 p.m. in the site's timezone.
...
see #27704 .
Built from https://develop.svn.wordpress.org/trunk@25825
git-svn-id: http://core.svn.wordpress.org/trunk@25825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:53:14 +00:00
Andrew Nacin
9c6a15ef8f
Maintain the same output for get_avatar() as 3.6. see [25895].
...
Built from https://develop.svn.wordpress.org/trunk@25899
git-svn-id: http://core.svn.wordpress.org/trunk@25811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 19:32:09 +00:00
Andrew Nacin
af4535596b
Always escape URLs at the last possible moment.
...
Built from https://develop.svn.wordpress.org/trunk@25895
git-svn-id: http://core.svn.wordpress.org/trunk@25807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 18:52:11 +00:00
Andrew Nacin
77ca1f202a
Avoid notice with search feeds.
...
fixes #25677 .
Built from https://develop.svn.wordpress.org/trunk@25889
git-svn-id: http://core.svn.wordpress.org/trunk@25801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-23 20:55:10 +00:00
Ryan Boren
b87d4b77e5
Pinking shears
...
Built from https://develop.svn.wordpress.org/trunk@25880
git-svn-id: http://core.svn.wordpress.org/trunk@25792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-23 14:38:10 +00:00
Andrew Nacin
c3d62fc1df
Trunk is now 3.8-alpha
...
Built from https://develop.svn.wordpress.org/trunk@25879
git-svn-id: http://core.svn.wordpress.org/trunk@25791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 23:59:10 +00:00
Andrew Nacin
d14ac1d48a
3.7-RC2
...
Built from https://develop.svn.wordpress.org/trunk@25875
git-svn-id: http://core.svn.wordpress.org/trunk@25787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 22:10:10 +00:00
Andrew Nacin
ffd7f53bcf
Have heartbeat's connection lost notice handle 503 errors send by the upgrader's maintenance mode.
...
fixes #25660 for 3.7.
Built from https://develop.svn.wordpress.org/trunk@25874
git-svn-id: http://core.svn.wordpress.org/trunk@25786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 21:27:09 +00:00
Andrew Nacin
a387c3bef9
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 .
Built from https://develop.svn.wordpress.org/trunk@25873
git-svn-id: http://core.svn.wordpress.org/trunk@25785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 21:19:09 +00:00
Andrew Nacin
74488bdcb0
Spell out duplicate hook locations.
...
props DrewAPicture.
fixes #25658 .
Built from https://develop.svn.wordpress.org/trunk@25868
git-svn-id: http://core.svn.wordpress.org/trunk@25780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 17:22:11 +00:00
Andrew Nacin
6d97f53134
Always apply the posts_search filter. Restores 3.6 behavior.
...
props SergeyBiryukov.
fixes #25664 .
Built from https://develop.svn.wordpress.org/trunk@25867
git-svn-id: http://core.svn.wordpress.org/trunk@25779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 17:21:09 +00:00
Drew Jaynes
56f3f3de4e
Improve inline documentation for the wp_get_sites()
return value.
...
Fixes #25645 .
Built from https://develop.svn.wordpress.org/trunk@25862
git-svn-id: http://core.svn.wordpress.org/trunk@25774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 05:48:09 +00:00
Drew Jaynes
040d18a69f
Inline documentation for the WP_Date_Query
class in wp-includes/date.php.
...
- Adds a complete hash notation for the `WP_Date_Query` arguments array.
- Adds missing documentation for the `date_query_valid_columns` and `get_date_sql` filter hooks.
Props aeg0125 for the incremental patches.
Fixes #25552 .
Built from https://develop.svn.wordpress.org/trunk@25860
git-svn-id: http://core.svn.wordpress.org/trunk@25772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-21 23:17:09 +00:00
Andrew Ozz
8bfa1e8d24
TinyMCE: fix detection of IE11 in compatibility mode, fixes #25634 .
...
Built from https://develop.svn.wordpress.org/trunk@25852
git-svn-id: http://core.svn.wordpress.org/trunk@25764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 22:59:08 +00:00
Andrew Nacin
ee489a2e81
Commit [25823] should not have renamed AUTOMATIC_UPDATER_DISABLED to AUTOMATIC_UPDATES_DISABLED.
...
The proper constant is AUTOMATIC_UPDATER_DISABLED. Keep the filter in line with that too.
see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25851
git-svn-id: http://core.svn.wordpress.org/trunk@25763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 21:24:10 +00:00
Andrew Nacin
42155c8d7f
3.7-RC1
...
Built from https://develop.svn.wordpress.org/trunk@25850
git-svn-id: http://core.svn.wordpress.org/trunk@25762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 19:48:09 +00:00
Andrew Nacin
ee20af1fad
Notify administrators of successful, failed, and pending core updates.
...
Blocks future background updates after critical failures, but allow retries in certain situations. More in the ticket.
fixes #10787 .
Built from https://develop.svn.wordpress.org/trunk@25841
git-svn-id: http://core.svn.wordpress.org/trunk@25753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 16:30:11 +00:00
Andrew Nacin
328a847bc1
Awesome about page design for WordPress 3.7.
...
The page includes a giant password meter that serves as both an animated example and a working demo. How cool is that?
props jorbin, melchoyce.
see #25603 .
Built from https://develop.svn.wordpress.org/trunk@25839
git-svn-id: http://core.svn.wordpress.org/trunk@25751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 08:11:09 +00:00
Andrew Nacin
a65661abee
In automatic background updates, standardize on 'update'.
...
New, final filter names:
* auto_update_{$type} (plugin, theme, core, language)
* automatic_updates_is_vcs_checkout
* automatic_updates_disabled
New class name is WP_Automatic_Updater. Method names include update() and should_update().
see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25835
git-svn-id: http://core.svn.wordpress.org/trunk@25747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 23:21:10 +00:00
Andrew Nacin
8f0f48e3f9
Avoid a notice in is_main_network() when called in single site. see #25030 .
...
Built from https://develop.svn.wordpress.org/trunk@25827
git-svn-id: http://core.svn.wordpress.org/trunk@25739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 05:17:08 +00:00
Andrew Nacin
9432acde4e
Remove the old wp_auto_updates_maybe_update cron event. Schedule the new wp_maybe_auto_update event at 7 a.m. and 7 p.m. in the site's timezone.
...
see #27704 .
Built from https://develop.svn.wordpress.org/trunk@25825
git-svn-id: http://core.svn.wordpress.org/trunk@25737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 04:02:09 +00:00
Andrew Nacin
191efaef61
Make WP_Automatic_Upgrader a proper object that gets instantiated. Renames nearly all of its methods.
...
Also renames wp_auto_updates_maybe_update() to wp_maybe_auto_update().
see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25823
git-svn-id: http://core.svn.wordpress.org/trunk@25735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 00:55:09 +00:00
Andrew Nacin
ba0ebf3736
Include translations in the update bubbles (as +1 if there are any). see #18200 .
...
Built from https://develop.svn.wordpress.org/trunk@25810
git-svn-id: http://core.svn.wordpress.org/trunk@25722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 14:34:10 +00:00
Andrew Nacin
b02867a1c4
Avoid printing a possible HTML element. fixes #24813 .
...
Built from https://develop.svn.wordpress.org/trunk@25809
git-svn-id: http://core.svn.wordpress.org/trunk@25721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 04:46:10 +00:00
Andrew Nacin
4542fbb2ae
Significantly simplify get_core_checksums(), as the caching and chunking was causing too much grief.
...
Make sure we only do our pre-flight is_writable check when the file exists.
see #18201 . see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25801
git-svn-id: http://core.svn.wordpress.org/trunk@25713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-15 23:03:10 +00:00
Andrew Nacin
9507d22243
Use correct variable. see #22704 .
...
Built from https://develop.svn.wordpress.org/trunk@25800
git-svn-id: http://core.svn.wordpress.org/trunk@25712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-15 22:07:09 +00:00
Andrew Nacin
ee7050d892
3.7-beta2-25795
...
Built from https://develop.svn.wordpress.org/trunk@25795
git-svn-id: http://core.svn.wordpress.org/trunk@25707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-15 19:20:08 +00:00
Andrew Nacin
f9be8e4f0c
Revert [25202] and enforce that wp_add_inline_style() does not want <style> tags.
...
Prior to 3.7, these tags were not printed (and thus needed to be provided), but only in the admin and when concatenation was enabled. They should never be required. Strip them when we find them and issue a notice for incorrect usage.
props atimmer, georgestephanis.
fixes #24813 .
Built from https://develop.svn.wordpress.org/trunk@25786
git-svn-id: http://core.svn.wordpress.org/trunk@25698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-15 14:35:09 +00:00
Andrew Nacin
cdede88a23
Automatic updates: Include error data in the follow-up API request.
...
props dd32.
see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25781
git-svn-id: http://core.svn.wordpress.org/trunk@25694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-14 23:33:10 +00:00
Andrew Nacin
d68a80217f
In unzip_file(), confirm we have enough available disk space before extracting.
...
"enough" is calculated by adding up the uncompressed size of the files in the archive, then adding a 20% buffer.
props dd32.
fixes #25576 .
Built from https://develop.svn.wordpress.org/trunk@25774
git-svn-id: http://core.svn.wordpress.org/trunk@25687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-14 20:15:09 +00:00
Andrew Nacin
31cf7e9d80
3.7-beta2-25773
...
Built from https://develop.svn.wordpress.org/trunk@25773
git-svn-id: http://core.svn.wordpress.org/trunk@25686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-14 19:40:09 +00:00
Andrew Ozz
7c78a9cdae
Update the basic browser detection to detect IE11. Fixes #25562 .
...
Built from https://develop.svn.wordpress.org/trunk@25767
git-svn-id: http://core.svn.wordpress.org/trunk@25680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-11 17:26:09 +00:00
Andrew Ozz
debbfea3bf
Upgrade TinyMCE to 3.5.9. Fix the css for the original 'fullscreen' plugin (not enabled by default).
...
Fixes #25561 , fixes #25281 .
Built from https://develop.svn.wordpress.org/trunk@25761
git-svn-id: http://core.svn.wordpress.org/trunk@25674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-10 21:50:09 +00:00
Andrew Nacin
0aff23a40e
3.7-beta2-25760
...
Built from https://develop.svn.wordpress.org/trunk@25760
git-svn-id: http://core.svn.wordpress.org/trunk@25673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-10 21:34:09 +00:00
Andrew Nacin
5e4cfd4f70
3.7-beta2
...
Built from https://develop.svn.wordpress.org/trunk@25759
git-svn-id: http://core.svn.wordpress.org/trunk@25672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-10 21:02:10 +00:00
Dion Hulse
98762b4a30
Correct a variable typo in [25750]. See #22704
...
Built from https://develop.svn.wordpress.org/trunk@25751
git-svn-id: http://core.svn.wordpress.org/trunk@25664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-10 01:38:10 +00:00
Dion Hulse
0b9f198994
In the event that an Automatic Upgrade fails, send a failure status on the next API request to indicate that it failed, and if the rollback was successful.
...
See #22704
Built from https://develop.svn.wordpress.org/trunk@25750
git-svn-id: http://core.svn.wordpress.org/trunk@25663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-10 01:32:09 +00:00
Andrew Ozz
65cd133a6f
TinyMCE: add support for IE11.
...
- Add the latest changes from the 3.x branch upstream.
- Reduce the number of calls to tinyMCEPopup.restoreSelection() in our custom plugins.
- Remove the deprecated execCommand("mceBeginUndoLevel");.
See #25281 .
Built from https://develop.svn.wordpress.org/trunk@25748
git-svn-id: http://core.svn.wordpress.org/trunk@25661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-09 21:05:10 +00:00
Andrew Nacin
7b27a47e85
Only add one body class when multiple post types manage to be present for a post type archive due to pre_get_posts manipulation.
...
fixes #25341 .
Built from https://develop.svn.wordpress.org/trunk@25745
git-svn-id: http://core.svn.wordpress.org/trunk@25658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-09 19:14:09 +00:00
Andrew Nacin
f0eb99952c
Make sure when resizing an image according to ratio we do not end up with a zero-pixel width or height.
...
props plocha.
fixes #25038 .
Built from https://develop.svn.wordpress.org/trunk@25744
git-svn-id: http://core.svn.wordpress.org/trunk@25657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-09 19:07:17 +00:00
Drew Jaynes
3862698070
Inline documentation for hooks in wp-includes/class-feed.php.
...
Props swissspidy.
Fixes #25510 .
Built from https://develop.svn.wordpress.org/trunk@25733
git-svn-id: http://core.svn.wordpress.org/trunk@25646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-08 20:07:08 +00:00
Drew Jaynes
bc7ea63093
Inline documentation for hooks in wp-includes/ms-load.php.
...
Props nukaga, johnbillion.
Fixes #25509 .
Built from https://develop.svn.wordpress.org/trunk@25732
git-svn-id: http://core.svn.wordpress.org/trunk@25645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-08 20:01:09 +00:00
Drew Jaynes
4ffec6be75
Improve inline documentation for the multi_resize()
method in WP_Image_Editor
, WP_Image_Editor_GD
, and WP_Image_Editor_Imagick
.
...
Props paolal for the initial patch.
Fixes #25530 .
Built from https://develop.svn.wordpress.org/trunk@25728
git-svn-id: http://core.svn.wordpress.org/trunk@25641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-08 17:19:09 +00:00
Drew Jaynes
bd6a09c708
Inline documentation for hooks in wp-includes/class-wp-embed.php.
...
Props swissspidy, kpdesign.
Fixes #25515 .
Built from https://develop.svn.wordpress.org/trunk@25726
git-svn-id: http://core.svn.wordpress.org/trunk@25639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-08 04:43:10 +00:00
Drew Jaynes
c79cb5b43f
Inline documentation for hooks in wp-includes/category.php.
...
Props ben.moody
Fixes #25503 .
Built from https://develop.svn.wordpress.org/trunk@25724
git-svn-id: http://core.svn.wordpress.org/trunk@25637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-08 00:22:09 +00:00
Drew Jaynes
0dd024dd70
Inline documentation for hooks in wp-includes/class-oembed.php.
...
Props swissspidy, kpdesign.
Fixes #25527 .
Built from https://develop.svn.wordpress.org/trunk@25723
git-svn-id: http://core.svn.wordpress.org/trunk@25636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-07 23:57:10 +00:00
Andrew Nacin
a30d69e534
Prevent the removal of a manual 'orderby' attribute in the gallery shortcode.
...
props nofearinc.
fixes #24868 .
Built from https://develop.svn.wordpress.org/trunk@25720
git-svn-id: http://core.svn.wordpress.org/trunk@25633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-07 19:02:10 +00:00
Drew Jaynes
71fb968dd3
Add missing variable for inline hook documentation changes in wp-includes/vars.php.
...
See #25466 .
Built from https://develop.svn.wordpress.org/trunk@25718
git-svn-id: http://core.svn.wordpress.org/trunk@25631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-07 17:56:10 +00:00
Drew Jaynes
8f68c2cac7
Fix phpdoc indentation for hooks in wp-includes/class-wp-image-editor.php.
...
Props gayadesign.
Fixes #25504 .
Built from https://develop.svn.wordpress.org/trunk@25714
git-svn-id: http://core.svn.wordpress.org/trunk@25627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-07 16:28:15 +00:00
Sergey Biryukov
336c737727
Correct phpdoc for wp_check_filetype_and_ext(). props dimadin. fixes #25513 .
...
Built from https://develop.svn.wordpress.org/trunk@25713
git-svn-id: http://core.svn.wordpress.org/trunk@25626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-07 15:34:10 +00:00
Drew Jaynes
a71a1ee072
Inline documentation for hooks in wp-includes/vars.php.
...
Props tmtoy, nacin.
Fixes #25466 .
Built from https://develop.svn.wordpress.org/trunk@25712
git-svn-id: http://core.svn.wordpress.org/trunk@25625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-07 15:30:09 +00:00
Sergey Biryukov
1863c06879
Escape title in HTML5 search form. props obenland, joostdevalk, scottsweb. fixes #25322 .
...
Built from https://develop.svn.wordpress.org/trunk@25710
git-svn-id: http://core.svn.wordpress.org/trunk@25624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-07 14:14:09 +00:00
Andrew Nacin
e2413462de
Move the trim() from wp_set_password() to inside wp_hash_password().
...
props rpattillo, joehoyle.
fixes #24973 . see #23494 .
Built from https://develop.svn.wordpress.org/trunk@25709
git-svn-id: http://core.svn.wordpress.org/trunk@25623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-07 13:54:10 +00:00
Drew Jaynes
e033cb93bc
Inline documentation for hooks in wp-includes/class-wp-image-editor.php.
...
Props tomauger.
Fixes #25504
Built from https://develop.svn.wordpress.org/trunk@25705
git-svn-id: http://core.svn.wordpress.org/trunk@25619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-06 22:19:10 +00:00
Drew Jaynes
a8bce2a54d
Inline documentation for a hooks in wp-includes/template.php.
...
Props jonlynch for the initial patch.
Fixes #25487 .
Built from https://develop.svn.wordpress.org/trunk@25703
git-svn-id: http://core.svn.wordpress.org/trunk@25618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-06 19:01:09 +00:00
Drew Jaynes
2fa54d0b05
Inline documentation for hooks in wp-includes/template-loader.php.
...
Props jonlynch.
Fixes #25488 .
Built from https://develop.svn.wordpress.org/trunk@25702
git-svn-id: http://core.svn.wordpress.org/trunk@25617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-06 18:41:09 +00:00
Drew Jaynes
2aff6bb864
Inline documentation for hooks in wp-includes/update.php.
...
Props ShinichiN.
Fixes #25467 .
Built from https://develop.svn.wordpress.org/trunk@25699
git-svn-id: http://core.svn.wordpress.org/trunk@25614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-06 15:31:09 +00:00
Andrew Nacin
6113669e22
Hash password reset keys in the database.
...
All existing, unused password reset keys are now considered "expired" and the user will be told they should try again.
Introduces a password_reset_key_expired filter to allow plugins to introduce a grace period.
fixes #24783 .
Built from https://develop.svn.wordpress.org/trunk@25696
git-svn-id: http://core.svn.wordpress.org/trunk@25611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-06 11:29:11 +00:00
Andrew Nacin
d93d8b850d
Reverse the order of roles in wp_dropdown_roles(). Reset to 'subscriber' when the default role is removed and when a save is invalid.
...
props garyc40, wonderboymusic.
fixes #14578 .
Built from https://develop.svn.wordpress.org/trunk@25695
git-svn-id: http://core.svn.wordpress.org/trunk@25610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-06 10:56:09 +00:00
Andrew Nacin
8e696740e5
Append -src to the $wp_version in the develop repo (only) to allow for us to differentiate. see #25161 .
...
Built from https://develop.svn.wordpress.org/trunk@25692
git-svn-id: http://core.svn.wordpress.org/trunk@25608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-05 14:25:09 +00:00
Dominik Schilling
e483532553
Move get_current_user_id()
call out of if-block, see [25669].
...
props layotte.
fixes #25372 .
Built from https://develop.svn.wordpress.org/trunk@25689
git-svn-id: http://core.svn.wordpress.org/trunk@25605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-03 13:36:09 +00:00
Andrew Nacin
5b6bcb218d
Reset "Page on Front" when such a page is trashed.
...
props danielbachhuber.
fixes #24171 .
Built from https://develop.svn.wordpress.org/trunk@25686
git-svn-id: http://core.svn.wordpress.org/trunk@25602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-03 03:51:09 +00:00
Andrew Nacin
dd954607e0
Support G shorthand for WP_MEMORY_LIMIT. see #23251 .
...
Built from https://develop.svn.wordpress.org/trunk@25685
git-svn-id: http://core.svn.wordpress.org/trunk@25601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-03 03:46:09 +00:00
Andrew Nacin
f7f52354de
Don't override a PHP memory_limit specified using G shorthand.
...
props peterjaap.
fixes #23251 .
Built from https://develop.svn.wordpress.org/trunk@25684
git-svn-id: http://core.svn.wordpress.org/trunk@25600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-03 03:28:10 +00:00
Andrew Nacin
9e15ed5b28
Ensure wp::send_headers() detects a comments feed when permalinks are disabled and thus the withcomments QV is omitted. This fixes Last-Modified.
...
props sweetie089.
fixes #24622 .
Built from https://develop.svn.wordpress.org/trunk@25683
git-svn-id: http://core.svn.wordpress.org/trunk@25599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-03 03:15:08 +00:00
Andrew Nacin
e46b819bb6
Backport a fix for qmail from PHPMailer upstream.
...
props bpetty.
fixes #25014 .
Built from https://develop.svn.wordpress.org/trunk@25682
git-svn-id: http://core.svn.wordpress.org/trunk@25598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-03 03:00:09 +00:00
Andrew Nacin
ce637bdcb3
Remove redundant title attributes.
...
props sabreuse.
see #24766 .
Built from https://develop.svn.wordpress.org/trunk@25675
git-svn-id: http://core.svn.wordpress.org/trunk@25591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 22:51:10 +00:00
Scott Taylor
80bac8fe09
WP_User::get_role_caps()
now returns the caps it was already setting. The method was previously just setting $allprops
and requiring that property to be read.
...
Props nofearinc.
Fixes #24962 .
Built from https://develop.svn.wordpress.org/trunk@25673
git-svn-id: http://core.svn.wordpress.org/trunk@25589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 21:36:09 +00:00
Andrew Nacin
e230a71bdb
Use site_url() in theme-compat.
...
props technosailor.
see #25418 .
Built from https://develop.svn.wordpress.org/trunk@25672
git-svn-id: http://core.svn.wordpress.org/trunk@25588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 21:17:09 +00:00
Andrew Nacin
32917eb0bd
Ensure that get_bloginfo( 'pingback_url' ) uses site_url(), for SSL awareness.
...
props technosailor.
fixes #25418 .
Built from https://develop.svn.wordpress.org/trunk@25671
git-svn-id: http://core.svn.wordpress.org/trunk@25587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 21:15:09 +00:00
Dominik Schilling
e4c8d56b76
Replace use of global $user_ID
in favor of get_current_user_id()
. fixes #25372 .
...
Built from https://develop.svn.wordpress.org/trunk@25669
git-svn-id: http://core.svn.wordpress.org/trunk@25585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 21:10:09 +00:00
Andrew Nacin
9e9093ab6d
Don't order feeds of search results by relevance.
...
Allow for orderby=relevance to explicitly request relevance.
fixes #7394 .
Built from https://develop.svn.wordpress.org/trunk@25668
git-svn-id: http://core.svn.wordpress.org/trunk@25584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 21:05:08 +00:00
Andrew Nacin
7de2054ece
Show a proper error message on the dashboard when the current theme is broken.
...
Clean up Appearance -> Themes when we don't have enough information to show for a broken theme.
Clean up broken/ugly "alt" row styling when we are displaying broken themes.
props johnbillion for initial patch.
fixes #21670 .
Built from https://develop.svn.wordpress.org/trunk@25666
git-svn-id: http://core.svn.wordpress.org/trunk@25582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 20:50:09 +00:00
Dominik Schilling
51ff617278
Allow to filter the link
attribute via shortcode_atts_gallery
. props iworks. fixes #24979 .
...
Built from https://develop.svn.wordpress.org/trunk@25665
git-svn-id: http://core.svn.wordpress.org/trunk@25581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 20:46:09 +00:00
Andrew Nacin
fe03c1170a
When queries fail in option functions, bail before setting cache.
...
Standardize variables so things are less confusing.
fixes #25015 .
Built from https://develop.svn.wordpress.org/trunk@25664
git-svn-id: http://core.svn.wordpress.org/trunk@25580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 20:43:10 +00:00
Scott Taylor
6a5d2f8fb0
Rather than adding a taxonomy
arg to get_category()
, convert all uses of get_category()
in core to get_term()
. By doing so, we negate the need to call _make_cat_compat()
in a few places that are only looking for a single property.
...
Fixes #8722 .
Built from https://develop.svn.wordpress.org/trunk@25662
git-svn-id: http://core.svn.wordpress.org/trunk@25578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 19:59:10 +00:00
Scott Taylor
3f42db549c
post_content
does not have a default value in the $wpdb->posts
table. Add a default value of empty string to wp_insert_attachment()
to avoid a tornado of database errors in PHP 5.5/MySQL 5.6, even when debug mode is turned off.
...
See #25282 .
Built from https://develop.svn.wordpress.org/trunk@25661
git-svn-id: http://core.svn.wordpress.org/trunk@25577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 19:52:09 +00:00
Scott Taylor
e3d58a5b23
Make url_to_postid()
work for custom post type URLs. Use get_post_types()
and get_taxonomies()
instead of directly accessing globals. Adds unit test.
...
Props faishal, for the globals fix.
Fixes #19744 .
Built from https://develop.svn.wordpress.org/trunk@25659
git-svn-id: http://core.svn.wordpress.org/trunk@25576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 19:42:09 +00:00
Andrew Nacin
d35284e08a
Use sentence case.
...
Built from https://develop.svn.wordpress.org/trunk@25654
git-svn-id: http://core.svn.wordpress.org/trunk@25571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-02 17:40:10 +00:00
Sergey Biryukov
8bda461ca9
Remove inaccurate @return value from remove_role(). props tivnet. fixes #25450 .
...
Built from https://develop.svn.wordpress.org/trunk@25653
git-svn-id: http://core.svn.wordpress.org/trunk@25570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-01 02:53:11 +00:00
Andrew Nacin
ddd4473714
Send back core translation information to the API. Update wp_get_installed_translations() to work with core translations. see #18200 .
...
Built from https://develop.svn.wordpress.org/trunk@25652
git-svn-id: http://core.svn.wordpress.org/trunk@25569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-30 19:47:12 +00:00
Dion Hulse
75475ed773
Automatic Updates: Add a rollback functionality upon installation failure, the rollback package will be available for partial-updates for automatic updates and be similar to our existing partial builds (but in reverse).
...
A further iteration of this is to also detect whitescreens (fatals) after a auto update, and trigger the rollback for that too.
See #22704
Built from https://develop.svn.wordpress.org/trunk@25649
git-svn-id: http://core.svn.wordpress.org/trunk@25566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-30 00:21:09 +00:00
Sergey Biryukov
bcb43b77d0
Correct phpdoc for translate_smiley(). props toscho. fixes #25440 .
...
Built from https://develop.svn.wordpress.org/trunk@25646
git-svn-id: http://core.svn.wordpress.org/trunk@25563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-29 10:08:10 +00:00
Drew Jaynes
190913aaa7
Improve inline documentation for the Walker
class.
...
Includes previously undocumented parameters.
See #23406 .
Built from https://develop.svn.wordpress.org/trunk@25644
git-svn-id: http://core.svn.wordpress.org/trunk@25561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-28 21:29:10 +00:00
Drew Jaynes
39d7e0df8a
Improve inline documentation for Walker_Nav_Menu
, Walker_Nav_Menu_Edit
, Walker_Nav_Menu_Checklist
.
...
Includes previously undocumented parameters.
See #23406 .
Built from https://develop.svn.wordpress.org/trunk@25643
git-svn-id: http://core.svn.wordpress.org/trunk@25560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-28 21:02:09 +00:00
Drew Jaynes
c2111b33bf
Inline documentation improvements for Walker_Category
and Walker_CategoryDropdown
.
...
Also covers previously undocumented parameters.
See #23406 , #19249 .
Built from https://develop.svn.wordpress.org/trunk@25641
git-svn-id: http://core.svn.wordpress.org/trunk@25558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-28 18:02:10 +00:00
Andrew Nacin
5111c26a01
Mark _search_terms_tidy() as deprecated in 3.7. see #7394 .
...
Built from https://develop.svn.wordpress.org/trunk@25640
git-svn-id: http://core.svn.wordpress.org/trunk@25557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-28 08:25:09 +00:00
Andrew Nacin
b54d15d568
3.7-beta1-25639
...
Built from https://develop.svn.wordpress.org/trunk@25639
git-svn-id: http://core.svn.wordpress.org/trunk@25556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-28 07:31:09 +00:00
Andrew Nacin
46391b4669
3.7-beta1
...
Built from https://develop.svn.wordpress.org/trunk@25638
git-svn-id: http://core.svn.wordpress.org/trunk@25555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-28 06:48:09 +00:00
Andrew Nacin
21767e446e
Fix non-square rotations when using the Imagick image editor.
...
props DH-Shredder.
fixes #22663 .
Built from https://develop.svn.wordpress.org/trunk@25636
git-svn-id: http://core.svn.wordpress.org/trunk@25553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-28 06:37:11 +00:00
Andrew Nacin
f092346465
Filters for locale in wp_update_plugins() and wp_update_themes(). see #18200 .
...
Built from https://develop.svn.wordpress.org/trunk@25634
git-svn-id: http://core.svn.wordpress.org/trunk@25551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-28 04:18:12 +00:00
Andrew Nacin
00d2c39c48
Changes to automatic background updates in preparation for Beta 1.
...
* Show a notice for beta testers on update-core.php explaining the status of their install. Three possibilities: auto updates are enabled, auto updates are disabled because the install doesn't support SSL HTTP requests, and auto updates are disabled because it is a VCS checkout.
* Improve the output of the email, for maximum debugging potential. Failures are clearly labeled and the email leads testers to the support forums and Trac.
* Try to create wp-content/languages in the upgrader if it doesn't exist. Our mkdir isn't recursive, so trying to create wp-content/languages/plugins could fail.
* Abstract out version control checkout determination into a public method. The filter is now auto_upgrade_is_vcs_checkout, still subject to change.
see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25633
git-svn-id: http://core.svn.wordpress.org/trunk@25550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-27 23:21:10 +00:00
Andrew Nacin
d7fc6d5d49
Order search results by relevance, rather than by date.
...
The ordering logic is as follows:
* Full sentence matches in post titles.
* All search terms in post titles.
* Any search terms in post titles.
* Full sentence matches in post content.
Each section and any remaining posts are then sorted by date.
Introduces some filters:
* wp_search_stopwords, to filter stop words ignored in WHERE.
* posts_search_orderby, to filter the ORDER BY when ordering search results.
props azaozz, wonderboymusic.
fixes #7394 .
Built from https://develop.svn.wordpress.org/trunk@25632
git-svn-id: http://core.svn.wordpress.org/trunk@25549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-27 17:34:09 +00:00
Drew Jaynes
82904baffd
Improve inline documentation for wp_insert_post()
by adding a hash notation.
...
See #25412 .
Built from https://develop.svn.wordpress.org/trunk@25628
git-svn-id: http://core.svn.wordpress.org/trunk@25545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-25 17:34:08 +00:00
Andrew Nacin
0e959f06dc
Live network counts of users and sites for small networks.
...
props adamsilverstein, jeremyfelt.
fixes #22917 .
Built from https://develop.svn.wordpress.org/trunk@25621
git-svn-id: http://core.svn.wordpress.org/trunk@25538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-25 16:21:09 +00:00
Sergey Biryukov
d50200d84d
'sanitize_user' is a filter, not an action. fixes #25411 .
...
Built from https://develop.svn.wordpress.org/trunk@25618
git-svn-id: http://core.svn.wordpress.org/trunk@25535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-25 03:14:09 +00:00
Andrew Nacin
c2aa33de6a
Clean up the path calculations in wp::parse_request().
...
props evansolomon for initial cleanup.
fixes #22209 .
Built from https://develop.svn.wordpress.org/trunk@25617
git-svn-id: http://core.svn.wordpress.org/trunk@25534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-25 00:47:09 +00:00
Andrew Nacin
fd57b239d2
Don't rely on include_path to include files.
...
Always use dirname() or, once available, ABSPATH.
props ketwaroo, hakre.
fixes #17092 .
Built from https://develop.svn.wordpress.org/trunk@25616
git-svn-id: http://core.svn.wordpress.org/trunk@25533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-25 00:18:11 +00:00
Andrew Nacin
0e620877fd
Use the wpdb method instead of $wpdb->prefix.
...
props hakre.
fixes #16756 .
Built from https://develop.svn.wordpress.org/trunk@25615
git-svn-id: http://core.svn.wordpress.org/trunk@25532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-24 23:41:10 +00:00
Drew Jaynes
38b7b3a1c5
Clarify inline documentation for the return in get_attached_file()
.
...
Fixes #25409 .
Built from https://develop.svn.wordpress.org/trunk@25609
git-svn-id: http://core.svn.wordpress.org/trunk@25526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-24 21:29:08 +00:00
Andrew Nacin
9dcd0110fb
Initialize the filter globals.
...
props rmccue.
fixes #25378 .
Built from https://develop.svn.wordpress.org/trunk@25607
git-svn-id: http://core.svn.wordpress.org/trunk@25524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-24 19:05:10 +00:00
Andrew Nacin
00c545606e
Introduce wp_get_user_contact_methods() as a public version of _wp_get_user_contactmethods.
...
props johnnyb.
fixes #24273 .
Built from https://develop.svn.wordpress.org/trunk@25606
git-svn-id: http://core.svn.wordpress.org/trunk@25523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-24 18:14:09 +00:00
Andrew Nacin
dba857a39a
When is_main_query() is called during the pre_get_posts hook, issue _doing_it_wrong().
...
The is_main_query() WP_Query method should be used in these instances instead.
see #23329 .
Built from https://develop.svn.wordpress.org/trunk@25605
git-svn-id: http://core.svn.wordpress.org/trunk@25522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-24 17:10:09 +00:00
Helen Hou-Sandí
5760809319
Add classes to menus to indicate that an item has sub-items: .menu-item-has-children
for wp_nav_menu()
and .page_item_has_children
for wp_page_menu()
. props hotchkissconsulting. fixes #23834 .
...
Built from https://develop.svn.wordpress.org/trunk@25602
git-svn-id: http://core.svn.wordpress.org/trunk@25519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-24 16:01:09 +00:00
Andrew Nacin
1fda14e76b
Introduce a reset_postdata() method on the WP_Query object, which wp_reset_postdata() now wraps.
...
props ericlewis.
fixes #24785 .
Built from https://develop.svn.wordpress.org/trunk@25601
git-svn-id: http://core.svn.wordpress.org/trunk@25518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-24 15:53:09 +00:00
Drew Jaynes
c92da75985
Improve inline documentation for wp-includes/functions.wp-scripts.php.
...
Props kpdesign.
Fixes #25402 .
Built from https://develop.svn.wordpress.org/trunk@25597
git-svn-id: http://core.svn.wordpress.org/trunk@25514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-24 02:58:09 +00:00
Andrew Nacin
1d269541e2
Introduce register_taxonomy_for_object_type().
...
props leewillis77.
fixes #11058 .
Built from https://develop.svn.wordpress.org/trunk@25596
git-svn-id: http://core.svn.wordpress.org/trunk@25513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-24 02:54:08 +00:00
Drew Jaynes
74ade89101
Improve inline documentation for wp-includes/functions.wp-styles.php.
...
Props kpdesign.
Fixes #25401 .
Built from https://develop.svn.wordpress.org/trunk@25594
git-svn-id: http://core.svn.wordpress.org/trunk@25511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-24 02:24:09 +00:00
Andrew Nacin
3db7b4a7a3
Revert [25446] now that wp_blogs
.archived
is no longer an ENUM field. see #14511 .
...
Built from https://develop.svn.wordpress.org/trunk@25590
git-svn-id: http://core.svn.wordpress.org/trunk@25507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-24 01:20:09 +00:00
Drew Jaynes
15fb059069
Inline documentation for the Walker_Comment class in wp-includes/comment-template.php
...
Fixes #25388 .
Built from https://develop.svn.wordpress.org/trunk@25588
git-svn-id: http://core.svn.wordpress.org/trunk@25505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 23:29:11 +00:00
Drew Jaynes
88c8d66dc0
Standardize usage of 'text domain' in inline documentation for wp-includes/l10n.php.
...
Props ericlewis, SergeyBiryukov.
Fixes #16750 .
Built from https://develop.svn.wordpress.org/trunk@25586
git-svn-id: http://core.svn.wordpress.org/trunk@25503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 22:28:10 +00:00
Andrew Nacin
cc19b4a397
Avoid a notice. see #14408 , [25574].
...
Built from https://develop.svn.wordpress.org/trunk@25585
git-svn-id: http://core.svn.wordpress.org/trunk@25502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 21:44:09 +00:00
Drew Jaynes
681b1c35b5
Inline documentation for hooks in wp-includes/comment-template.php.
...
Fixes #25396 .
Built from https://develop.svn.wordpress.org/trunk@25584
git-svn-id: http://core.svn.wordpress.org/trunk@25501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 21:21:09 +00:00
Andrew Nacin
4ea86c6b47
Return false in update_metadata() and update_metadata_by_mid() when the DB query fails.
...
props leewillis77.
fixes #24933 .
Built from https://develop.svn.wordpress.org/trunk@25583
git-svn-id: http://core.svn.wordpress.org/trunk@25500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 20:31:09 +00:00
Andrew Nacin
74f42a9dc4
Change 'This post is password protected' to 'This content', for the benefit of custom post types.
...
props MikeHansenMe.
fixes #23603 .
Built from https://develop.svn.wordpress.org/trunk@25582
git-svn-id: http://core.svn.wordpress.org/trunk@25499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 20:29:09 +00:00
Andrew Nacin
71263c4854
Use correct variable. props helen. see #17071 .
...
Built from https://develop.svn.wordpress.org/trunk@25581
git-svn-id: http://core.svn.wordpress.org/trunk@25498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 20:18:10 +00:00
Andrew Nacin
50e88d2cfb
Temporary hooks for the widgets feature team in dynamic_sidebar() and is_active_sidebar().
...
props westonruter.
fixes #25368 .
Built from https://develop.svn.wordpress.org/trunk@25580
git-svn-id: http://core.svn.wordpress.org/trunk@25497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 20:14:10 +00:00
Andrew Nacin
8fa6e99edc
Introduce a wp_count_attachments filter.
...
props kevinB.
fixes #17071 .
Built from https://develop.svn.wordpress.org/trunk@25579
git-svn-id: http://core.svn.wordpress.org/trunk@25496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 19:11:09 +00:00
Andrew Nacin
a4040ea928
In wp_count_posts(), rename 'count_posts' hook to 'wp_count_posts', for clarity. see #16603 .
...
Built from https://develop.svn.wordpress.org/trunk@25578
git-svn-id: http://core.svn.wordpress.org/trunk@25495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 19:08:09 +00:00
Andrew Nacin
377cf11bfb
Pass $taxonomies to two more filters in get_terms().
...
props johnbillion.
fixes #18754 .
Built from https://develop.svn.wordpress.org/trunk@25576
git-svn-id: http://core.svn.wordpress.org/trunk@25493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 18:39:09 +00:00
Drew Jaynes
731db6bcb5
Inline documentation for comment_form()
argument defaults missed in [25573].
...
See #25388 .
Built from https://develop.svn.wordpress.org/trunk@25575
git-svn-id: http://core.svn.wordpress.org/trunk@25492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 17:30:08 +00:00
Andrew Nacin
2fa2b14192
Set up author data for the author template immediately, rather than waiting for the first the_post() call.
...
This removes the need to call the_post() and rewind_posts() in an author template to print information about the author.
props obenland.
fixes #14408 .
Built from https://develop.svn.wordpress.org/trunk@25574
git-svn-id: http://core.svn.wordpress.org/trunk@25491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 17:22:09 +00:00
Drew Jaynes
fe40604971
Improve inline documentation of arguments for comment_form()
.
...
See #25388 .
Built from https://develop.svn.wordpress.org/trunk@25573
git-svn-id: http://core.svn.wordpress.org/trunk@25490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 17:16:08 +00:00
Andrew Nacin
5febb6045f
Introduce a meta_box_cb argument for register_taxonomy().
...
The specified callback function is used as the meta box callback for the taxonomy.
props garyc40, helen.
fixes #14206 .
Built from https://develop.svn.wordpress.org/trunk@25572
git-svn-id: http://core.svn.wordpress.org/trunk@25489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 17:12:10 +00:00
Andrew Nacin
b07e886ed4
Remove redundant title attributes.
...
props sabreuse.
see #24766 .
Built from https://develop.svn.wordpress.org/trunk@25570
git-svn-id: http://core.svn.wordpress.org/trunk@25488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 14:51:10 +00:00
Dion Hulse
a40b05fc0b
Move a certificate higher in the file (end to start) so that PHP 5.2.x (OpenSSL 0.9.8j and earlier) can parse the file correctly. See #25007
...
Built from https://develop.svn.wordpress.org/trunk@25569
git-svn-id: http://core.svn.wordpress.org/trunk@25487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 13:59:11 +00:00
Drew Jaynes
e4987beba3
Inline documentation improvements for wp-includes/comment-template.php.
...
Changes include:
- Existing phpdoc block improvements
- Inclusion of defaults for optional parameters
- Hash-notated argument arrays
- Removal of unnecessary or redundant tagging.
Also standardization of int|WP_Post function parameters.
These changes clear the way toward less redundancy for hook docs in a future ticket.
Still left: Fully documented arguments in `comment_form()` and a pass through Walker_Comment.
See #20495 . See #25388 .
Built from https://develop.svn.wordpress.org/trunk@25567
git-svn-id: http://core.svn.wordpress.org/trunk@25485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 04:16:08 +00:00
Andrew Nacin
187c26415f
Add a language pack upgrader class.
...
At the conclusion of any upgrade, after the transients are refreshed from the API, pending translations are downloaded and installed to wp-content/languages.
props dd32.
see #18200 .
Built from https://develop.svn.wordpress.org/trunk@25566
git-svn-id: http://core.svn.wordpress.org/trunk@25484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 02:08:10 +00:00
Drew Jaynes
881506785b
Inline documentation for hooks in wp-includes/l10n.php.
...
Props Nao.
Fixes #25382 .
Built from https://develop.svn.wordpress.org/trunk@25565
git-svn-id: http://core.svn.wordpress.org/trunk@25483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-23 00:38:12 +00:00
Drew Jaynes
fda48c2462
Improve inline comment for removing default padding styles for the Toolbar.
...
Props nofearinc.
Fixes #25373 .
Built from https://develop.svn.wordpress.org/trunk@25563
git-svn-id: http://core.svn.wordpress.org/trunk@25481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-22 14:34:11 +00:00
Dominik Schilling
8546983da6
Replace !$user_ID with !is_user_logged_in(). props garyc40. see #15508 .
...
Built from https://develop.svn.wordpress.org/trunk@25562
git-svn-id: http://core.svn.wordpress.org/trunk@25480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-22 10:16:09 +00:00
Scott Taylor
11db0d3b01
Add an $args
parameter to comment_text
and get_comment_text
filters. Adds filter docs. Improve docblocks for get_comment_text()
and comment_text()
.
...
Props simonwheatley, ericlewis, DrewAPicture.
Fixes #14856 .
Built from https://develop.svn.wordpress.org/trunk@25555
git-svn-id: http://core.svn.wordpress.org/trunk@25475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-21 18:18:09 +00:00
Scott Taylor
8697ae572e
Add hooks to wp_count_posts()
. Adds filter docs. Adds unit test to test count_posts
filter.
...
Props nacin, DrewAPicture.
Fixes #16603 .
Built from https://develop.svn.wordpress.org/trunk@25554
git-svn-id: http://core.svn.wordpress.org/trunk@25474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-21 17:55:08 +00:00
Scott Taylor
ae4cf7665a
Add @access private
to _get_custom_object_labels()
, which was already implied by the dangling underscore. Cast $labels
to array
in get_taxonomy_labels()
and _get_custom_object_labels()
.
...
Props nacin, foofy.
Fixes #16310 .
Built from https://develop.svn.wordpress.org/trunk@25553
git-svn-id: http://core.svn.wordpress.org/trunk@25473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-21 17:44:09 +00:00
Scott Taylor
2d323d43e1
Ensure that terms with a post count of 0
are not returned in wp_count_terms()
when hide_empty => true
. Adds unit test which ensures that wp_count_terms()
returns 0
.
...
Props markjaquith.
Fixes #15919 .
Built from https://develop.svn.wordpress.org/trunk@25551
git-svn-id: http://core.svn.wordpress.org/trunk@25471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-21 16:48:10 +00:00
Scott Taylor
c2312dfe4c
Use elseif
when slurping the nonce
in check_ajax_referer()
to avoid accidentally overwriting it.
...
Fail wonderboymusic in [25433].
Props ocean90.
Fixes #25369 .
See [25433].
Built from https://develop.svn.wordpress.org/trunk@25550
git-svn-id: http://core.svn.wordpress.org/trunk@25470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-21 16:26:12 +00:00
Dominik Schilling
68bd14f4bf
Update Jcrop to 0.9.12 (unused in WP core).
...
fixes #25342 .
Built from https://develop.svn.wordpress.org/trunk@25549
git-svn-id: http://core.svn.wordpress.org/trunk@25469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-21 12:46:09 +00:00
Dominik Schilling
d2becf2bdc
Update imgAreaSelect version in script-loader.php for [25545], see #25370 .
...
Built from https://develop.svn.wordpress.org/trunk@25548
git-svn-id: http://core.svn.wordpress.org/trunk@25468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-21 12:40:09 +00:00
Dominik Schilling
c2739d12cc
Trim leading whitespace from AJAX responses.
...
This fixes the warning "$(html) HTML strings must start with '<' character" by jQuery Migrate when adding nav menu items, post custom fields or comment replies.
fixes #23681 .
Built from https://develop.svn.wordpress.org/trunk@25546
git-svn-id: http://core.svn.wordpress.org/trunk@25466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-21 10:51:09 +00:00
Dominik Schilling
1998919ade
Update imgAreaSelect to 0.9.10. fixes #25370 .
...
Built from https://develop.svn.wordpress.org/trunk@25545
git-svn-id: http://core.svn.wordpress.org/trunk@25465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-21 10:43:10 +00:00
Dion Hulse
6cef83f271
Plugin Update API: Set the translations key to an empty array when the API is unavailable. Props rmmcue. See #18200
...
Built from https://develop.svn.wordpress.org/trunk@25544
git-svn-id: http://core.svn.wordpress.org/trunk@25464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-21 09:34:09 +00:00
Andrew Nacin
79df17be9c
Accept and store translations data from the plugin and theme update check endpoints.
...
Send site locale. Rename wp_get_installed_language_data() to wp_get_installed_translations().
see #18200 .
Built from https://develop.svn.wordpress.org/trunk@25536
git-svn-id: http://core.svn.wordpress.org/trunk@25456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-21 04:08:10 +00:00
Drew Jaynes
0931266fc2
Inline documentation for hooks in wp-includes/canonical.php.
...
Props dustyf for the initial patch.
See #25229 .
Built from https://develop.svn.wordpress.org/trunk@25535
git-svn-id: http://core.svn.wordpress.org/trunk@25455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 23:31:10 +00:00
Drew Jaynes
9577cc4640
Inline documentation for hooks in wp-includes/bookmark-template.php.
...
Props vinod dalvi, kpdesign.
Fixes #25364 .
Built from https://develop.svn.wordpress.org/trunk@25533
git-svn-id: http://core.svn.wordpress.org/trunk@25453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 23:09:09 +00:00
Drew Jaynes
fe5ee3c5b3
Inline documentation of hooks for wp-includes/feed-rss2-comments.php.
...
Props dustyf.
See #25229 .
Built from https://develop.svn.wordpress.org/trunk@25532
git-svn-id: http://core.svn.wordpress.org/trunk@25452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 23:02:09 +00:00
Drew Jaynes
5c4e360b26
Inline documentation for hooks in wp-includes/feed-atom.php.
...
Props dustyf.
See #25229 .
Built from https://develop.svn.wordpress.org/trunk@25531
git-svn-id: http://core.svn.wordpress.org/trunk@25451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 22:50:10 +00:00
Drew Jaynes
a48dc6b7ed
Inline documentation for hooks in wp-includes/feed-rss2.php.
...
Props dustyf for the initial patch.
See #25229 .
Built from https://develop.svn.wordpress.org/trunk@25530
git-svn-id: http://core.svn.wordpress.org/trunk@25450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 22:27:09 +00:00
Drew Jaynes
c771851a16
Inline documentation for hooks in wp-includes/feed-rss.php.
...
Props dustyf.
See #25229 .
Built from https://develop.svn.wordpress.org/trunk@25529
git-svn-id: http://core.svn.wordpress.org/trunk@25449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 22:10:10 +00:00
Helen Hou-Sandí
09954eb82e
Revert [25031] and [24841] - filling the internal linking search field with selected text has UX and performance issues with no resolution in sight. see #16276 .
...
Built from https://develop.svn.wordpress.org/trunk@25528
git-svn-id: http://core.svn.wordpress.org/trunk@25448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 20:38:09 +00:00
Andrew Nacin
d814ad50b3
Add REGEXP to meta queries.
...
"REGEXP is usually a terrible idea to use, but I see no reason to disallow it."
props wonderboymusic.
fixes #18736 .
Built from https://develop.svn.wordpress.org/trunk@25525
git-svn-id: http://core.svn.wordpress.org/trunk@25445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 20:13:09 +00:00
Drew Jaynes
16f0d8b1ea
Inline documentation for WP_Dependencies and _WP_Dependency classes.
...
Props kitchin for the initial patch.
Fixes #23914 .
Built from https://develop.svn.wordpress.org/trunk@25524
git-svn-id: http://core.svn.wordpress.org/trunk@25444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 19:54:10 +00:00
Andrew Nacin
aede88a822
Send installed language data to the plugin and theme update-check endpoints.
...
Introduces wp_get_installed_language_data() and wp_get_pomo_file_data().
see #18200 .
Built from https://develop.svn.wordpress.org/trunk@25520
git-svn-id: http://core.svn.wordpress.org/trunk@25440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 19:13:09 +00:00
Drew Jaynes
9151227edf
Inline documentation for _WP_Dependency class properties.
...
See #23914 .
Built from https://develop.svn.wordpress.org/trunk@25518
git-svn-id: http://core.svn.wordpress.org/trunk@25438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 17:46:09 +00:00
Drew Jaynes
cee2a3e227
Inline documentation for WP_Dependencies class properties.
...
See #23914 .
Built from https://develop.svn.wordpress.org/trunk@25517
git-svn-id: http://core.svn.wordpress.org/trunk@25437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 17:44:17 +00:00
Andrew Nacin
a03549d08a
Further adjust the request and response formats for plugin and theme update checks. see #25311 .
...
Built from https://develop.svn.wordpress.org/trunk@25514
git-svn-id: http://core.svn.wordpress.org/trunk@25434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 05:55:09 +00:00
Drew Jaynes
69d9c3e427
Inline documentation for hooks in wp-includes/post-thumbnail-template.php.
...
Props NikV.
See #25229 .
Built from https://develop.svn.wordpress.org/trunk@25513
git-svn-id: http://core.svn.wordpress.org/trunk@25433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 02:51:09 +00:00
Drew Jaynes
00ca46973c
Clarify error handling and special cases in the wp_insert_term()
phpdoc block.
...
props lgedeon, SergeyBiryukov. See #22801 .
Built from https://develop.svn.wordpress.org/trunk@25498
git-svn-id: http://core.svn.wordpress.org/trunk@25419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-19 16:09:10 +00:00
Drew Jaynes
98d5c50e5f
Clarify phpdoc for get_comment_author_link()
.
...
props nofearinc. Fixes #24508 .
Built from https://develop.svn.wordpress.org/trunk@25494
git-svn-id: http://core.svn.wordpress.org/trunk@25415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-19 05:56:10 +00:00
Drew Jaynes
bd2425dd9c
Clarify phpdoc descriptions for esc_attr_x()
and esc_html_x()
.
...
props ericlewis. Fixes #24212 .
Built from https://develop.svn.wordpress.org/trunk@25493
git-svn-id: http://core.svn.wordpress.org/trunk@25414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-19 04:41:10 +00:00
Drew Jaynes
4cab8cefd6
Add missing $path
parameter phpdoc for load_theme_textdomain()
.
...
see #16750 .
Built from https://develop.svn.wordpress.org/trunk@25492
git-svn-id: http://core.svn.wordpress.org/trunk@25413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-19 04:13:10 +00:00
Sergey Biryukov
8d2764fbd3
Update inline documentation for wp_insert_term().
...
props DrewAPicture.
fixes #22801 .
Built from https://develop.svn.wordpress.org/trunk@25489
git-svn-id: http://core.svn.wordpress.org/trunk@25410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-19 01:57:10 +00:00
Sergey Biryukov
df34477308
Introduce 'offset' parameter for wp_get_sites().
...
props jamescollins.
see #14511 .
Built from https://develop.svn.wordpress.org/trunk@25488
git-svn-id: http://core.svn.wordpress.org/trunk@25409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-19 01:47:09 +00:00
Sergey Biryukov
d87a375483
Use wp_parse_id_list() to parse the 'network_id' parameter in wp_get_sites().
...
props jamescollins.
see #14511 .
Built from https://develop.svn.wordpress.org/trunk@25487
git-svn-id: http://core.svn.wordpress.org/trunk@25408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-19 01:20:09 +00:00
Sergey Biryukov
7c5d11d671
Make the arguments of 'wp_audio_shortcode_override' and 'wp_video_shortcode_override' more consistent with the ones of 'img_caption_shortcode' and 'post_gallery' filters.
...
see #25313 .
Built from https://develop.svn.wordpress.org/trunk@25485
git-svn-id: http://core.svn.wordpress.org/trunk@25406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 22:06:09 +00:00
Sergey Biryukov
dd6e39bfb1
Replace non-functional 'wp_audio_shortcode_handler' and 'wp_video_shortcode_handler' filters with 'wp_audio_shortcode_override' and 'wp_video_shortcode_override'.
...
props ericlewis, SergeyBiryukov.
fixes #25313 .
Built from https://develop.svn.wordpress.org/trunk@25484
git-svn-id: http://core.svn.wordpress.org/trunk@25405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 21:20:09 +00:00
Scott Taylor
6ea9e9692d
Use wp_parse_args()
again for $args['rewrite']
in register_taxonomy()
.
...
Props SergeyBiryukov.
Fixes #23668 .
Built from https://develop.svn.wordpress.org/trunk@25483
git-svn-id: http://core.svn.wordpress.org/trunk@25404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 20:39:09 +00:00
Sergey Biryukov
d4672e7f2c
Inline documentation for hooks in wp-includes/feed-rdf.php.
...
props dustyf.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25479
git-svn-id: http://core.svn.wordpress.org/trunk@25400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 16:17:09 +00:00
Sergey Biryukov
794414c412
Correct @since for hooks in wp-includes/class-wp-admin-bar.php. see #25229 .
...
Built from https://develop.svn.wordpress.org/trunk@25478
git-svn-id: http://core.svn.wordpress.org/trunk@25399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 11:58:19 +00:00
Peter Westwood
c663f0a925
Clean up the documentation for add_filter and apply_filters.
...
Fixes #19203 props DrewAPicture, ericlewis
Built from https://develop.svn.wordpress.org/trunk@25476
git-svn-id: http://core.svn.wordpress.org/trunk@25397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 07:48:10 +00:00
Peter Westwood
b3689b7a35
Inline documentation for hooks in wp-includes/class-wp-admin-bar.php
...
See #25229 props betzster
Built from https://develop.svn.wordpress.org/trunk@25475
git-svn-id: http://core.svn.wordpress.org/trunk@25396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 07:42:09 +00:00
Dion Hulse
ef9b9664e1
WP_HTTP: Fix a typo in the naming of WP_HTTP_Streams::verify_ssl_certificate(). Props SergeyBiryukov See #25007
...
Built from https://develop.svn.wordpress.org/trunk@25473
git-svn-id: http://core.svn.wordpress.org/trunk@25394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 01:51:10 +00:00
Sergey Biryukov
48f63d061d
Expect a possible array of post types in get_body_class(). props norcross. fixes #25341 .
...
Built from https://develop.svn.wordpress.org/trunk@25471
git-svn-id: http://core.svn.wordpress.org/trunk@25392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-17 08:50:09 +00:00
Dion Hulse
dfc708333f
WordPress Core Automatic Updates: Switch to a twicedaily cronjob to match the update check cron jobs, this removes the ability for update checks to continuously re-queue a upgrade job. See #22704
...
Built from https://develop.svn.wordpress.org/trunk@25466
git-svn-id: http://core.svn.wordpress.org/trunk@25387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-17 02:26:09 +00:00
Andrew Nacin
6655f30fd9
If the script_loader_src filter returns nothing, bail instead of printing <script src="">.
...
props niallkennedy.
fixes #22470 .
Built from https://develop.svn.wordpress.org/trunk@25465
git-svn-id: http://core.svn.wordpress.org/trunk@25386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 22:12:09 +00:00
Andrew Nacin
205a4d583d
Add documentation for the new flush_rewrite_rules_hard filter. fixes #23491 .
...
Built from https://develop.svn.wordpress.org/trunk@25464
git-svn-id: http://core.svn.wordpress.org/trunk@25385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 22:00:09 +00:00
Andrew Nacin
090b3c8355
Update jQuery Form to 3.37.0 (unused in WP core).
...
props usermrpapa.
fixes #23944 .
Built from https://develop.svn.wordpress.org/trunk@25462
git-svn-id: http://core.svn.wordpress.org/trunk@25383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 21:06:09 +00:00
Andrew Nacin
d362dc1e49
Allow the value attribute for list items processed by kses.
...
props kraftbj.
fixes #24293 .
Built from https://develop.svn.wordpress.org/trunk@25460
git-svn-id: http://core.svn.wordpress.org/trunk@25381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 20:49:10 +00:00
Sergey Biryukov
354884205b
Update inline documentation for l10n functions. props CharlesClarkson, DrewAPicture. fixes #16750 .
...
Built from https://develop.svn.wordpress.org/trunk@25458
git-svn-id: http://core.svn.wordpress.org/trunk@25379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 20:17:09 +00:00
Andrew Nacin
d3b89d43fc
Add nginx detection to the Permalink Settings screen.
...
Introduces got_url_rewrite() and a corresponding filter, which should now be used in lieu of the got_rewrite filter in got_mod_rewrite().
This does not write or even suggest nginx configuration; rather, it prevents nginx from being considered as either Apache or as an unrecognized server.
props johnbillion.
fixes #25098 .
Built from https://develop.svn.wordpress.org/trunk@25456
git-svn-id: http://core.svn.wordpress.org/trunk@25377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 20:07:09 +00:00
Sergey Biryukov
1de240d5a2
Inline documentation for hooks in wp-includes/load.php.
...
props mordauk.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25455
git-svn-id: http://core.svn.wordpress.org/trunk@25376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 18:30:10 +00:00
Andrew Nacin
85d4685894
Always pass integer expirations to cache backends.
...
props SergeyBiryukov, andreasnrb.
fixes #25308 .
Built from https://develop.svn.wordpress.org/trunk@25451
git-svn-id: http://core.svn.wordpress.org/trunk@25372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 17:43:09 +00:00
Sergey Biryukov
d6f65fb147
Update @since for wp_script_is() and wp_style_is(). props jdgrimes. see #25326 .
...
Built from https://develop.svn.wordpress.org/trunk@25449
git-svn-id: http://core.svn.wordpress.org/trunk@25370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 12:46:11 +00:00
Andrew Nacin
6931079cec
Multisite blogs table: Convert the archived field from enum to tinyint to match the other status fields. fixes #12832 .
...
Built from https://develop.svn.wordpress.org/trunk@25448
git-svn-id: http://core.svn.wordpress.org/trunk@25369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-15 23:12:11 +00:00
Andrew Nacin
1f507db1c0
Proper treatment of the 'archived' field in wp_get_sites(). see #14511 .
...
Built from https://develop.svn.wordpress.org/trunk@25446
git-svn-id: http://core.svn.wordpress.org/trunk@25367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 23:10:10 +00:00
Andrew Nacin
efdaf1e915
Introduce wp_get_sites(), a long-awaited replacement for get_blog_list().
...
props jeremyfelt.
see #14511 .
Built from https://develop.svn.wordpress.org/trunk@25445
git-svn-id: http://core.svn.wordpress.org/trunk@25366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 21:13:10 +00:00
Andrew Nacin
031576d79e
Introduce a img_caption_shortcode_width filter for controlling the inline style of the image caption shortcode.
...
props iandunn for the initial patch.
fixes #14380 .
Built from https://develop.svn.wordpress.org/trunk@25444
git-svn-id: http://core.svn.wordpress.org/trunk@25365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 20:45:09 +00:00
Andrew Nacin
0fbb5a32ef
Don't allow critical scripts to be deregistered on wp-login.php, just as we do in the rest of the admin.
...
props atimmer.
fixes #25017 .
Built from https://develop.svn.wordpress.org/trunk@25443
git-svn-id: http://core.svn.wordpress.org/trunk@25364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 20:21:09 +00:00
Andrew Nacin
9414d6e40e
Move to JSON for the plugin and theme update-check API endpoints. see #25311 .
...
Built from https://develop.svn.wordpress.org/trunk@25442
git-svn-id: http://core.svn.wordpress.org/trunk@25363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 19:58:09 +00:00
Scott Taylor
daa4b531e8
Fix several esoteric errors related to AJAX unit tests for comments:
...
* `wp_ajax_get_comments()` relies on the `$post_id` global - even though `$_POST['p']` is passed to every action in the test methods. If `$post_id` is still lingering in between tests and doesn't match `p` in the request, the cap check might pass while the queries for comments will blow up. I added `unset( $GLOBALS['post_id'] )` to `Tests_Ajax_GetComments::setUp()`.
* If the global `$post_id` is empty, but `$_REQUEST['p']` is not, `$post_id` is now set to `absint( $_REQUEST['p'] )` and sanity-checked in `wp_ajax_get_comments()`.
* `map_meta_cap()` always assumes that `get_comment()` succeeds when checking for the `edit_comment` cap. It doesn't. I added sanity checks in a few places where it will break early if `get_post()` or `get_comment()` are empty.
* `wp_update_comment()` always assumes `get_comment()` succeeds. It doesn't. I added a check for empty.
All AJAX unit tests run and pass in debug mode. All general unit tests pass against these changes.
Fixes #25282 .
Built from https://develop.svn.wordpress.org/trunk@25438
git-svn-id: http://core.svn.wordpress.org/trunk@25360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 18:36:09 +00:00
Dominik Schilling
32aff2db8a
Add 'image' type/extensions to wp_ext2type() and make it case insensitive. props xparham. fixes #25176 .
...
Built from https://develop.svn.wordpress.org/trunk@25437
git-svn-id: http://core.svn.wordpress.org/trunk@25359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 14:34:09 +00:00
Dion Hulse
bbd3312389
Account for Windows and CLI instances in wp_guess_url(). Props SergeyBiryukov. See #25317
...
Built from https://develop.svn.wordpress.org/trunk@25436
git-svn-id: http://core.svn.wordpress.org/trunk@25358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 03:43:10 +00:00
Scott Taylor
5df8338e0a
Fix some undefined index notices related to Comment unit tests:
...
* There are several places where a `$_POST` index was unchecked before setting a variable
* In `wp_notify_postauthor()`, `$comment` was being returned null, but its properties were being accessed.
* In `check_ajax_referer()`, 3 different values can be checked for nonce on `$_REQUEST`, but only 1 had an `isset()`
See #25282 .
Built from https://develop.svn.wordpress.org/trunk@25433
git-svn-id: http://core.svn.wordpress.org/trunk@25355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 22:18:08 +00:00
Sergey Biryukov
a93aa0cb5c
Inline documentation for hooks in wp-includes/author-template.php.
...
props Frank Klein.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25429
git-svn-id: http://core.svn.wordpress.org/trunk@25353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 19:25:10 +00:00
Sergey Biryukov
7407bd1946
Inline documentation for get_comment_reply_link() and 'comment_reply_link' filter.
...
props DrewAPicture.
fixes #25310 .
Built from https://develop.svn.wordpress.org/trunk@25428
git-svn-id: http://core.svn.wordpress.org/trunk@25352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 19:20:09 +00:00
Sergey Biryukov
c227a3d78a
Inline documentation for hooks in wp-includes/shortcodes.php.
...
props natejacobs.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25423
git-svn-id: http://core.svn.wordpress.org/trunk@25348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 09:02:09 +00:00
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
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
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
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
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
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
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
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
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
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
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
Andrew Nacin
c8a7b53c65
Tighten allowed upload file types.
...
Built from https://develop.svn.wordpress.org/trunk@25317
git-svn-id: http://core.svn.wordpress.org/trunk@25279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 18:04:09 +00:00
Scott Taylor
d39c01d30e
Consistently wrap author
and excerpt
nodes with CDATA
in feeds.
...
Fixes #18056 .
Built from https://develop.svn.wordpress.org/trunk@25315
git-svn-id: http://core.svn.wordpress.org/trunk@25277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 16:55:09 +00:00
Scott Taylor
a563a5b2fa
Replace the ancient phpfreaks.com
RegEx to extract urls to ping with a more robust matcher. URLs with commas and things like &
were not being pinged. The new matcher even works for most IDN URLs. Adds unit tests.
...
Fixes #9064 .
Built from https://develop.svn.wordpress.org/trunk@25313
git-svn-id: http://core.svn.wordpress.org/trunk@25275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 03:18:08 +00:00
Scott Taylor
8bd9659d0d
Move checks for post_type
being an array inline. See [25291], [25292], #18614 .
...
Built from https://develop.svn.wordpress.org/trunk@25312
git-svn-id: http://core.svn.wordpress.org/trunk@25274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 03:02:10 +00:00
Scott Taylor
7af06e7ab3
Add an action at the end of WP_Query::parse_tax_query()
called (wait for it...) parse_tax_query
which will enable developers to alter $this->tax_query->queries
before SQL is generated. pre_get_posts
is too early for many scenarios.
...
Built from https://develop.svn.wordpress.org/trunk@25311
git-svn-id: http://core.svn.wordpress.org/trunk@25273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 02:36:09 +00:00
Scott Taylor
d24a3940de
Make sure the queried object is non-null before accessing its properties.
...
Props markoheijnen, ryan.
Fixes #21394 .
Built from https://develop.svn.wordpress.org/trunk@25310
git-svn-id: http://core.svn.wordpress.org/trunk@25272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 02:28:11 +00:00
Dion Hulse
3514c7d1c4
WP_HTTP: Correct the @since, and, @deprecated PHPDoc tags to reflect the class history. See #25007
...
Built from https://develop.svn.wordpress.org/trunk@25309
git-svn-id: http://core.svn.wordpress.org/trunk@25271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-09 08:10:10 +00:00
Dion Hulse
068df26686
Switch to using HTTPS connections for Plugin and Theme API requests when SSL is available. See #18577
...
Built from https://develop.svn.wordpress.org/trunk@25308
git-svn-id: http://core.svn.wordpress.org/trunk@25270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-09 07:54:11 +00:00
Dion Hulse
f66f154ced
WP_HTTP: When streaming to file, ensure that fwrite() suceeds and correctly writes the file to disk. Fixes #16057
...
Built from https://develop.svn.wordpress.org/trunk@25303
git-svn-id: http://core.svn.wordpress.org/trunk@25265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-09 01:18:08 +00:00
Sergey Biryukov
b85814e48c
Inline documentation for hooks in http.php.
...
props tw2113.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25302
git-svn-id: http://core.svn.wordpress.org/trunk@25264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-08 22:04:09 +00:00
Sergey Biryukov
6e5a5d21e0
Document 'wp_link_query_args' and 'wp_link_query' filters. props DrewAPicture. fixes #18042 .
...
Built from https://develop.svn.wordpress.org/trunk@25299
git-svn-id: http://core.svn.wordpress.org/trunk@25262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-07 19:47:10 +00:00
Sergey Biryukov
05d55a400b
Avoid PHP notices when configuring the Incoming Links dashboard widget. fixes #25250 .
...
Built from https://develop.svn.wordpress.org/trunk@25298
git-svn-id: http://core.svn.wordpress.org/trunk@25261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-07 18:17:10 +00:00
Sergey Biryukov
b2ce0b4f93
Add 'wp_link_query_args' and 'wp_link_query' filters to allow for customizing the internal linking dialog. props CoenJacobs, goldenapples. fixes #18042 .
...
Built from https://develop.svn.wordpress.org/trunk@25293
git-svn-id: http://core.svn.wordpress.org/trunk@25257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-07 12:21:12 +00:00
Scott Taylor
d7704991b3
Check the value passed to get_post_type_object()
. If it's an array, use the first item. get_query_var( 'post_type' )
can be an array if the query has been altered via filters/actions. There are several places in core that pass the query var. Adds unit tests.
...
In `template-loader.php`, move `is_post_type_archive()` and `is_tax()` directly below `is_home()`.
See #18614 , [25291].
Built from https://develop.svn.wordpress.org/trunk@25292
git-svn-id: http://core.svn.wordpress.org/trunk@25256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-06 23:39:09 +00:00
Scott Taylor
a67d551dac
Ensure that the post type object is the queried object when a post type has been registered with has_archive => true
. Ensure it is not stomped when decorated with tax_query
. Adds unit tests.
...
Props nacin.
Fixes #18614 .
Built from https://develop.svn.wordpress.org/trunk@25291
git-svn-id: http://core.svn.wordpress.org/trunk@25255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-06 22:07:09 +00:00
Scott Taylor
d7cc1f506a
Introduce wp_using_ext_object_cache()
- mimic wp_suspend_cache_invalidation()
and discourage direct access to $_wp_using_ext_object_cache
, cleaning up importing of globals in functions and provides function to modify that global. Loads the packaged object cache when an external cache hasn't been loaded or doesn't contain wp_cache_init()
.
...
Fixes #21401 .
Built from https://develop.svn.wordpress.org/trunk@25289
git-svn-id: http://core.svn.wordpress.org/trunk@25253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-06 18:10:09 +00:00
Scott Taylor
bfdc55b24d
Allow is_tag()
to accept term_id
, slug
, 'term_name or array of any. Many other
is_*()` funcs already do this. Adds unit tests.
...
Props ramiy.
Fixes #18746 .
Built from https://develop.svn.wordpress.org/trunk@25287
git-svn-id: http://core.svn.wordpress.org/trunk@25251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-06 17:27:08 +00:00
Andrew Nacin
3a28152826
Inline docs for hooks in MagPie.
...
props natejacobs.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25286
git-svn-id: http://core.svn.wordpress.org/trunk@25250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-06 17:19:09 +00:00
Andrew Nacin
20b0153753
Document the 'query' filter in wp-db.
...
props natejacobs.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25284
git-svn-id: http://core.svn.wordpress.org/trunk@25248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-06 17:07:09 +00:00
Scott Taylor
b22bc5e389
Check bad dates and redirect, instead of 404ing, as necessary and appropriate.
...
Adds query, conditional, and canonical Unit Tests.
Props kovshenin, SergeyBiryukov, DrewAPicture.
Fixes #10935 .
Built from https://develop.svn.wordpress.org/trunk@25280
git-svn-id: http://core.svn.wordpress.org/trunk@25244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-06 16:36:09 +00:00
Sergey Biryukov
14308c0d41
Deprecate get_blogaddress_by_domain(), unused since [25261]. props jeremyfelt. fixes #25235 .
...
Built from https://develop.svn.wordpress.org/trunk@25276
git-svn-id: http://core.svn.wordpress.org/trunk@25241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-06 11:41:09 +00:00
Andrew Nacin
9fdfa7ef5c
Short descriptions for inline docs should end with a period, per the vast majority of core. see #25229 .
...
Built from https://develop.svn.wordpress.org/trunk@25273
git-svn-id: http://core.svn.wordpress.org/trunk@25239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-06 01:38:09 +00:00
Dion Hulse
443aa35cfc
Upgrader: Make clearing the Plugin and Theme update caches optional during install and upgrade proceedures. See #22704
...
Built from https://develop.svn.wordpress.org/trunk@25272
git-svn-id: http://core.svn.wordpress.org/trunk@25238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-06 01:33:09 +00:00
Andrew Nacin
4b40e7a646
More adjustments and improvements for inline documentation for get_pages(). see #25186 .
...
Built from https://develop.svn.wordpress.org/trunk@25271
git-svn-id: http://core.svn.wordpress.org/trunk@25237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-06 01:21:09 +00:00
Scott Taylor
54c5a75e68
Simplify the check for false-y child_of
arg.
...
Props SergeyBiryukov.
See #25230 , [25245].
Built from https://develop.svn.wordpress.org/trunk@25270
git-svn-id: http://core.svn.wordpress.org/trunk@25236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-05 23:36:10 +00:00
Scott Taylor
8038d7f9e8
Move get_meta_type()
into the WP_Meta_Query
class as get_cast_for_type()
. WP_Query
can then access it like: $this->meta_query->get_cast_for_type()
.
...
See #21621 , [25255].
Built from https://develop.svn.wordpress.org/trunk@25269
git-svn-id: http://core.svn.wordpress.org/trunk@25235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-05 23:32:09 +00:00
Scott Taylor
cc41e7d04a
Fix spacing in docs for get_pages()
.
...
Props DrewAPicture.
See #25186 .
Built from https://develop.svn.wordpress.org/trunk@25268
git-svn-id: http://core.svn.wordpress.org/trunk@25234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-05 23:21:10 +00:00
Scott Taylor
1855f97a2c
Add docs to the woefully under-documented get_pages()
.
...
Props DrewAPicture.
Fixes #25186 .
Built from https://develop.svn.wordpress.org/trunk@25266
git-svn-id: http://core.svn.wordpress.org/trunk@25232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-05 22:13:09 +00:00
Scott Taylor
dd7a6d66af
Only variables should be passed by reference.
...
Props Askapache.
Fixes #23032 .
Built from https://develop.svn.wordpress.org/trunk@25263
git-svn-id: http://core.svn.wordpress.org/trunk@25231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-05 21:53:09 +00:00
Scott Taylor
d1a40562eb
Add check to make sure a valid argument was passed to get_page_uri()
.
...
Props Viper007Bond.
Fixes #24491 .
Built from https://develop.svn.wordpress.org/trunk@25262
git-svn-id: http://core.svn.wordpress.org/trunk@25230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-05 21:42:10 +00:00
Scott Taylor
d03b6f9df5
Avoids incorrect results when url_to_postid()
checking is not strict enough. Adds a bunch of Unit Tests for `url_to_postid()', which is currently only tested lightly in some XML-RPC tests.
...
Props gcorne, gradyetc.
Fixes #20560 .
Built from https://develop.svn.wordpress.org/trunk@25258
git-svn-id: http://core.svn.wordpress.org/trunk@25226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-05 17:29:13 +00:00
Scott Taylor
d041c830bc
Avoid database error when include
or exclude
is not really a term_id
. Adds more unit tests.
...
Props kovshenin.
Fixes #11823 .
Built from https://develop.svn.wordpress.org/trunk@25257
git-svn-id: http://core.svn.wordpress.org/trunk@25225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-05 17:15:09 +00:00
Scott Taylor
4be84bbdfb
When meta_type
is passed with orderby => meta_value
, orderby
must also use CAST()
to avoid scenarios like: SELECT
ing by UNSIGNED
and then ordering by CHAR
. Adds unit test.
...
Fixes #21621 .
Built from https://develop.svn.wordpress.org/trunk@25255
git-svn-id: http://core.svn.wordpress.org/trunk@25223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-05 16:57:08 +00:00
Scott Taylor
aa480a25e2
Introduce author__in
and author__not_in
query vars. Fixes issue with multiple author exclusion when comma-separated string is passed for author
. Adds a bunch of missing unit tests.
...
Props pollett for initial patch.
Fixes #16854 .
Built from https://develop.svn.wordpress.org/trunk@25248
git-svn-id: http://core.svn.wordpress.org/trunk@25216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 21:33:09 +00:00
Andrew Nacin
365a78db7c
Ensure zxcvbn.min.js loads when we are guessing the wp-includes URL.
...
props iandunn, SergeyBiryukov.
fixes #25201 .
Built from https://develop.svn.wordpress.org/trunk@25246
git-svn-id: http://core.svn.wordpress.org/trunk@25214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 21:16:09 +00:00
Scott Taylor
6253183ffc
Set hierarchical
to false
when parent
is passed to get_pages()
and child_of
is not.
...
Fixes #25230 .
Built from https://develop.svn.wordpress.org/trunk@25245
git-svn-id: http://core.svn.wordpress.org/trunk@25213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 21:00:09 +00:00
Scott Taylor
bf6da40cfc
Allow get_pages()
to accept an array
for the arg parent
. Adds unit tests, some will fail until the next commit.
...
Fixes #9470 .
Built from https://develop.svn.wordpress.org/trunk@25244
git-svn-id: http://core.svn.wordpress.org/trunk@25212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 20:56:09 +00:00
Scott Taylor
6895dc9f8e
Introduce description__like
arg to get_terms()
. Make description__like
and name__like
perform LIKE
s with a wildcard on both sides of passed string. Previously, strings had to match the beginning of the name, so searching for burrito
in This is a burrito
would fail. Adds unit tests.
...
Props aaroncampbell for the original patch, 5 years ago.
Fixes #8214 .
Built from https://develop.svn.wordpress.org/trunk@25241
git-svn-id: http://core.svn.wordpress.org/trunk@25211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 19:41:08 +00:00
Scott Taylor
4a2c4c8f01
Kill the query in the following edge case: post_type => 'any'
but exclude_from_search => false
returns no valid post types. Adds unit tests.
...
Props mitchoyoshitaka.
Fixes #19198 .
Built from https://develop.svn.wordpress.org/trunk@25239
git-svn-id: http://core.svn.wordpress.org/trunk@25209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 18:51:10 +00:00
Scott Taylor
3b1b03e4c4
Convert category__and
to category__in
(less expensive) and unset it when only one category is passed. Adds unit tests.
...
Fixes #24245 .
Built from https://develop.svn.wordpress.org/trunk@25238
git-svn-id: http://core.svn.wordpress.org/trunk@25208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 18:17:09 +00:00
Andrew Nacin
71b640dfa4
add_theme_support( 'html5' ) now defaults to comment-list, comment-form, and search-form.
...
This was the implicit case in 3.6.0, modified in [25193].
see #24932 .
Built from https://develop.svn.wordpress.org/trunk@25235
git-svn-id: http://core.svn.wordpress.org/trunk@25205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 17:44:09 +00:00
Scott Taylor
f1a33028f6
Allow int
to be passed in lieu of array
, add append
arg to wp_set_post_categories()
. Adds more extensive unit tests for wp_set_post_categories()
.
...
Props ptahdunbar for initial patch.
Fixes #16550 .
Built from https://develop.svn.wordpress.org/trunk@25234
git-svn-id: http://core.svn.wordpress.org/trunk@25204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 17:42:10 +00:00
Sergey Biryukov
1d79b0bdf3
Move check_password_reset_key(), reset_password(), and register_new_user() from wp-login.php to wp-includes/user.php, to make them reusable. props beaulebens for initial patch. fixes #20279 .
...
Built from https://develop.svn.wordpress.org/trunk@25231
git-svn-id: http://core.svn.wordpress.org/trunk@25201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 08:59:09 +00:00
Sergey Biryukov
9769012244
Add phpdoc for 'wp_redirect' and 'wp_redirect_status' filters. props DrewAPicture. fixes #25215 .
...
Built from https://develop.svn.wordpress.org/trunk@25230
git-svn-id: http://core.svn.wordpress.org/trunk@25200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 08:31:09 +00:00
Sergey Biryukov
1834e8c45e
Update phpdoc for get_current_site(). props jeremyfelt. fixes #25040 .
...
Built from https://develop.svn.wordpress.org/trunk@25229
git-svn-id: http://core.svn.wordpress.org/trunk@25199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 08:26:08 +00:00
Dion Hulse
19054801bf
WP_HTTP: Re-enable curl, it was accidentally left out of [25224]. See #25007 See #16606
...
Built from https://develop.svn.wordpress.org/trunk@25225
git-svn-id: http://core.svn.wordpress.org/trunk@25195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 04:50:08 +00:00
Dion Hulse
3ac572867e
WP_HTTP: Replacing the Fsockopen & Streams Transports with a new Streams transport which fully supports HTTPS communication.
...
This changeset also bundles ca-bundle.crt from the Mozilla project to allow for us to verify SSL certificates on hosts which have an incomplete, outdated, or invalid local SSL configuration.
Props rmccue for major assistance getting this this far. See #25007 for discussion, also Fixes #16606
Built from https://develop.svn.wordpress.org/trunk@25224
git-svn-id: http://core.svn.wordpress.org/trunk@25194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-04 04:49:12 +00:00
Dion Hulse
bb74078a2b
WP_HTTP: Add a filter for the available HTTP Transports to allow plugins to alter the order which HTTP Transports are tried, or to add their own.
...
Built from https://develop.svn.wordpress.org/trunk@25222
git-svn-id: http://core.svn.wordpress.org/trunk@25193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-03 08:39:09 +00:00
Dion Hulse
98104779a3
WP_HTTP: Clean up some comments style and remove outdated information.
...
The change to the proxy block here is for consistency, WP_HTTP_Proxy::block_request() is never called before parse_url() has successfully operated on the URL, and in the event we cannot read the URL, it shouldn't be requested.
Built from https://develop.svn.wordpress.org/trunk@25221
git-svn-id: http://core.svn.wordpress.org/trunk@25192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-03 08:37:10 +00:00
Dion Hulse
98db8bb549
Core Updates: Ensure that the system supports outgoing HTTPS requests before making an update check over HTTPS. Fixes a typo in [25219]. See #22704
...
Built from https://develop.svn.wordpress.org/trunk@25220
git-svn-id: http://core.svn.wordpress.org/trunk@25191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-03 07:12:10 +00:00
Dion Hulse
88702eba45
Core Updates: Switch to using a new 1.7 version check API which will return extra auto-update packages when requested over SSL. The new API has switched to returning JSON. See #22704
...
Built from https://develop.svn.wordpress.org/trunk@25219
git-svn-id: http://core.svn.wordpress.org/trunk@25190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-03 03:22:10 +00:00
Sergey Biryukov
02e5cb6f9d
Escape URLs in feed_links(). props Chouby. fixes #25212 .
...
Built from https://develop.svn.wordpress.org/trunk@25207
git-svn-id: http://core.svn.wordpress.org/trunk@25179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-02 10:11:09 +00:00
Sergey Biryukov
5f45d9b482
Use an array as a default value for $meta in multisite signup-related functions. fixes #25149 .
...
Built from https://develop.svn.wordpress.org/trunk@25205
git-svn-id: http://core.svn.wordpress.org/trunk@25177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-02 03:33:09 +00:00
Sergey Biryukov
6760d294bb
Update phpdoc for get_user_to_edit(), get_userdata(), and get_user_by(). props tivnet. fixes #24992 .
...
Built from https://develop.svn.wordpress.org/trunk@25204
git-svn-id: http://core.svn.wordpress.org/trunk@25176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-02 03:25:09 +00:00
Sergey Biryukov
259ee74782
Prevent WP_Styles::do_item() from adding its own style tags when concatenation is disabled. props stephenharris. fixes #24813 .
...
Built from https://develop.svn.wordpress.org/trunk@25202
git-svn-id: http://core.svn.wordpress.org/trunk@25174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-01 13:15:09 +00:00
Andrew Ozz
f50b7ff4c7
Remove the banner when concatenating TinyMCE so wp-tinymce.js.gz doesn't change every time the build process is run. See #25159 .
...
Built from https://develop.svn.wordpress.org/trunk@25200
git-svn-id: http://core.svn.wordpress.org/trunk@25172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-31 22:02:10 +00:00
Sergey Biryukov
3615a566b7
Update tests/README.txt to reflect the new tests directory structure. props jdgrimes. fixes #25133 .
...
Built from https://develop.svn.wordpress.org/trunk@25199
git-svn-id: http://core.svn.wordpress.org/trunk@25171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-31 13:43:10 +00:00
Andrew Nacin
7a8981a38c
Case insensitivity for is_email_address_unsafe().
...
props jkudish.
fixes #25046 .
Built from https://develop.svn.wordpress.org/trunk@25197
git-svn-id: http://core.svn.wordpress.org/trunk@25169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-31 04:36:10 +00:00
Andrew Nacin
0d9fcbd841
Use get_nav_menu_locations() in wp_delete_nav_menu().
...
props nofearinc.
see #25064 .
Built from https://develop.svn.wordpress.org/trunk@25196
git-svn-id: http://core.svn.wordpress.org/trunk@25168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-31 01:39:09 +00:00
Andrew Nacin
8e56222a1a
Nav menus: Allow assigning a new menu to an existing location when no theme setting is currently saved.
...
props ocean90.
see #25064 , for trunk.
Built from https://develop.svn.wordpress.org/trunk@25195
git-svn-id: http://core.svn.wordpress.org/trunk@25167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-31 01:37:08 +00:00
Andrew Nacin
1ef62770d2
Remove display of 'Previously restored by' in the revisions meta box as it is busted.
...
Fixes invalid markup (missing closing ul tag) when there was no previously restored revision.
see #25051 for trunk.
Built from https://develop.svn.wordpress.org/trunk@25194
git-svn-id: http://core.svn.wordpress.org/trunk@25166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-31 01:33:09 +00:00
Andrew Nacin
e0d60de6ca
Fix 'html5' theme support.
...
* Require it to have a second argument when adding.
* Merge, rather than replace, on second add.
* Make current_theme_supports() work when two arguments are passed.
Adds unit tests.
props nathanrice for initial patch.
see #24932 for trunk.
Built from https://develop.svn.wordpress.org/trunk@25193
git-svn-id: http://core.svn.wordpress.org/trunk@25165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-31 01:30:09 +00:00
Andrew Nacin
0496b1acfd
Hide 'Database Upgrade Required' on admin/network/upgrade.php when you are not being asked to upgrade, to prevent confusion.
...
props duck_.
see #24845 . see #23540 .
Built from https://develop.svn.wordpress.org/trunk@25191
git-svn-id: http://core.svn.wordpress.org/trunk@25163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-31 00:57:10 +00:00
Andrew Nacin
6a1ac52330
Be less verbose when erroring out in do_feed() for an invalid feed template. fixes #24874 .
...
Built from https://develop.svn.wordpress.org/trunk@25190
git-svn-id: http://core.svn.wordpress.org/trunk@25162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-30 23:37:11 +00:00
Andrew Nacin
043bb44747
Remove wp-tinymce.js.gz from develop.svn, as this is now part of the build process.
...
see #25159 and [25188].
Built from https://develop.svn.wordpress.org/trunk@25189
git-svn-id: http://core.svn.wordpress.org/trunk@25161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-30 22:25:08 +00:00
Andrew Nacin
2356b54f7e
Build tinymce.js.gz using grunt.
...
props azaozz.
see #25159 .
Built from https://develop.svn.wordpress.org/trunk@25188
git-svn-id: http://core.svn.wordpress.org/trunk@25160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-30 22:17:15 +00:00
Andrew Nacin
5a312f71f6
Revert [23307] so new users in multisite are not automatically subscribers on the main site.
...
props duck_.
fixes #25166 for trunk.
see #15627 .
Built from https://develop.svn.wordpress.org/trunk@25183
git-svn-id: http://core.svn.wordpress.org/trunk@25155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-30 16:29:12 +00:00
Jon Cave
93b2edbbba
Correct rewrite tag for hierarchical post types without a query_var.
...
Hierarchical rewrite rules operate via the 'pagename' query variable which is
passed to get_page_by_path(). However, the current rewrite rules use the 'name'
query variable for hierarchical types without a custom query_var.
Fixes #16323 .
Built from https://develop.svn.wordpress.org/trunk@25182
git-svn-id: http://core.svn.wordpress.org/trunk@25154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-30 08:08:09 +00:00
Andrew Nacin
af70c14d6d
Add signup_id primary key to $wpdb->signups, and add better indexes.
...
props josephscott, pento, barry.
see #15004 .
Built from https://develop.svn.wordpress.org/trunk@25179
git-svn-id: http://core.svn.wordpress.org/trunk@25151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-30 04:30:08 +00:00
Andrew Nacin
cbad0048a4
Don't set up $post_author_data in map_meta_cap() as we don't need it.
...
props duck_.
fixes #25177 .
Built from https://develop.svn.wordpress.org/trunk@25177
git-svn-id: http://core.svn.wordpress.org/trunk@25150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-30 04:01:08 +00:00
Dion Hulse
994033258e
WP_HTTP: Make the new 2nd parameter to WP_HTP::processHeaders() as optional. See #21182 . Fixes #25179
...
Built from https://develop.svn.wordpress.org/trunk@25176
git-svn-id: http://core.svn.wordpress.org/trunk@25149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-30 02:11:09 +00:00
Scott Taylor
7c1ea6c95c
No need to re-map the return values of wp_parse_id_list()
to int.
...
See #22074 , #11823 .
Built from https://develop.svn.wordpress.org/trunk@25169
git-svn-id: http://core.svn.wordpress.org/trunk@25145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-29 18:54:09 +00:00
Scott Taylor
0624fe960b
Improve the include / exclude SQL generation in get_pages()
by using IN
and NOT IN
where applicable. Adds unit tests for include / exclude.
...
Fixes #22074 .
Built from https://develop.svn.wordpress.org/trunk@25168
git-svn-id: http://core.svn.wordpress.org/trunk@25144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-29 18:49:09 +00:00
Scott Taylor
29952baa41
Search term name
and slug
when the search
arg is passed to get_terms()
. Adds unit test.
...
Props wojtek.szkutnik.
Fixes #13992 .
Built from https://develop.svn.wordpress.org/trunk@25164
git-svn-id: http://core.svn.wordpress.org/trunk@25143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-29 16:50:09 +00:00
Scott Taylor
eeb3b15936
Pass the taxonomy around to relevant nav menu actions to avoid arbitrarily deleting all items with menu-item-type
of taxonomy
. Adds unit test for wp_get_associated_nav_menu_items()
.
...
Props garyc40, SergeyBiryukov.
Fixes #15264 .
Built from https://develop.svn.wordpress.org/trunk@25163
git-svn-id: http://core.svn.wordpress.org/trunk@25142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-29 16:45:10 +00:00
Scott Taylor
4b449d38b4
Improve the include / exclude SQL generation in get_terms()
by using IN
and NOT IN
where applicable. Adds unit tests for include / exclude.
...
Props sirzooro, duck_.
Fixes #11823 .
Built from https://develop.svn.wordpress.org/trunk@25162
git-svn-id: http://core.svn.wordpress.org/trunk@25141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-29 16:24:09 +00:00
Scott Taylor
2f2f50c659
Support id=>name
and id=>slug
values for fields
arg in get_terms()
. Adds unit tests.
...
Props mikeschinkel.
Fixes #13661 .
Built from https://develop.svn.wordpress.org/trunk@25161
git-svn-id: http://core.svn.wordpress.org/trunk@25140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-29 15:19:10 +00:00
Scott Taylor
8e6abf65a8
Respect the fields
arg when passed to get_children()
.
...
Fixes #22208 .
Built from https://develop.svn.wordpress.org/trunk@25160
git-svn-id: http://core.svn.wordpress.org/trunk@25139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-29 15:08:12 +00:00
Jon Cave
5073ad5776
zxcvbn: Apply ROT13 when building the dynamic user_inputs dictionary.
...
The modified matcher assumes that the dictionaries are ROT13 encoded.
All of the static dictionaries were, but user_inputs wasn't. See #21737 .
Built from https://develop.svn.wordpress.org/trunk@25159
git-svn-id: http://core.svn.wordpress.org/trunk@25138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-29 08:41:08 +00:00
Andrew Nacin
09e92faa6c
Use Dropbox's zxcvbn library for our password meter.
...
The library was added in [25156].
props duck_.
see #21737 .
Built from https://develop.svn.wordpress.org/trunk@25157
git-svn-id: http://core.svn.wordpress.org/trunk@25136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 16:09:10 +00:00
Andrew Nacin
1370cf9a7b
Add Dropbox's zxcvbn library for realistic password strength estimation.
...
Upstream: https://github.com/lowe/zxcvbn . MIT License.
Modified for WordPress with a rot13 of the included word dictionaries, for PG-ness.
props duck_.
see #21737 .
Built from https://develop.svn.wordpress.org/trunk@25156
git-svn-id: http://core.svn.wordpress.org/trunk@25135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 16:03:11 +00:00
Dion Hulse
f17254a835
WP_HTTP: Fix a variable typo in [25153] See #23463
...
Built from https://develop.svn.wordpress.org/trunk@25155
git-svn-id: http://core.svn.wordpress.org/trunk@25134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 07:30:08 +00:00
Dion Hulse
5a9ccf9bee
WP_HTTP: Update the documentation regarding HTTP/1.1 support. Props leewillis77 Fixes #25074
...
Built from https://develop.svn.wordpress.org/trunk@25154
git-svn-id: http://core.svn.wordpress.org/trunk@25133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 06:55:09 +00:00
Dion Hulse
122c3953d1
WP_HTTP: Improve WP_HTTP::chunkTransferDecode() to properly handle binary data and chunked responses which include data in the page that looks like a chunked response.
...
This also fixes a case where the gzip'd data would become corrupt after chunked decoding as \r\n was replaced with \n in the data stream. Fixes #23463
Built from https://develop.svn.wordpress.org/trunk@25153
git-svn-id: http://core.svn.wordpress.org/trunk@25132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 06:53:09 +00:00
Sergey Biryukov
9e9b9b5508
Make sure $args is an array before treating it as such. fixes #25151 for trunk.
...
Built from https://develop.svn.wordpress.org/trunk@25151
git-svn-id: http://core.svn.wordpress.org/trunk@25130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 05:28:09 +00:00
Dion Hulse
1aecc6c957
WP_HTTP: When requesting a document with HTTP/1.1 include the 'Connection: Close' header (unless a Connection header is already specified) to prevent the connection being held open and hanging the request process. See #23463
...
Built from https://develop.svn.wordpress.org/trunk@25150
git-svn-id: http://core.svn.wordpress.org/trunk@25129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 04:59:09 +00:00
Dion Hulse
f8e3be14fe
WP_HTTP: More relaxed host matching for WP_PROXY_BYPASS_HOSTS and WP_ACCESSIBLE_HOSTS, allowing for subdomains in wildcards to include dashes (and anything else which [\w.] didn't catch). Fixes #24201
...
Built from https://develop.svn.wordpress.org/trunk@25149
git-svn-id: http://core.svn.wordpress.org/trunk@25128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 04:54:09 +00:00
Andrew Nacin
1fbc03a388
The main site of a secondary network should not use the original wp-content/uploads upload path.
...
props jeremyfelt.
fixes #25030 .
Built from https://develop.svn.wordpress.org/trunk@25148
git-svn-id: http://core.svn.wordpress.org/trunk@25127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 03:36:09 +00:00
Andrew Nacin
4d6d80a14f
Introduce is_main_network().
...
By default, a network ID of 1 is assumed to be the main network.
Otherwise, it is the first network listed in the wp_site table.
If PRIMARY_NETWORK_ID is defined, it is considered main network.
props jeremyfelt.
see #25030 .
Built from https://develop.svn.wordpress.org/trunk@25147
git-svn-id: http://core.svn.wordpress.org/trunk@25126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 03:35:08 +00:00
Dion Hulse
8a50bf2f14
Use a better variable name in antispambot() introduced with [25055]. Props duck_ Fixes #16754
...
Built from https://develop.svn.wordpress.org/trunk@25146
git-svn-id: http://core.svn.wordpress.org/trunk@25125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 01:47:09 +00:00
Andrew Nacin
732f176943
Pass $taxonomies to the get_terms_orderby filter.
...
props johnbillion.
fixes #18754 .
Built from https://develop.svn.wordpress.org/trunk@25142
git-svn-id: http://core.svn.wordpress.org/trunk@25122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-27 21:06:09 +00:00
Andrew Nacin
41f1cd687b
WP_Date_Query.
...
props Viper007Bond.
see #18694 .
Built from https://develop.svn.wordpress.org/trunk@25139
git-svn-id: http://core.svn.wordpress.org/trunk@25119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-27 16:39:09 +00:00
Andrew Nacin
7ff1bbea19
Don't cast the 'm' query variable to an integer as the value can exceed the range of a 32-bit signed integer.
...
props Viper007Bond.
fixes #24884 .
Built from https://develop.svn.wordpress.org/trunk@25138
git-svn-id: http://core.svn.wordpress.org/trunk@25118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-27 15:20:10 +00:00
Andrew Nacin
e01352fe2f
Ensure a user exists in get_comment_author().
...
props azaozz.
see #24084 .
Built from https://develop.svn.wordpress.org/trunk@25136
git-svn-id: http://core.svn.wordpress.org/trunk@25116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-27 13:17:09 +00:00
Andrew Nacin
d26e92d60f
Remove unnecessary loops in default-filters.php.
...
props Jayjdk.
fixes #25011 .
Built from https://develop.svn.wordpress.org/trunk@25134
git-svn-id: http://core.svn.wordpress.org/trunk@25114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-27 11:59:11 +00:00
Dominik Schilling
8688857816
Introduce show_in_menu for register_taxonomy.
...
Accepts boolean: true to show, false to hide. If not set, the default is inherited from show_ui.
fixes #20930 .
Built from https://develop.svn.wordpress.org/trunk@25133
git-svn-id: http://core.svn.wordpress.org/trunk@25113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-26 22:35:10 +00:00
Andrew Ozz
a87a1bceff
TinyMCE: fix editor focus issues after ontouchstart event on the parent document in iOS Safari. Fixes #25131 for 3.7.
...
Built from https://develop.svn.wordpress.org/trunk@25132
git-svn-id: http://core.svn.wordpress.org/trunk@25112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-26 21:24:10 +00:00
Dominik Schilling
357f52eed7
Improve inline docs for register_post_type() and register_taxonomy().
...
* register_taxonomy: Use the same doc format for the associative array arg as used for register_post_type()
* register_taxonomy: Improve docs for _builtin, capabilities, hierarchical and rewrite args
* register_taxonomy: Use the same order in $defaults as in docblock
* register_taxonomy: Replace is_null with null ===, to be consistent
* register_post_type: Use the same order in $defaults as in docblock
* register_post_type: Improve docs for @uses and default fallbacks
And while we're on it: Whitespaces.
fixes #25150 .
Built from https://develop.svn.wordpress.org/trunk@25130
git-svn-id: http://core.svn.wordpress.org/trunk@25110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-26 20:24:08 +00:00
Sergey Biryukov
045f93f3b2
Ignore case differences when checking file extension in wp_audio_shortcode() and wp_video_shortcode(). props nofearinc, bhengh. fixes #25140 .
...
Built from https://develop.svn.wordpress.org/trunk@25128
git-svn-id: http://core.svn.wordpress.org/trunk@25108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-26 19:21:10 +00:00
Sergey Biryukov
cbd1895437
Avoid a PHP notice in wpmu_create_blog() if $meta is not passed. props duck_, jeremyfelt, SergeyBiryukov. fixes #20793 .
...
Built from https://develop.svn.wordpress.org/trunk@25127
git-svn-id: http://core.svn.wordpress.org/trunk@25107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-26 18:57:10 +00:00
Andrew Nacin
4493b8c97a
Return 1 from get_comment_pages_count() when pagination is disabled.
...
props obenland.
fixes #17778 .
Built from https://develop.svn.wordpress.org/trunk@25126
git-svn-id: http://core.svn.wordpress.org/trunk@25106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-26 18:52:08 +00:00
Andrew Nacin
4e4e9f6bee
Network Admin toolbar menu: Add Plugins and Themes, remove Visit Network.
...
props Ipstenu, SergeyBiryukov.
fixes #21674 .
Built from https://develop.svn.wordpress.org/trunk@25120
git-svn-id: http://core.svn.wordpress.org/trunk@25100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-26 15:22:11 +00:00
Sergey Biryukov
503f867e1d
Make in_category() an alias of has_category(). fixes #16718 .
...
Built from https://develop.svn.wordpress.org/trunk@25119
git-svn-id: http://core.svn.wordpress.org/trunk@25099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-24 22:54:10 +00:00
Sergey Biryukov
db2a73a3f7
Avoid a fatal error in WP_Http::request() if $response is a WP_Error instance. props dllh, nacin. fixes #24987 .
...
Built from https://develop.svn.wordpress.org/trunk@25114
git-svn-id: http://core.svn.wordpress.org/trunk@25095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-24 03:11:10 +00:00
Sergey Biryukov
fdef243bf6
Deprecate $network_id argument in get_blog_count(). props jeremyfelt. fixes #25129 .
...
Built from https://develop.svn.wordpress.org/trunk@25113
git-svn-id: http://core.svn.wordpress.org/trunk@25094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-24 02:42:10 +00:00
Andrew Nacin
9ccc275d88
Correct phpdoc for WP_Query::$post. props lgedeon, fixes #25130 .
...
Built from https://develop.svn.wordpress.org/trunk@25110
git-svn-id: http://core.svn.wordpress.org/trunk@25092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-23 22:02:08 +00:00
Andrew Ozz
c79ef61b12
User state settings:
...
- Allow empty cookie value to be saved.
- Use get_current_user_id() instead of wp_get_current_user().
- Use is_user_member_of_blog().
- Sanitize both name and value in wp_set_all_user_settings().
- Some var names and code formatting cleanup.
Fixes #24921 .
Built from https://develop.svn.wordpress.org/trunk@25109
git-svn-id: http://core.svn.wordpress.org/trunk@25091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-23 21:43:09 +00:00
Scott Taylor
a97dfd3009
Use reset()
to grab the first taxonomy in an array, not by numerical index. Cleans up whitespace. Props webord, nbachiyski. Fixes #23506 .
...
Built from https://develop.svn.wordpress.org/trunk@25108
git-svn-id: http://core.svn.wordpress.org/trunk@25090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-23 21:29:10 +00:00
Andrew Ozz
3c3ec6dd8c
Logging in: when the Remember Me checkbox is checked, make sure the browser continues to send the expired cookies so the "login grace period" for POST and AJAX requests works. Fixes #24735 .
...
Built from https://develop.svn.wordpress.org/trunk@25107
git-svn-id: http://core.svn.wordpress.org/trunk@25089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-23 21:27:08 +00:00
Scott Taylor
22c59d9c45
Check term_id
against the $term
object, not the non-existent var $args
. Props rboren. Fixes #12729 .
...
Built from https://develop.svn.wordpress.org/trunk@25106
git-svn-id: http://core.svn.wordpress.org/trunk@25088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-23 21:05:09 +00:00
Sergey Biryukov
688ecb9fcc
Use correct variable. see #22922 .
...
Built from https://develop.svn.wordpress.org/trunk@25105
git-svn-id: http://core.svn.wordpress.org/trunk@25087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-23 20:57:11 +00:00
Andrew Nacin
0adcab1f7f
Add filters to the recipients of emails sent by wp_notify_postauthor() and wp_notify_moderator().
...
The new filters are called comment_notification_recipients and comment_moderation_recipients.
Add the context of $comment_id to the comment_moderation_headers filter, to match the comment_notification_headers filter.
props chipbennett.
fixes #22922 , #20353 .
Built from https://develop.svn.wordpress.org/trunk@25104
git-svn-id: http://core.svn.wordpress.org/trunk@25086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-23 19:36:10 +00:00
Helen Hou-Sandí
249bb75f8f
Actually display customizer section descriptions in a meaningful way. props obenland, helen. fixes #24392 .
...
Built from https://develop.svn.wordpress.org/trunk@25102
git-svn-id: http://core.svn.wordpress.org/trunk@25084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-23 16:18:10 +00:00
Sergey Biryukov
c7de681a26
Add description for _wp_timezone_choice_usort_callback(). props neoxx. fixes #25125 .
...
Built from https://develop.svn.wordpress.org/trunk@25101
git-svn-id: http://core.svn.wordpress.org/trunk@25083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-23 13:57:08 +00:00
Sergey Biryukov
b86ea82b12
Fix typo in phpdoc. props jamescollins. fixes #25092 .
...
Built from https://develop.svn.wordpress.org/trunk@25097
git-svn-id: http://core.svn.wordpress.org/trunk@25079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-22 23:48:09 +00:00
Andrew Nacin
24a9673b1e
Format WordPress in <title> tags produced by wp_title().
...
props evansolomon.
fixes #19211 .
Built from https://develop.svn.wordpress.org/trunk@25093
git-svn-id: http://core.svn.wordpress.org/trunk@25077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-22 21:59:10 +00:00
Andrew Nacin
527f73fbb7
Multisite: Add a filter to get_space_allowed() and increase its internal default value to the network default.
...
props jkudish for initial patch.
fixes #23650 .
Built from https://develop.svn.wordpress.org/trunk@25092
git-svn-id: http://core.svn.wordpress.org/trunk@25076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-22 20:55:08 +00:00
Andrew Nacin
fa4c7a1feb
PHPDoc for WP_Post properties. fixes #25092 .
...
Built from https://develop.svn.wordpress.org/trunk@25086
git-svn-id: http://core.svn.wordpress.org/trunk@25070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-22 15:58:09 +00:00
Ryan Boren
f2f939fed4
Pinking shears
...
Built from https://develop.svn.wordpress.org/trunk@25085
git-svn-id: http://core.svn.wordpress.org/trunk@25069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-22 15:56:08 +00:00
Sergey Biryukov
6509e4e686
Declare args as a local variable. props greuben. fixes #25078 .
...
Built from https://develop.svn.wordpress.org/trunk@25080
git-svn-id: http://core.svn.wordpress.org/trunk@25065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-22 02:11:08 +00:00
Sergey Biryukov
52e2e61cb1
Use correct order of arguments when calling edit_term_link() from edit_tag_link(). Correct $tag parameter description. props pbiron. fixes #25116 .
...
Built from https://develop.svn.wordpress.org/trunk@25079
git-svn-id: http://core.svn.wordpress.org/trunk@25064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-22 00:49:09 +00:00
Andrew Ozz
0e349eaace
Heartbeat: better queue functionality: improve enqueue() and isQueued(), introduce dequeue() and getQueuedItem(). Props evansolomon, fixes #25047 .
...
Built from https://develop.svn.wordpress.org/trunk@25078
git-svn-id: http://core.svn.wordpress.org/trunk@25063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-21 22:55:09 +00:00
Sergey Biryukov
666aafeda4
Update phpdoc for get_permalink(). props tivnet. fixes #25115 .
...
Built from https://develop.svn.wordpress.org/trunk@25077
git-svn-id: http://core.svn.wordpress.org/trunk@25062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-21 22:12:10 +00:00