Commit Graph

232 Commits

Author SHA1 Message Date
Dion Hulse
a044fcf1ae WP_HTTP: Fix a variable typo in [25153] See #23463
git-svn-id: https://develop.svn.wordpress.org/trunk@25155 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 07:29:09 +00:00
Dion Hulse
de7d430280 WP_HTTP: Update the documentation regarding HTTP/1.1 support. Props leewillis77 Fixes #25074
git-svn-id: https://develop.svn.wordpress.org/trunk@25154 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 06:54:22 +00:00
Dion Hulse
2785826961 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 


git-svn-id: https://develop.svn.wordpress.org/trunk@25153 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 06:52:09 +00:00
Sergey Biryukov
1d00e1d88a Make sure $args is an array before treating it as such. fixes #25151 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25151 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 05:27:03 +00:00
Dion Hulse
7f0891c1a1 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
git-svn-id: https://develop.svn.wordpress.org/trunk@25150 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 04:58:51 +00:00
Dion Hulse
4f410dc9f3 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
git-svn-id: https://develop.svn.wordpress.org/trunk@25149 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 04:53:41 +00:00
Andrew Nacin
022e5c2227 The main site of a secondary network should not use the original wp-content/uploads upload path.
props jeremyfelt.
fixes #25030.


git-svn-id: https://develop.svn.wordpress.org/trunk@25148 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 03:35:44 +00:00
Andrew Nacin
dc0d29b59b 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25147 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 03:34:50 +00:00
Dion Hulse
d9bd6e7039 Use a better variable name in antispambot() introduced with [25055]. Props duck_ Fixes #16754
git-svn-id: https://develop.svn.wordpress.org/trunk@25146 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 01:46:57 +00:00
Dominik Schilling (ocean90)
c1827f73cd Replace duplicated lines in [25143] with an assignment. see #18714.
git-svn-id: https://develop.svn.wordpress.org/trunk@25144 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 21:24:59 +00:00
Andrew Nacin
d37203df8e Add a terms_updated_messages filter to edit-tags.php, along with taxonomy-specific strings.
props johnbillion.
fixes #18714.


git-svn-id: https://develop.svn.wordpress.org/trunk@25143 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 21:12:40 +00:00
Andrew Nacin
713c6cfb88 Pass $taxonomies to the get_terms_orderby filter.
props johnbillion.
fixes #18754.


git-svn-id: https://develop.svn.wordpress.org/trunk@25142 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 21:05:03 +00:00
Helen Hou-Sandi
6ce20d366c Make shift-click checkbox range selection work in both directions. props c3mdigital, SergeyBiryukov. fixes #23427.
git-svn-id: https://develop.svn.wordpress.org/trunk@25141 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 20:49:33 +00:00
Andrew Nacin
65465e9c88 Don't create an edit link to a non-UI post type in the media list table.
props johnbillion.
fixes #20453.


git-svn-id: https://develop.svn.wordpress.org/trunk@25140 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 20:48:40 +00:00
Andrew Nacin
c637de7316 WP_Date_Query.
props Viper007Bond.
see #18694.


git-svn-id: https://develop.svn.wordpress.org/trunk@25139 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 16:38:32 +00:00
Andrew Nacin
86f5f6ac78 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25138 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 15:19:54 +00:00
Jon Cave
8d72fd31d4 Initialize kses filters if _wp_unfiltered_html_comment nonce isn't set.
See #24752.


git-svn-id: https://develop.svn.wordpress.org/trunk@25137 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 13:56:17 +00:00
Andrew Nacin
2b280c5761 Ensure a user exists in get_comment_author().
props azaozz.
see #24084.


git-svn-id: https://develop.svn.wordpress.org/trunk@25136 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 13:16:34 +00:00
Andrew Nacin
328117ffbf Only show 'Preview' on the custom header screen if there is something to show.
props nickmomrik.
fixes #14531.


git-svn-id: https://develop.svn.wordpress.org/trunk@25135 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 12:27:00 +00:00
Andrew Nacin
eb1485529f Remove unnecessary loops in default-filters.php.
props Jayjdk.
fixes #25011.


