Dominik Schilling (ocean90)
27fe045132
Allow to filter the link
attribute via shortcode_atts_gallery
. props iworks. fixes #24979 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25665 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 20:45:55 +00:00
Andrew Nacin
0a13564db8
When queries fail in option functions, bail before setting cache.
...
Standardize variables so things are less confusing.
fixes #25015 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25664 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 20:42:39 +00:00
Scott Taylor
415a348999
When Quick Edit'ing a page, checks if edited page has a new parent and moves the row underneath that one. If the parent doesn't exist on this page then it hides the row altogether.
...
Props solarissmoke, MikeHansenMe.
Fixes #14188 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25663 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 20:37:48 +00:00
Scott Taylor
a27234c898
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25662 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 19:58:50 +00:00
Scott Taylor
faa8c3c9ef
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25661 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 19:51:57 +00:00
Scott Taylor
f3488744ce
Add a default value to WP_UnitTest_Factory_For_Comment::default_generation_definitions['comment_content']
to avoid a tornado of database errors in PHP 5.5/MySQL 5.6, even when WP_DEBUG
is turned off.
...
See #25282 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25660 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 19:46:58 +00:00
Scott Taylor
7918d5cd98
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25659 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 19:41:19 +00:00
Andrew Nacin
64d3d53838
More string cleanups.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25658 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 18:50:45 +00:00
Andrew Nacin
7755927e7d
End sentences in periods. see #24982 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25657 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 17:48:55 +00:00
Andrew Nacin
fc97814a23
This error message should have a period.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25656 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 17:44:09 +00:00
Andrew Nacin
49e7cf1a30
Rollback is not a verb.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25655 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 17:43:15 +00:00
Andrew Nacin
456b8837f2
Use sentence case.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25654 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 17:39:26 +00:00
Sergey Biryukov
7e18d18db5
Remove inaccurate @return value from remove_role(). props tivnet. fixes #25450 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25653 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-01 02:52:30 +00:00
Andrew Nacin
85c8f3c68f
Send back core translation information to the API. Update wp_get_installed_translations() to work with core translations. see #18200 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25652 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-30 19:46:15 +00:00
Dion Hulse
6d29f14560
Automatic Updates: Remove some debug from [25649] See #22704
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25651 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-30 00:29:19 +00:00
Dion Hulse
3fa23828e3
Automatic Updates: Disable Automatic updates for Mercurial(HG) and Bazaar(bzr) version control systems in addition to Git and SVN. Props jamescollins. See #22704
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25650 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-30 00:24:06 +00:00
Dion Hulse
05a01e5964
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
git-svn-id: https://develop.svn.wordpress.org/trunk@25649 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-30 00:20:35 +00:00
Dion Hulse
f1928e42bf
MD5 file verification: Prevent md5_file() warnings when files don't exist, additionally, don't verify wp-content files as they can be updated separately, as well as WP_CONTENT_DIR being set elsewhere. See #22704 See #18201
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25648 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-29 23:07:59 +00:00
Dion Hulse
fefaa807e9
Automatic Updates: Skip doing the sanity checking MD5 before deciding if we should use a partial build or not, This change means we always use a partial build for automatic updates. See #22704
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25647 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-29 22:59:46 +00:00
Sergey Biryukov
85875364e4
Correct phpdoc for translate_smiley(). props toscho. fixes #25440 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25646 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-29 10:07:27 +00:00
Drew Jaynes
651be4d157
Inline documentation for hooks in wp-signup.php.
...
Props kpdesign, miyauchi.
Fixes #25381 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25645 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 23:41:07 +00:00
Drew Jaynes
6ff14b2408
Improve inline documentation for the Walker
class.
...
Includes previously undocumented parameters.
See #23406 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25644 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 21:28:03 +00:00
Drew Jaynes
78d93bfac3
Improve inline documentation for Walker_Nav_Menu
, Walker_Nav_Menu_Edit
, Walker_Nav_Menu_Checklist
.
...
Includes previously undocumented parameters.
See #23406 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25643 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 21:01:54 +00:00
Drew Jaynes
346d71fdbd
Inline documentation for Walker_Category_Checklist
.
...
See #23406 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25642 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 18:07:02 +00:00
Drew Jaynes
67342ade09
Inline documentation improvements for Walker_Category
and Walker_CategoryDropdown
.
...
Also covers previously undocumented parameters.
See #23406 , #19249 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25641 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 18:01:26 +00:00
Andrew Nacin
50a1bb0eb2
Mark _search_terms_tidy() as deprecated in 3.7. see #7394 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25640 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 08:24:28 +00:00
Andrew Nacin
44ee54e153
3.7-beta1-25639
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25639 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 07:30:45 +00:00
Andrew Nacin
35a24943ea
3.7-beta1
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25638 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 06:47:49 +00:00
Andrew Nacin
89febfe766
Expand the zxcvbn password meter blacklist, based on user input.
...
props iandunn.
see #25174 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25637 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 06:46:29 +00:00
Andrew Nacin
e212691d73
Fix non-square rotations when using the Imagick image editor.
...
props DH-Shredder.
fixes #22663 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25636 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 06:36:17 +00:00
Andrew Nacin
c3a6047584
Fix strict notice. see #22704 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25635 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 06:32:14 +00:00
Andrew Nacin
7149ae3b9f
Filters for locale in wp_update_plugins() and wp_update_themes(). see #18200 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25634 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 04:17:54 +00:00
Andrew Nacin
ed31cbfab1
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25633 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-27 23:20:08 +00:00
Andrew Nacin
cff3bb14e6
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25632 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-27 17:33:36 +00:00
Andrew Nacin
4b8896d171
Remove the new user_new_form hook from the network admin, pending further review. see #18709 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25631 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-26 16:37:06 +00:00
Drew Jaynes
8a3df7d4b4
Inline documentation for hooks in wp-admin/includes/class-wp-plugin-install-list-table.php.
...
Props naomicbush.
Fixes #25357 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25630 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-26 02:47:44 +00:00
Helen Hou-Sandi
57241c4824
Add a user_new_form
hook, with context. props johnjamesjacoby, strangerstudios, jeremyfelt, DrewAPicture. fixes #18709 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25629 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-26 01:47:42 +00:00
Drew Jaynes
f7a6959048
Improve inline documentation for wp_insert_post()
by adding a hash notation.
...
See #25412 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25628 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 17:33:36 +00:00
Lance Willett
dc53919fe3
Twenty Ten: update code comments to reflect WP inline docs standards. Props DrewAPicture, closes #25256 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25627 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 17:03:34 +00:00
Lance Willett
4a8bf29102
Twenty Twelve: simplify header image check, props obenland. Closes #25400 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25626 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:58:43 +00:00
Lance Willett
bd150bd8d6
Twenty Eleven: update code comments to reflect WP inline docs standards. Props DrewAPicture, see #25256 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25625 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:49:36 +00:00
Lance Willett
11a9f047cc
Twenty Fourteen: make the content sidebar optional and alter the layout to full-width if the sidebar is not active, but without adding wider featured image (for now). Props iamtakashi, closes #25031 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25624 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:35:26 +00:00
Lance Willett
fcd1b02a1d
Twenty Fourteen: change the background color a bit more on hover for main navigation submenus. See #25220 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25623 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:28:00 +00:00
Andrew Nacin
1df5d5fa6b
Only show top-level items when adding pages to a User's First Nav Menu. (This is also the title of Dave's first children's book.)
...
props lessbloat.
fixes #25122 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25622 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:22:29 +00:00
Andrew Nacin
57a5269b13
Live network counts of users and sites for small networks.
...
props adamsilverstein, jeremyfelt.
fixes #22917 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25621 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:20:21 +00:00
Helen Hou-Sandi
99fa347879
Better error messaging on install.php. props DrewAPicture, ocean90. fixes #24982 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25620 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:13:44 +00:00
Helen Hou-Sandi
64b021bbce
Simplify the login page viewport meta for mobile devices, so it's less restrictive on the user. Allows for developers to override if necessary via the login_head
action. props azaozz. fixes #24777 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25619 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 15:19:11 +00:00
Sergey Biryukov
d16e2bc2b1
'sanitize_user' is a filter, not an action. fixes #25411 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25618 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 03:13:19 +00:00
Andrew Nacin
beca878aa6
Clean up the path calculations in wp::parse_request().
...
props evansolomon for initial cleanup.
fixes #22209 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25617 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 00:46:39 +00:00
Andrew Nacin
8d72ad52ff
Don't rely on include_path to include files.
...
Always use dirname() or, once available, ABSPATH.
props ketwaroo, hakre.
fixes #17092 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25616 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 00:17:40 +00:00