Commit Graph

23808 Commits

Author SHA1 Message Date
Andrew Nacin 2cac0fde8a Avoid resetting the 'hierarchical' argument in get_pages() when 'parent' is -1, the default.
Fixes a regression introduced in [25270]. Adds unit tests.

props chrisbliss18.
fixes #25750.


git-svn-id: https://develop.svn.wordpress.org/trunk@25974 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-29 01:46:01 +00:00
Dominik Schilling (ocean90) 4be9031dc3 Widen fields for Quick Edit for the de_DE locale and improve styles for the ru_RU locale.
props zodiac1978.
fixes #25753.

git-svn-id: https://develop.svn.wordpress.org/trunk@25973 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 23:28:32 +00:00
Sergey Biryukov ddf0147a4f Move test_get_pages_include_exclude() and test_get_pages_parent() to tests/post/getPages.php. Add a @ticket reference. see [25168] and [25244].
git-svn-id: https://develop.svn.wordpress.org/trunk@25972 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 21:49:27 +00:00
Lance Willett eb01af41c2 Twenty Fourteen: clean up post thumbnail naming. Props iamtakashi, fixes #25718.
git-svn-id: https://develop.svn.wordpress.org/trunk@25971 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 17:57:57 +00:00
Lance Willett 01a703070b Twenty Fourteen: Fix gallery posts in the ephemera widget. Props iamtakashi, fixes #25740.
git-svn-id: https://develop.svn.wordpress.org/trunk@25970 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 17:52:45 +00:00
Lance Willett bd5ac31911 Twenty Fourteen: display titles for aside, link, and quote format on small screens. Props iamtakashi, fixes #25694.
git-svn-id: https://develop.svn.wordpress.org/trunk@25969 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 17:48:46 +00:00
Sergey Biryukov 2e50c871ab Avoid a PHP warning in wp_generate_attachment_metadata() if $metadata is not an array. props asakurayoh. fixes #25649.
git-svn-id: https://develop.svn.wordpress.org/trunk@25968 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 16:42:36 +00:00
Drew Jaynes 030d69717c Inline documentation for hooks in wp-admin/network/settings.php.
Props ninio for the initial patches.
Fixes #25727.


git-svn-id: https://develop.svn.wordpress.org/trunk@25967 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 15:21:59 +00:00
Sergey Biryukov 9a5e8acead Restore @see get_next_post_link() reference and move it to next_post_link(). see #25743.
git-svn-id: https://develop.svn.wordpress.org/trunk@25966 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 11:10:28 +00:00
Sergey Biryukov 5674a54940 Fix a copy/paste error in get_next_post_link() description and $format argument. props jim912, ounziw. fixes #25743.
git-svn-id: https://develop.svn.wordpress.org/trunk@25965 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 11:05:26 +00:00
Sergey Biryukov 267b476885 Fix a copy/paste error in wp_update_theme() description. props Caspie. fixes #25742.
git-svn-id: https://develop.svn.wordpress.org/trunk@25964 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 10:55:50 +00:00
Drew Jaynes e496679014 Clarify that `wpmu_update_blog_options` fires after ''site'' options are updated.
See #25725.


git-svn-id: https://develop.svn.wordpress.org/trunk@25963 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-28 00:16:54 +00:00
Drew Jaynes d8f9cc6fff Mark `subdirectory_reserved_names` filter as duplicate in wp-admin/network/site-new.php.
Props ninio.
Fixes #25729.


git-svn-id: https://develop.svn.wordpress.org/trunk@25962 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 23:36:46 +00:00
Drew Jaynes 3a26e383ae Inline documentation for hooks in wp-admin/includes/theme.php.
Props l10n for the initial patch.
Fixes #25732.


git-svn-id: https://develop.svn.wordpress.org/trunk@25961 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 22:45:32 +00:00
Andrew Nacin 06635ed4cd Add a .jshintrc file and associated jshint grunt task.
This .jshintrc is adopted from the jQuery project, with some basic modifications (such as single quotes instead of double quotes). This pretty closely follows our current JS standards and rather closely resembles our PHP standards, especially the love of whitespace. The major changes are enforcing === and always using braces for if statements.

props kadamwhite, gnarf37, with mattwiebe and carldanley.
see #25187.


git-svn-id: https://develop.svn.wordpress.org/trunk@25960 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 21:53:11 +00:00
Andrew Nacin add8bc4e57 Add a $taxonomy argument to each of the adjacent post functions.
Each took an array of category (IDs) when to search. Those can now be term IDs and each function now has $taxonomy = 'category' as an optional argument.