git-svn-id: https://develop.svn.wordpress.org/trunk@25134 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 11:58:03 +00:00
Dominik Schilling (ocean90)
ad422b8366 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@25133 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 22:34:56 +00:00
Andrew Ozz
afe41b9134 TinyMCE: fix editor focus issues after ontouchstart event on the parent document in iOS Safari. Fixes #25131 for 3.7.
git-svn-id: https://develop.svn.wordpress.org/trunk@25132 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 21:23:58 +00:00
Andrew Nacin
7694a64c06 Press This: Add admin_head-like hooks that are specific to the page.
props sillybean.
fixes #18843.


git-svn-id: https://develop.svn.wordpress.org/trunk@25131 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 20:59:44 +00:00
Dominik Schilling (ocean90)
d0365d1383 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@25130 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 20:23:34 +00:00
Andrew Nacin
fdae6fb0a5 Twenty Thirteen: Ensure custom headers are set up after the localization is initialized.
props pavelevap.
fixes #24943.


git-svn-id: https://develop.svn.wordpress.org/trunk@25129 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 19:28:50 +00:00
Sergey Biryukov
6d050b262f Ignore case differences when checking file extension in wp_audio_shortcode() and wp_video_shortcode(). props nofearinc, bhengh. fixes #25140.
git-svn-id: https://develop.svn.wordpress.org/trunk@25128 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 19:20:36 +00:00
Sergey Biryukov
35e43e187d Avoid a PHP notice in wpmu_create_blog() if $meta is not passed. props duck_, jeremyfelt, SergeyBiryukov. fixes #20793.
git-svn-id: https://develop.svn.wordpress.org/trunk@25127 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 18:56:32 +00:00
Andrew Nacin
7bc3ebf033 Return 1 from get_comment_pages_count() when pagination is disabled.
props obenland.
fixes #17778.


git-svn-id: https://develop.svn.wordpress.org/trunk@25126 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 18:51:53 +00:00
Andrew Nacin
d41c30be7a Network Admin: Hide the bulk actions checkbox for the main site.
props ericlewis.
fixes #24463.


git-svn-id: https://develop.svn.wordpress.org/trunk@25125 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 18:45:30 +00:00
Andrew Nacin
42dee6ccf0 Add post-type-$post_type and taxonomy-$taxonomy admin body classes.
props johnbillion.
fixes #19247.


git-svn-id: https://develop.svn.wordpress.org/trunk@25124 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 18:17:23 +00:00
Sergey Biryukov
a679d43131 Add 'taxonomy_parent_dropdown_args' filter for the parent dropdown on taxonomy term editing screens. props leewillis77. fixes #18166.
git-svn-id: https://develop.svn.wordpress.org/trunk@25123 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 17:30:46 +00:00
Ryan Boren
71793b661c Don't show the "Get Shortlink" button for pages with a ?page_id=x permalink.
Props sillybean
fixes #14760


git-svn-id: https://develop.svn.wordpress.org/trunk@25122 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 16:05:46 +00:00
Sergey Biryukov
5615aef0bf Avoid an undefined index notice when submitting a comment with JavaScript disabled. fixes #24752.
git-svn-id: https://develop.svn.wordpress.org/trunk@25121 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 15:39:12 +00:00
Andrew Nacin
512c12ba55 Network Admin toolbar menu: Add Plugins and Themes, remove Visit Network.
props Ipstenu, SergeyBiryukov.
fixes #21674.



git-svn-id: https://develop.svn.wordpress.org/trunk@25120 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 15:21:42 +00:00
Sergey Biryukov
65d047cde2 Make in_category() an alias of has_category(). fixes #16718.
git-svn-id: https://develop.svn.wordpress.org/trunk@25119 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-24 22:53:39 +00:00
Sergey Biryukov
6edecc378d Avoid displaying multiple instances of the same feature pointers on a single screen. props nacin. fixes #25022 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25117 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-24 22:33:51 +00:00
Sergey Biryukov
bcd97dac0a Remove 'admin' as a fallback for username in install. props tivnet, DrewAPicture. fixes #24078.
git-svn-id: https://develop.svn.wordpress.org/trunk@25115 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-24 13:56:47 +00:00
Sergey Biryukov
d2a1a80683 Avoid a fatal error in WP_Http::request() if $response is a WP_Error instance. props dllh, nacin. fixes #24987.
git-svn-id: https://develop.svn.wordpress.org/trunk@25114 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-24 03:10:16 +00:00
Sergey Biryukov
086c5a8ab8 Deprecate $network_id argument in get_blog_count(). props jeremyfelt. fixes #25129.
git-svn-id: https://develop.svn.wordpress.org/trunk@25113 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-24 02:41:11 +00:00
Andrew Nacin
4839f01305 Have wp-signup.php match the proper default for the 'registration' network option.
props wpmuguru.
fixes #18186.


git-svn-id: https://develop.svn.wordpress.org/trunk@25112 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 22:59:09 +00:00
Andrew Nacin
3f130cd103 Correct phpdoc for WP_Query::$post. props lgedeon, fixes #25130.
git-svn-id: https://develop.svn.wordpress.org/trunk@25110 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 22:01:59 +00:00
Andrew Ozz
a380ed51f7 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@25109 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 21:42:23 +00:00
Scott Taylor
46c24c3cf2 Use reset() to grab the first taxonomy in an array, not by numerical index. Cleans up whitespace. Props webord, nbachiyski. Fixes #23506.
git-svn-id: https://develop.svn.wordpress.org/trunk@25108 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 21:28:34 +00:00
Andrew Ozz
961bbcb780 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.
git-svn-id: https://develop.svn.wordpress.org/trunk@25107 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 21:26:58 +00:00
Scott Taylor
39171d7527 Check term_id against the $term object, not the non-existent var $args. Props rboren. Fixes #12729.
git-svn-id: https://develop.svn.wordpress.org/trunk@25106 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 21:04:22 +00:00
Sergey Biryukov
ad94ffb64d Use correct variable. see #22922.
git-svn-id: https://develop.svn.wordpress.org/trunk@25105 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 20:56:50 +00:00
Andrew Nacin
1f24e6d76b 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@25104 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 19:35:04 +00:00
Andrew Nacin
9211de7232 Add network name to <title> tags in the network admin and user admin (global dashboard).
props johnbillion.
fixes #19753.



git-svn-id: https://develop.svn.wordpress.org/trunk@25103 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 18:57:33 +00:00
Helen Hou-Sandi
08cf55b76a Actually display customizer section descriptions in a meaningful way. props obenland, helen. fixes #24392.
git-svn-id: https://develop.svn.wordpress.org/trunk@25102 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 16:17:48 +00:00
Sergey Biryukov
d6ea70e296 Add description for _wp_timezone_choice_usort_callback(). props neoxx. fixes #25125.
git-svn-id: https://develop.svn.wordpress.org/trunk@25101 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 13:56:35 +00:00
Sergey Biryukov
b449f5bbb8 Correct phpdoc for wp-admin/menu.php. props neoxx. fixes #25124.
git-svn-id: https://develop.svn.wordpress.org/trunk@25100 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 13:52:12 +00:00
Sergey Biryukov
2a3c60f37d Remove redundant context for Child Themes link. fixes #25079.
git-svn-id: https://develop.svn.wordpress.org/trunk@25099 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 00:30:50 +00:00
Sergey Biryukov
107d2b8716 Remove unused variable. props jeremyfelt. fixes #25121.
git-svn-id: https://develop.svn.wordpress.org/trunk@25098 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 00:18:48 +00:00
Sergey Biryukov
2bbbc466eb Fix typo in phpdoc. props jamescollins. fixes #25092.
git-svn-id: https://develop.svn.wordpress.org/trunk@25097 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 23:47:56 +00:00
Andrew Nacin
f57bd31f2d Fix various typos in inline documentation. props nofearinc, fixes #25119.
git-svn-id: https://develop.svn.wordpress.org/trunk@25094 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 22:00:41 +00:00
Andrew Nacin
d5c7150913 Format WordPress in <title> tags produced by wp_title().
props evansolomon.
fixes #19211.