Functions affected: get_previous_post(), get_next_post(), get_adjacent_post(), get_adjacent_post_rel_link(), adjacent_posts_rel_link(), next_post_rel_link(), prev_post_rel_link(), get_boundary_post(), get_previous_post_link(), previous_post_link(), get_next_post_link(), next_post_link(), get_adjacent_post_link(), adjacent_post_link().

props ethitter.
finally fixes #17807.


git-svn-id: https://develop.svn.wordpress.org/trunk@25959 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 21:39:51 +00:00
Andrew Nacin 1694272bff When an HTTPS request to api.wordpress.org fails, try an insecure HTTP request and issue a warning.
Certain versions of cURL appear to claim OpenSSL support but fail to work. We need to not trap users on older versions while we work this out, and instead fall back to an insecure request.

see #25716 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@25956 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 21:08:25 +00:00
Andrew Nacin 47c58004fe Query stopwords: Only eliminate single A-Z letters as search terms.
Stop trying to match any single letters that are not East Asian characters, as this requires PCRE with UTF-8 support; and because it doesn't actually work.

fixes #25709.


git-svn-id: https://develop.svn.wordpress.org/trunk@25954 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 20:50:31 +00:00
Helen Hou-Sandi 61b82f7eb3 Consolidate logic for not showing a taxonomy meta box. props ocean90. fixes #21543.
git-svn-id: https://develop.svn.wordpress.org/trunk@25953 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 20:35:49 +00:00
Drew Jaynes 4b1e151b04 Inline documentation for hooks in wp-admin/network/site-settings.php.
Props admiralthrawn.
Fixes #25725.


git-svn-id: https://develop.svn.wordpress.org/trunk@25952 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 20:04:16 +00:00
Drew Jaynes eaedc9b427 Inline documentation for hooks in wp-admin/update.php.
Props ninio, kpdesign.
Fixes #25723.


git-svn-id: https://develop.svn.wordpress.org/trunk@25951 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 18:36:37 +00:00
Drew Jaynes 1c625a49ac Inline documentation for hooks in wp-includes/functions.wp-styles.php.
Props admiralthrawn.
Fixes #25722.


git-svn-id: https://develop.svn.wordpress.org/trunk@25950 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 17:58:32 +00:00
Drew Jaynes 1c127e99bd Inline documentation for hooks in wp-includes/functions.wp-scripts.php.
Props ninio for the initial patch.
Fixes #25720.


git-svn-id: https://develop.svn.wordpress.org/trunk@25949 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 17:50:38 +00:00
Helen Hou-Sandi b2e15261ba Allow passing `false` for the `meta_box_cb` arg in `register_taxonomy()` to turn off the meta box display entirely. fixes #21543.
git-svn-id: https://develop.svn.wordpress.org/trunk@25948 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 16:28:19 +00:00
Andrew Nacin 6af7557201 Update readme in trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25947 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 15:34:59 +00:00
Drew Jaynes 5f3883cc8f Revert another instance where a `WP` property was assigned to a one-time variable for inline docs purposes.
Referencing a non-existent variable only in the docs here would have been the better choice.

See #25495.


git-svn-id: https://develop.svn.wordpress.org/trunk@25946 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 07:58:24 +00:00
Drew Jaynes 0969689efb Fix error introduced in [25940] where `$public_query_vars` should have only been used as a non-existent inline docs variable in the `query_vars` filter.
Restores `$this->public_query_vars` to the `query_vars` filter in wp-includes/class-wp.php.

Props mauryaratan.
Fixes #25495. See #25719.


git-svn-id: https://develop.svn.wordpress.org/trunk@25945 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 07:48:34 +00:00
Andrew Ozz 0bb0c068ef Bump the TinyMCE version for 3.8, see #25700.
git-svn-id: https://develop.svn.wordpress.org/trunk@25944 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 21:44:39 +00:00
Drew Jaynes d26d83a36d Inline documentation for hooks in wp-admin/async-upload.php.
Props rzen for the initial patch.
Fixes #25517.


git-svn-id: https://develop.svn.wordpress.org/trunk@25942 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 21:40:13 +00:00
Drew Jaynes 3c1036d653 Inline documentation for hooks in wp-includes/admin-bar.php.
Props swissspidy.
Fixes #25508.


git-svn-id: https://develop.svn.wordpress.org/trunk@25941 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 21:18:00 +00:00
Drew Jaynes 421d906a59 Inline documentation for hooks in wp-includes/class-wp.php.
Props dougwollison.
Fixes #25495.


git-svn-id: https://develop.svn.wordpress.org/trunk@25940 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 21:02:06 +00:00
Drew Jaynes 4d9d985a64 Inline documentation for hooks in wp-admin/network/site-users.php.
Props sboisvert for the initial patch. Props kpdesign.
Fixes #25497.