git-svn-id: https://develop.svn.wordpress.org/trunk@25093 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 21:58:30 +00:00
Andrew Nacin
e99047ff95 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@25092 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 20:54:09 +00:00
Andrew Nacin
0c24a916d4 In the admin, do not use auto-generated Gravatar images for comment authors.
This makes it easier to recognize Gravatars (or lack thereof) when moderating comments.

props solarissmoke.
fixes #7054.



git-svn-id: https://develop.svn.wordpress.org/trunk@25091 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 20:07:51 +00:00
Lance Willett
463fde4ec0 Twenty Fourteen: widgetize the Post Format front page so other widgets can be used there, and the special Post Format content can be used in other widget areas. Props obenland, see #25028.
git-svn-id: https://develop.svn.wordpress.org/trunk@25090 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 18:05:56 +00:00
Lance Willett
dbe8b7300e Twenty Fourteen: remove searchform.php and use core markup. Props obenland, closes #25095.
git-svn-id: https://develop.svn.wordpress.org/trunk@25089 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 17:11:32 +00:00
Lance Willett
345fc78f4d Twenty Fourteen: Align post format handling with Twenty Thirteen. Props Frank Klein and obenland, see #24877.
git-svn-id: https://develop.svn.wordpress.org/trunk@25088 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 17:02:34 +00:00
Lance Willett
29b85dcc6b Twenty Fourteen: Use HTML5 comment markup, props obenland. Fixes #25045.
git-svn-id: https://develop.svn.wordpress.org/trunk@25087 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 17:00:36 +00:00
Andrew Nacin
562b65d822 PHPDoc for WP_Post properties. fixes #25092.
git-svn-id: https://develop.svn.wordpress.org/trunk@25086 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 15:57:31 +00:00
Ryan Boren
c8889d984f Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@25085 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 15:55:07 +00:00
Helen Hou-Sandi
5ea9e40fed Add more descriptive classes to submit meta box sections. props nofearinc. fixes #22333.
git-svn-id: https://develop.svn.wordpress.org/trunk@25083 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 15:23:41 +00:00
Dion Hulse
2ceaba8b30 Theme Installer/Updater: Handle custom Theme directories when updating themes, and installing new themes. Fixes #22501
git-svn-id: https://develop.svn.wordpress.org/trunk@25082 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 04:49:06 +00:00
Dion Hulse
ddad24c82c Sanitize the plugin path in _get_plugin_data_markup_translate() to a WP_PLUGIN_DIR-relative path. The function is designed in mind for receiving relative paths, but may be used with a absolute path.
This change makes the function path-agnostic, and can accept either relative or absolute (converting to relative internally). Fixes #20813


git-svn-id: https://develop.svn.wordpress.org/trunk@25081 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 04:02:13 +00:00
Sergey Biryukov
8af525762c Declare args as a local variable. props greuben. fixes #25078.
git-svn-id: https://develop.svn.wordpress.org/trunk@25080 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 02:11:00 +00:00
Sergey Biryukov
a38af28d35 Use correct order of arguments when calling edit_term_link() from edit_tag_link(). Correct $tag parameter description. props pbiron. fixes #25116.
git-svn-id: https://develop.svn.wordpress.org/trunk@25079 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 00:48:09 +00:00
Andrew Ozz
27e5aea61e Heartbeat: better queue functionality: improve enqueue() and isQueued(), introduce dequeue() and getQueuedItem(). Props evansolomon, fixes #25047.
git-svn-id: https://develop.svn.wordpress.org/trunk@25078 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 22:54:09 +00:00
Sergey Biryukov
0fd35a7e7d Update phpdoc for get_permalink(). props tivnet. fixes #25115.
git-svn-id: https://develop.svn.wordpress.org/trunk@25077 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 22:12:01 +00:00
Scott Taylor
20fa8b87b4 Improve inline docs for function params that can be serialized when non-scalar. Fixes #18488.
git-svn-id: https://develop.svn.wordpress.org/trunk@25076 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 21:10:23 +00:00
Jon Cave
790f9feb68 Pass false returned for timed out transients through transient_$transient filter.
This brings the same behaviour as external object caches to the default database
backend.

Props johnbillion. Fixes #24685.


git-svn-id: https://develop.svn.wordpress.org/trunk@25075 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 19:13:35 +00:00
Andrew Nacin
d71f11bdd7 Remove sourceMappingURL from jquery.min.js.
props Jayjdk.
fixes #24994.



git-svn-id: https://develop.svn.wordpress.org/trunk@25072 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 15:40:35 +00:00
Dion Hulse
ead4efa78a Add a note that the FTP Password will not be stored on the server to the FTP credentials page. Fixes #16492
git-svn-id: https://develop.svn.wordpress.org/trunk@25071 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 07:06:12 +00:00
Dion Hulse
b4f0fbd985 Add a filter on the Plugin and Theme installers table listing API args, this allows for plugins to hook in and add custom args to plugins_api() and themes_api() for the Plugin/Theme listing tabls. Fixes #18169
git-svn-id: https://develop.svn.wordpress.org/trunk@25070 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 06:51:51 +00:00
Lance Willett
16415b2f94 Twenty Fourteen: load Genericons correctly, and add comments to other CSS enqueue calls. Props obenland, fixes #25085.
git-svn-id: https://develop.svn.wordpress.org/trunk@25068 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 18:09:51 +00:00
Lance Willett
b2150ba33b Twenty Fourteen: accessibility changes to add focus styles to match the hover style on tag links. Props sabreuse, see #25054.
git-svn-id: https://develop.svn.wordpress.org/trunk@25067 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 17:59:00 +00:00
Lance Willett
b3b1b66654 Twenty Fourteen: accessibility changes to fix the color contrast ratio in link text and a few other places (notably hovers and focus outlines). Props sabreuse, see #25054.
git-svn-id: https://develop.svn.wordpress.org/trunk@25066 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 17:58:07 +00:00
Lance Willett
cb64ad39d9 Twenty Fourteen: change to just one footer widget area and use Masonry JS to display the widgets in columns. Props Frank Klein, closes #24874.
git-svn-id: https://develop.svn.wordpress.org/trunk@25065 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 17:52:22 +00:00
Lance Willett
d2d79e5588 Twenty Fourteen: Focus search box on search menu click, props kovshenin for original patch. Fixes #24895.
git-svn-id: https://develop.svn.wordpress.org/trunk@25064 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 17:45:18 +00:00
Lance Willett
97049b9c3b Twenty Fourteen: ensure toolbar doesn't have a gap at the top when you start scrolling, including back compat for 3.6. Props MikeHansenMe and SergeyBiryukov, fixes #24914.
git-svn-id: https://develop.svn.wordpress.org/trunk@25063 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 17:41:16 +00:00
Lance Willett
d45e621a04 Twenty Fourteen: remove masthead-fixed class after window returns to top. Props cainm, fixes #25026.
git-svn-id: https://develop.svn.wordpress.org/trunk@25062 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 17:36:28 +00:00
Lance Willett
ca1926490c Twenty Fourteen: don't allow line-wrapping in the top-level navigation menu items. Props georgestephanis, fixes #24917.
git-svn-id: https://develop.svn.wordpress.org/trunk@25061 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 17:32:15 +00:00
Lance Willett
d5c62ed77d Twenty Fourteen: change IDs to classes in markup and CSS selectors. Props obenland, see #24858.
git-svn-id: https://develop.svn.wordpress.org/trunk@25060 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 17:30:18 +00:00
Andrew Nacin
8984b71035 Allow for plugin translations to be loaded from WP_LANG_DIR/plugins/$domain-$locale.mo.
props dimadin.
see #18200.