git-svn-id: https://develop.svn.wordpress.org/trunk@25939 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 20:32:14 +00:00
Drew Jaynes acb441a519 Inline documentation for hooks in wp-admin/includes/schema.php.
Props johnafish, kpdesign.
Fixes #25498.


git-svn-id: https://develop.svn.wordpress.org/trunk@25938 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 20:28:34 +00:00
Drew Jaynes 25becc93f9 Inline documentation for hooks in wp-admin/tool.php.
Props dougwollison for the initial patch.
Fixes #25496.


git-svn-id: https://develop.svn.wordpress.org/trunk@25937 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 19:22:08 +00:00
Drew Jaynes eef2e83b13 Inline documentation for hooks in wp-admin/includes/nav-menu.php.
Props Faison.
Fixes #25474.


git-svn-id: https://develop.svn.wordpress.org/trunk@25935 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 17:47:33 +00:00
Drew Jaynes 3f8c645247 Inline documentation for hooks in wp-includes/bookmark.php.
Props ShinichiN, kpdesign.
Fixes #25468.


git-svn-id: https://develop.svn.wordpress.org/trunk@25934 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 16:52:48 +00:00
Andrew Nacin 90b55d0279 Fix the exclude_tree argument in get_terms(), which fixes the exclude argument in wp_list_categories().
This was a 3.7 regression caused by [25162].

props dd32.
see #25710 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@25933 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 15:03:10 +00:00
Andrew Nacin 287e4db6f6 In search stopwords filtering, suppress possible PHP warnings when PCRE lacks UTF-8 support.
see #25709.


git-svn-id: https://develop.svn.wordpress.org/trunk@25932 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 05:58:37 +00:00
Andrew Nacin eba5ddbcfa Have get_current_user_id() return 0 when pluggable.php is not yet included (which brings the ability to set or get the current user).
fixes #25690 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@25929 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 03:19:41 +00:00
Andrew Nacin 350c015f94 In update_option(), call the update_option hook before the DB update.
Reverses a regression from [25664].

props calin.
fixes #25705 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@25925 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 02:56:24 +00:00
Andrew Nacin 559dc21202 3.7 regression from [25119]: Have in_category() return false when the first argument is empty.
Adds unit tests.

props ericlewis.
fixes #25706 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@25923 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 02:53:30 +00:00
Andrew Nacin 99a4f77ea7 3.7 regression: Fix the width of captioned images inserted into the visual editor.
Pulls some arithmetic outside of some string concatenation to avoid a nasty uglify.js regression: https://github.com/mishoo/UglifyJS2/pull/330.

props LucP.
fixes #25700 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@25921 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 02:50:02 +00:00
Nikolay Bachiyski 04dd14f3b5 Extract: rename method `extract_entries` to `extract_from_code`
The other extract methods are named `extract_from_<something>`, this was
te only one, which wasn't.

Also, it was returning an instance of `Translations`,
not an array of entries, which the name suggested.


git-svn-id: https://develop.svn.wordpress.org/trunk@25920 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 00:54:27 +00:00
Nikolay Bachiyski 54e6261a34 Extract: `_` and `_c` aren't among the common gettext function names
Let's just remove them from the default rules


git-svn-id: https://develop.svn.wordpress.org/trunk@25919 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 00:46:34 +00:00
Nikolay Bachiyski 97a7dfc936 Extract: add default rules
Two purposes:

 * Helps people, reading the code to have a better idea of the structure of the array
 * Reciprocity with `$comment_prefix`, which has a default value

See #25691


git-svn-id: https://develop.svn.wordpress.org/trunk@25918 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 00:45:16 +00:00
Nikolay Bachiyski 38f7bf86c6 Extract: add a phpdoc to clarify the class responsibility
First step towards making it do only one thing and cleaning it up


git-svn-id: https://develop.svn.wordpress.org/trunk@25917 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-26 00:41:34 +00:00
Andrew Nacin 9a2bf56fc3 Avoid a notice for an undefined $checksums variable when updating from pre-3.7 to post-3.7.
props GaryJ.
fixes #25689 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@25915 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-25 20:14:23 +00:00
Andrew Nacin 9e70ced313 POT update.
git-svn-id: https://develop.svn.wordpress.org/trunk@25911 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 20:37:53 +00:00
Andrew Nacin 53a3ebddce Translator comments are special, make sure they are parsed properly. see #25256.
git-svn-id: https://develop.svn.wordpress.org/trunk@25908 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 20:28:43 +00:00
Andrew Nacin 04397b30c6 Twenty Thirteen: Restore the original "Not found" string. see #24891, for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25907 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-24 20:19:19 +00:00