git-svn-id: https://develop.svn.wordpress.org/trunk@25059 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 12:33:07 +00:00
Dion Hulse
4049977b50 Correct a typo in a docblock in [25055]. Props buffler. See #16754
git-svn-id: https://develop.svn.wordpress.org/trunk@25058 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 07:09:35 +00:00
Dion Hulse
318a1c9c52 WP_Filesystem: Use the FTP_* path override constants during upgrades for prefixed paths, ie. use FTP_BASE for ABSPATH/sub-dir as well as just for ABSPATH/. Props vericgar for initial patch. See #14401
git-svn-id: https://develop.svn.wordpress.org/trunk@25057 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 06:46:37 +00:00
Dion Hulse
e4361d8f96 Check to see if mbstring.func_overload is configured to affect string functions before switching charsets. Props SergeyBiryukov. Fixes #25063
git-svn-id: https://develop.svn.wordpress.org/trunk@25056 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 06:23:48 +00:00
Dion Hulse
114974f156 Remove some PHP4-ness from the antispambot() function, and update it to match some modern coding standards. Props hakre and crrobi01 for initial patches. Fixes #16754
git-svn-id: https://develop.svn.wordpress.org/trunk@25055 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 06:07:50 +00:00
Dion Hulse
3bcbd35fd9 Simplify _deep_replace() by removing it's obscure looping and replacement checking logic, and instead, using the PHP5 $count parameter of str_replace(). Props hakre. Fixes #16903
git-svn-id: https://develop.svn.wordpress.org/trunk@25054 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 05:56:22 +00:00
Dion Hulse
cff05f9997 WP_HTTP: Curl: When using Stream-to-file on servers using mbstring.func_overload ensure that the file is written out correctly. Props DrProtocols. See #25061 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@25051 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-18 08:17:48 +00:00
Dominik Schilling (ocean90)
6262af65df Introduce save_post_{$post_type} hook.
The hook is fired before the general save_post hook and has the same args as save_post.

props bmb, SergeyBiryukov, ocean90, fixes #16176.

git-svn-id: https://develop.svn.wordpress.org/trunk@25050 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 20:20:24 +00:00
Dominik Schilling (ocean90)
b308cdbd87 Flush the cache in Recent Comments widget on edit_comment. props pento, fixes #24779.
git-svn-id: https://develop.svn.wordpress.org/trunk@25049 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 09:29:52 +00:00
Dion Hulse
c6e43f5327 WP_Upgrader: Don't activate maintenance mode in bulk_upgrade() when no Themes or Plugins are specified. This doesn't affect Core, but rather, plugins who use the upgrade routines and do not do precautionary tests. Props jamescollins. Fixes #24496
git-svn-id: https://develop.svn.wordpress.org/trunk@25048 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 05:35:17 +00:00
Dion Hulse
cd9e0814e6 Make use of the recursive option in mkdir() in wp_mkdir_p(). Avoids a bunch of silenced PHP Notices being logged. Fixes #23196
git-svn-id: https://develop.svn.wordpress.org/trunk@25047 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 03:08:50 +00:00
Dion Hulse
b5b118558e WP_HTTP: Cookies: When following redirects, include the request cookies in the redirected requests. Fixes #24987
git-svn-id: https://develop.svn.wordpress.org/trunk@25046 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 01:19:04 +00:00
Andrew Ozz
08eaf4e3dc In wp-login.php check if cookies are enabled before attempting to log the user in with wp_signon(), fixes #24961.
git-svn-id: https://develop.svn.wordpress.org/trunk@25045 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 01:00:25 +00:00
Dion Hulse
fcc9006ef5 WP_HTTP: Cookies: Fill the defaults for the Cookie object based on the current requested URL. Fixes #21182
git-svn-id: https://develop.svn.wordpress.org/trunk@25044 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 00:33:39 +00:00
Jon Cave
5be5a1412e Introduce a notoptions cache for site options.
Props wonderboymusic. Fixes #19008.


git-svn-id: https://develop.svn.wordpress.org/trunk@25043 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 22:41:23 +00:00
Andrew Nacin
7a2f69832e Twenty Eleven: Fix some mobile layout bugs on single post format view. props lancewillett, fixes #25019.
git-svn-id: https://develop.svn.wordpress.org/trunk@25042 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 21:14:40 +00:00
Andrew Nacin
09e8223871 Obey $prefix when $display = false in single_term_title(), single_post_title(), and post_type_archive_title(). props yoavf, fixes #16632.
git-svn-id: https://develop.svn.wordpress.org/trunk@25041 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 20:53:37 +00:00
Jon Cave
97dfd85d30 Search for wp-util.min.js in the correct directory when auto-defining SCRIPT_DEBUG.
See #24976, [25005].


git-svn-id: https://develop.svn.wordpress.org/trunk@25040 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 20:32:59 +00:00
Helen Hou-Sandi
becf161fb8 Make sure quick edited non-alternate list table rows don't become alternate. props mordauk. fixes #24951.
git-svn-id: https://develop.svn.wordpress.org/trunk@25039 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 20:18:31 +00:00
Andrew Nacin
81248f6568 In populate_network(), insert the first site as blog_id 1, overriding any auto-increment DB seed. props wpmuguru, fixes #16568.
git-svn-id: https://develop.svn.wordpress.org/trunk@25038 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 20:07:05 +00:00
Andrew Nacin
9aa5512e94 Add a function to return an empty string, for filters. props wpsmith, trepmal. fixes #20357.
git-svn-id: https://develop.svn.wordpress.org/trunk@25037 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 20:01:06 +00:00
Andrew Nacin
38b4ca010a send_origin_headers() in admin-post.php.
props nickdaugherty, fixes #24600.



git-svn-id: https://develop.svn.wordpress.org/trunk@25036 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 19:58:42 +00:00
Andrew Nacin
ea7196081f Add a maxlength attribute to the post password input, reflecting the current DB field length.\
props RayBernard, DrewAPicture.
see #24792.



git-svn-id: https://develop.svn.wordpress.org/trunk@25035 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 19:55:19 +00:00
Andrew Nacin
a1ff9555a9 Add actions for term editing/creation form tags, for adding enctype attributes. Matches the pattern we've used elsewhere. props JustinSainton, fixes #15261.
git-svn-id: https://develop.svn.wordpress.org/trunk@25034 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 19:53:50 +00:00
Andrew Nacin
a2008aa773 Return esc_url_raw(), not esc_url(), from get_blogaddress_by_domain(). props tlovett1, fixes #25057. #wcpvd
git-svn-id: https://develop.svn.wordpress.org/trunk@25033 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 19:41:59 +00:00
Ryan Boren
5125650b72 Be consistent with the arguments passed to the theme_action_links filter. Stop passing stylesheet from class-wp-ms-themes-list-table.php.
Props georgestephanis
fixes #24478


git-svn-id: https://develop.svn.wordpress.org/trunk@25032 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 15:46:08 +00:00
Helen Hou-Sandi
123b419481 Only set and run internal search for linking selected text if the panel is open. Make sure the focus is in the URL field whenever opening the linking modal to preserve previous behavior. props greuben. fixes #16276.
git-svn-id: https://develop.svn.wordpress.org/trunk@25031 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-15 21:43:29 +00:00
Ryan Boren
17267dd999 wp_get_shortlink() improvements.
* Return shortlinks for pages and public CPTs.
* Return shortlinks even when cruft-free links are not enabled.
* Unit tests

Props sillybean, layotte, cais
fixes #18632
see #14760



git-svn-id: https://develop.svn.wordpress.org/trunk@25030 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-15 20:08:06 +00:00
Helen Hou-Sandi
0de512789e Better align the x icons with tag names. props TobiasBg. fixes #25050.
git-svn-id: https://develop.svn.wordpress.org/trunk@25029 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-15 19:58:04 +00:00
Sergey Biryukov
6c3b030245 Avoid PHP notices in get_sample_permalink() and get_sample_permalink_html(). Remove unused global reference. props ocean90. fixes #25005.
git-svn-id: https://develop.svn.wordpress.org/trunk@25028 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-15 16:24:08 +00:00
Helen Hou-Sandi
2225b6ff1f Make sure the close button in the Customizer still works after a refresh. props lessbloat. fixes #22682.
git-svn-id: https://develop.svn.wordpress.org/trunk@25027 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-15 13:48:05 +00:00
Sergey Biryukov
54f2629d52 Correct sort_column argument description for wp_page_menu(). props jakub.tyrcha, c3mdigital. fixes #16516.
git-svn-id: https://develop.svn.wordpress.org/trunk@25026 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-15 11:58:18 +00:00
Dion Hulse
b971127bac Remove the usage of @$_GET and @$_POST and just check to see if the indicies are set. Fixes #22429
git-svn-id: https://develop.svn.wordpress.org/trunk@25025 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-15 06:05:54 +00:00
Dion Hulse
51c3faba5d WP_Filesystem: Make WP_Filesystem_Base::search_for_folder() a bit more usable on the command-line when the $verbose mode is used, additionally, bail early from the function rather than repeating itself if the CWD is the root directory already.
git-svn-id: https://develop.svn.wordpress.org/trunk@25024 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-15 05:59:36 +00:00
Lance Willett
f330352fa3 Twenty Fourteen: second pass at matching code standards achieved with Twenty Thirteen development. See #24858, props obenland.
git-svn-id: https://develop.svn.wordpress.org/trunk@25023 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-15 00:24:27 +00:00
Andrew Ozz
615a38d183 TinyMCE: always use js/editimage.js in the custom 'editimage' plugin, same way as the default TinyMCE plugins. Fixes #24999.
git-svn-id: https://develop.svn.wordpress.org/trunk@25022 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-14 21:50:43 +00:00
Lance Willett
633e58960d Twenty Fourteen: first pass at matching code standards achieved with Twenty Thirteen development. See #24858, props obenland.
git-svn-id: https://develop.svn.wordpress.org/trunk@25021 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-14 16:38:01 +00:00
Dominik Schilling (ocean90)
bf8e3cab1e Remove unused cat JavaScript file. props carldanley. fixes #24989.
git-svn-id: https://develop.svn.wordpress.org/trunk@25020 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-14 15:43:03 +00:00
Jon Cave
38345135a1 Add javascript files deleted in [25013] to $_old_files. See #23486.
git-svn-id: https://develop.svn.wordpress.org/trunk@25019 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-14 15:18:04 +00:00
Dominik Schilling (ocean90)
9d2282c26a Remove references to unused globals. props jeremyfelt. fixes #24984.
git-svn-id: https://develop.svn.wordpress.org/trunk@25018 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-14 15:00:37 +00:00
Dion Hulse
37c3399a0c WP_HTTP: Allow name => value pairs to be passed in to the 'cookie' parameter, simplifies plugin code when needing to specify basic cookies. Fixes #21999
git-svn-id: https://develop.svn.wordpress.org/trunk@25016 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-08 02:43:36 +00:00
Andrew Nacin
4483b947a4 Remove zero-byte files that were meant to be deleted in [23446]. see #23486.
git-svn-id: https://develop.svn.wordpress.org/trunk@25013 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 17:43:50 +00:00
Peter Westwood
5891d79a14 Restore the for/id attributes in the post password for as they are necessary for accessibility tools. Fixes #18729.
git-svn-id: https://develop.svn.wordpress.org/trunk@25011 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 13:43:17 +00:00
Peter Westwood
2008bdf818 Make is much easier for a theme to style the Post Password form.
Fixes #18729 props philiparthurmoore for the original patches.


git-svn-id: https://develop.svn.wordpress.org/trunk@25010 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 11:49:57 +00:00
Peter Westwood
4d75b0f336 Use a CDATA second for comment authors in RSS2 comment feeds so that HTML in comments doesn't kill the XML validation.
Fixes #17767 props wonderboymusic, dzver.


git-svn-id: https://develop.svn.wordpress.org/trunk@25009 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 11:16:29 +00:00
Andrew Nacin
48678e21b9 SCRIPT_DEBUG is no longer needed when using develop.svn's src/ directory. see #24976.
git-svn-id: https://develop.svn.wordpress.org/trunk@25005 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 07:15:57 +00:00
Andrew Nacin
b43712e0f7 New develop.svn.wordpress.org repository based on the old core.svn repository.
* All WordPress files move to a src/ directory.
 * New task runner (Grunt), configured to copy a built WordPress to build/.
 * svn:ignore and .gitignore for Gruntfile.js, wp-config.php, and node.js.
 * Remove Akismet external from develop.svn. Still exists in core.svn.
 * Drop minified files from src/. The build process will now generate these.

props koop.
see #24976.

and see http://wp.me/p2AvED-1AI.



git-svn-id: https://develop.svn.wordpress.org/trunk@25001 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 05:25:25 +00:00