Commit Graph

10185 Commits

Author SHA1 Message Date
bumpbot
3778e5ea4a Compress scripts/styles: 3.5-alpha-21304.
git-svn-id: https://develop.svn.wordpress.org/trunk@21304 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-23 00:58:20 +00:00
Andrew Ozz
e99ef58818 Add tabbing from Title directly to the textarea when the Text editor is active, fixes #20834
git-svn-id: https://develop.svn.wordpress.org/trunk@21303 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-22 23:05:58 +00:00
Jon Cave
708d475b96 Remove unused arguments (hierarchical, _edit_link, capability_type) from register_post_status
Props scribu, simonwheatley. Fixes #18578, #18972.


git-svn-id: https://develop.svn.wordpress.org/trunk@21302 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-22 08:45:35 +00:00
bumpbot
a95752402e Compress scripts/styles: 3.5-alpha-21301. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21301 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-22 02:58:18 +00:00
Andrew Ozz
446b40235f TinyMCE: fix tabbig in and out of the editor, fixes #20834
git-svn-id: https://develop.svn.wordpress.org/trunk@21300 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-22 02:33:53 +00:00
Andrew Nacin
9c7a3a6c68 Revert [21287] until #21169 goes through. see #21321.
git-svn-id: https://develop.svn.wordpress.org/trunk@21299 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-21 20:24:21 +00:00
Andrew Nacin
6de675bd6a Remove unnecessary error suppression operators from func_get_arg() and func_num_args(). see #21332.
git-svn-id: https://develop.svn.wordpress.org/trunk@21298 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-21 06:07:39 +00:00
bumpbot
4777f4f5ba Compress scripts/styles: 3.5-alpha-21297.
git-svn-id: https://develop.svn.wordpress.org/trunk@21297 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-21 00:58:19 +00:00
Andrew Ozz
4dea1596a9 Add query args to refresh the sprite images, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@21296 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 23:38:23 +00:00
Andrew Ozz
f90d787959 Retina: fix the icon positions in the original editor buttons sprite, reset the css tweaks and adjust the positions in the 2x sprite, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@21295 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 23:07:48 +00:00
Andrew Nacin
09c0ae245f If $group is empty in WP_Object_Cache::decr(), consider it to be 'default'.
This is consistent with the rest of the cache methods wrapped by
functions; the functions pass an empty string by default, hence
the need for this check.

props bananastalktome.
fixes #21327.



git-svn-id: https://develop.svn.wordpress.org/trunk@21294 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 20:15:25 +00:00
Ryan Boren
a5d94bef07 Introduce cron_request filter. Props ikailo. fixes #13449
git-svn-id: https://develop.svn.wordpress.org/trunk@21293 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 15:15:22 +00:00
Andrew Nacin
6b6bea5e0d Only run stripslashes() in stripslashes_deep() for strings, not other scalar values. props Kawauso, knutsp. props coffee2code for [UT698]. fixes #18026.
git-svn-id: https://develop.svn.wordpress.org/trunk@21292 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 15:14:26 +00:00
Andrew Nacin
0887beb1d8 Fix typo in HTTP docblock. props ocean90. fixes #21215.
git-svn-id: https://develop.svn.wordpress.org/trunk@21290 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 15:09:11 +00:00
Andrew Nacin
f4fc103c50 Use html_type for alternate link elements in atom feeds, as done in atom comment feeds. props niallkennedy. fixes #21305.
git-svn-id: https://develop.svn.wordpress.org/trunk@21289 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 15:08:45 +00:00
Andrew Nacin
50cd56f8fd Clarify the return value of has_filter() and has_action(). It returns a boolean if only the first argument is specified. If the second argument is specified, it returns false or an integer, which means it may return a non-boolean value that evaluates to false (so, 0), so you should take care to use the === operator.
Correct the function definition of remove_filter() and remove_action(), which 'accepted' an $accepted_args argument, but did not require or use it.

fixes #19417.



git-svn-id: https://develop.svn.wordpress.org/trunk@21288 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 13:54:42 +00:00
Andrew Nacin
11e877bcb8 Remove unnecessary is_null() checks from the worker loops inside do_action(), apply_filters(), etc. fixes #21321. see #21169.
git-svn-id: https://develop.svn.wordpress.org/trunk@21287 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 05:25:37 +00:00
Mark Jaquith
ec527ab07d Clear the get_pages cache whenever ANY hierarchical post type cache is cleared — not just Pages. fixes #21279
git-svn-id: https://develop.svn.wordpress.org/trunk@21286 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 04:35:51 +00:00
Andrew Nacin
237b7f6dbe Improve the performance of WP_Object_Cache's _exists() method.
Results showed a performance improvement on one admin screen of 90ms (~2%).

fixes #21320. see #20004.



git-svn-id: https://develop.svn.wordpress.org/trunk@21285 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 04:21:42 +00:00
bumpbot
d43f1b9948 Compress scripts/styles: 3.5-alpha-21284.
git-svn-id: https://develop.svn.wordpress.org/trunk@21284 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-19 16:58:20 +00:00
bumpbot
f81d86ae2a Compress scripts/styles: 3.5-alpha-21282.
git-svn-id: https://develop.svn.wordpress.org/trunk@21282 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-18 22:58:20 +00:00
bumpbot
1879bb5571 Compress scripts/styles: 3.5-alpha-21273. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21273 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-14 02:58:20 +00:00
Andrew Ozz
b3fdac2a17 TinyMCE: add the Alt + W shortcut only when DFW is loaded and Alt + G only when MCE fullscreen is loaded, fixes #21197
git-svn-id: https://develop.svn.wordpress.org/trunk@21272 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-14 01:46:54 +00:00
bumpbot
b25666a393 Compress scripts/styles: 3.5-alpha-21271.
git-svn-id: https://develop.svn.wordpress.org/trunk@21271 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-13 02:58:22 +00:00
bumpbot
47002c1652 Compress scripts/styles: 3.5-alpha-21269. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21269 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-13 00:58:19 +00:00
Andrew Ozz
9423d09005 TinyMCE: update the keyboard shortcuts: Alt + letter for Firefox and WebKit, Alt + Shift + letter for IE and Opera, add shortcut for DFW (Alt + W), see #21214, fixes #21197, fixes #17992
git-svn-id: https://develop.svn.wordpress.org/trunk@21266 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-13 00:26:49 +00:00
Andrew Nacin
e6eda2b3f7 Admin bar: When calling add_node() for an existing node, all properties should be merged into the existing arguments, including individual meta arguments. Corrects a logic inversion. fixes #21117.
git-svn-id: https://develop.svn.wordpress.org/trunk@21259 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 21:26:35 +00:00
Andrew Nacin
8a7ca493ad Admin bar: Avoid clash with a parent node and a 'content' post type. see #21117.
git-svn-id: https://develop.svn.wordpress.org/trunk@21258 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 20:46:22 +00:00
Andrew Nacin
aa7f457bfb Tabs, not spaces for intendation. Add a docblock to the file/class.
git-svn-id: https://develop.svn.wordpress.org/trunk@21257 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 20:32:48 +00:00
Peter Westwood
cebf4e277b Multisite: Make it easy to replace or augment the over-quota message displayed when you try and upload new media and you have reached your quota.
Fixes #21179 props dllh, jkudish. 


git-svn-id: https://develop.svn.wordpress.org/trunk@21256 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 13:33:44 +00:00
bumpbot
95aac8c091 Compress scripts/styles: 3.5-alpha-21255. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21255 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 02:58:25 +00:00
Andrew Ozz
e69e38219b TinyMCE: when pressing Enter while an image with caption is selected, fix moving the caret in a new paragraph under it, fix opening the Image Properties popup in IE9, see #21173
git-svn-id: https://develop.svn.wordpress.org/trunk@21254 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 02:31:30 +00:00
Andrew Nacin
e256a654ba Deprecate sticky_class() in favor of post_class(). props solarissmoke, fixes #16675.
git-svn-id: https://develop.svn.wordpress.org/trunk@21253 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 21:10:59 +00:00
Andrew Nacin
c418e6c76e Remove unused global reference. props ampt. fixes #20863.
git-svn-id: https://develop.svn.wordpress.org/trunk@21252 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 19:48:04 +00:00
Andrew Nacin
041b5f7af1 HTML object tags are self-nestable. props coffee2code. fixes #20401.
git-svn-id: https://develop.svn.wordpress.org/trunk@21250 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 19:27:44 +00:00
Andrew Nacin
9f9f2bcf13 Use is_main_query() method, rather than the function. Only decode the search query variable if we are executing the main query and it came from the /search/ base, rather than the query string. fixes #13961.
git-svn-id: https://develop.svn.wordpress.org/trunk@21248 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 17:28:55 +00:00
bumpbot
4c7b1daf92 Compress scripts/styles: 3.5-alpha-21247.
git-svn-id: https://develop.svn.wordpress.org/trunk@21247 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 06:58:24 +00:00
Andrew Ozz
5372c1bcae TinyMCE icons sprite with tweaked positions, props lessbloat, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@21245 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 06:11:30 +00:00
Mark Jaquith
ea8be18c39 Collapse an i18n context to make it more accurate and to make for one less string to translate. props pavelevap. fixes #21137
git-svn-id: https://develop.svn.wordpress.org/trunk@21242 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 05:08:43 +00:00
Mark Jaquith
ebcf49cf93 Bunch of PHPDoc corrections and cleanups. props c3mdigital. props SergeyBiryukov. fixes #21149
git-svn-id: https://develop.svn.wordpress.org/trunk@21241 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 05:03:53 +00:00
Mark Jaquith
68ff684271 Supply the missing @return doc for get_the_content_feed(). props c3mdigital. fixes #21148
git-svn-id: https://develop.svn.wordpress.org/trunk@21239 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 04:51:00 +00:00
Mark Jaquith
fb23c2d9f4 Use a CDATA section for RSS2 comments feeds, so HTML in comments doesn't kill XML validation. props bazza. fixes #16466
git-svn-id: https://develop.svn.wordpress.org/trunk@21238 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 04:25:57 +00:00
Mark Jaquith
0290c34cee Do not block XML-RPC uploads when upload_space_check_disabled is true, regardless of fileupload_maxk value. props SergeyBiryukov. fixes #16217
git-svn-id: https://develop.svn.wordpress.org/trunk@21237 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 03:49:23 +00:00
Mark Jaquith
d3039fdd15 Use the_content_feed() when looking for zero-length post content for RSS2 feeds. Now you can have blank posts with content generated by the_content filters. props SergeyBiryukov. fixes #15604
git-svn-id: https://develop.svn.wordpress.org/trunk@21235 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 03:33:01 +00:00
bumpbot
12f878c0ec Compress scripts/styles: 3.5-alpha-21233. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21233 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-08 22:58:20 +00:00
Andrew Ozz
23cbfec581 TinyMCE: don't throw fatal errors for malformed/invalid image caption shortcodes, props SergeyBiryukov, see #21145
git-svn-id: https://develop.svn.wordpress.org/trunk@21232 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-08 21:11:23 +00:00
Dion Hulse
fc9df89100 WP_HTTP: Add a @link to the Chunked Decode RFC for documentation of how to decode the data correctly. Props mailnew2ster. Fixes #14184
git-svn-id: https://develop.svn.wordpress.org/trunk@21231 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-08 05:34:47 +00:00
Dion Hulse
77c54f2481 WP_HTTP: Remove a empty() check that would never be empty due to the format of HTTP Headers, value would always contain at least a space followed by the value. See #14184
git-svn-id: https://develop.svn.wordpress.org/trunk@21230 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-08 05:16:26 +00:00
bumpbot
420c84a793 Compress scripts/styles: 3.5-alpha-21229. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21229 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-07 16:58:20 +00:00
Andrew Ozz
35d883e244 Update TinyMCE to 3.5.4.1, fixes #21173
git-svn-id: https://develop.svn.wordpress.org/trunk@21228 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-07 16:22:53 +00:00
Dion Hulse
28d82c9b04 WP_HTTP: Allow for cookies with "empty" values be sent, this affects sending cookies such as test=0, which would previously fail. Props mailnew2ster for initial patch. See #14184
git-svn-id: https://develop.svn.wordpress.org/trunk@21227 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-07 12:06:09 +00:00
Dion Hulse
ceec50af94 WP_HTTP: Respect that some cookies do not have an expiration time, this is a valid use-case that WP_HTTP_Cookie::test() should not discard, a non-existant expiration date simply means to let it expire at the end of the session. Props mailnew2ster. Fixes #14191
git-svn-id: https://develop.svn.wordpress.org/trunk@21226 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-07 04:23:49 +00:00
Dion Hulse
f2bd679b96 WP_HTTP: Add a filter to WP_HTTP_Proxy::send_through_proxy() to allow for plugins to modify which requests are sent to a proxy dynamically. Fixes #20222
git-svn-id: https://develop.svn.wordpress.org/trunk@21225 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-07 02:27:13 +00:00
bumpbot
0d795fe1d1 Compress scripts/styles: 3.5-alpha-21220.
git-svn-id: https://develop.svn.wordpress.org/trunk@21220 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 20:58:21 +00:00
Mark Jaquith
5ab7fcea5e Better image extension regexes, so we don't just grab the "jpe" from "jpeg" files in media_sideload_image(). props sivel. fixes #16693
git-svn-id: https://develop.svn.wordpress.org/trunk@21219 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 20:51:55 +00:00
Andrew Ozz
757652fe01 Clarify that 'html' refers to the Text editor tab, see #20993
git-svn-id: https://develop.svn.wordpress.org/trunk@21218 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 20:28:01 +00:00
Mark Jaquith
13c2591ec0 Also switch back the @uses annotation for [21215]. props duck_. see #20484. see #16639
git-svn-id: https://develop.svn.wordpress.org/trunk@21217 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 20:09:28 +00:00
Mark Jaquith
8d0e99aaba Implement the IIS logic test that #16639 should have gotten back in the day, before it was disabled altogether. IIS canonical redirects now only supported for pretty permalink–supporting IIS7 installs. props nacin. fixes #20484. see #16639
git-svn-id: https://develop.svn.wordpress.org/trunk@21215 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 19:59:35 +00:00
Andrew Nacin
d1270f0d77 Allow wp_update_post() to accept the same second argument as wp_insert_post(), allowing for WP_Error return values on failure. props scribu, mikeschinkel. fixes #15036.
git-svn-id: https://develop.svn.wordpress.org/trunk@21213 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 19:21:57 +00:00
Mark Jaquith
5d74a50af4 Switch "HTML" tab to "Text" in DFW mode. Update documentation and inline comments to refer to the "Text" tab or mode instead of "HTML". see #20993
git-svn-id: https://develop.svn.wordpress.org/trunk@21212 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 15:28:13 +00:00
Mark Jaquith
40da33e326 Rename the "HTML" editor tab to "Text" (as it has never been a pure HTML editor, but a text editor that supports HTML and also does some HTML transformations automatically). fixes #20993
git-svn-id: https://develop.svn.wordpress.org/trunk@21211 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 15:19:01 +00:00
bumpbot
34ec1a7c61 Compress scripts/styles: 3.5-alpha-21210.
git-svn-id: https://develop.svn.wordpress.org/trunk@21210 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 14:58:19 +00:00
Mark Jaquith
e7d8706111 Allow home page of multisite (subdir install) sites to resolve regardless of capitalization, as they already do for URLs other than the home page. props SergeyBiryukov. fixes #16200
git-svn-id: https://develop.svn.wordpress.org/trunk@21208 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 13:50:24 +00:00
Mark Jaquith
b9ddde32f8 Reënable canonical redirects for IIS. Let's work out any remaining bugs in this cycle. fixes #20484. reverts [17492]. see #16639
git-svn-id: https://develop.svn.wordpress.org/trunk@21207 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 13:23:39 +00:00
bumpbot
9ec3e4e928 Compress scripts/styles: 3.5-alpha-21206.
git-svn-id: https://develop.svn.wordpress.org/trunk@21206 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-04 06:58:20 +00:00
Mark Jaquith
20813bcbe2 Change a jQuery selector to work around a change in jQuery 1.7.2 related to some class names containing colons. props SergeyBiryukov. fixes #21106 for trunk. see #21152
git-svn-id: https://develop.svn.wordpress.org/trunk@21205 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-04 05:58:28 +00:00
Andrew Nacin
178c404146 Eliminate $user_pass_md5. fixes #21125.
git-svn-id: https://develop.svn.wordpress.org/trunk@21202 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 15:04:06 +00:00
Andrew Nacin
4a23ebe03d Enforce multisite plugins menu preference in map_meta_cap(). This means a simple current_user_can('activate_plugins') check will handle the 'Enable administration menus' setting.
Remove bogus checks for enabling/disabling the 'themes' menu (something core does not handle out of the box) when in the network admin.

fixes #21123.



git-svn-id: https://develop.svn.wordpress.org/trunk@21198 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:40:25 +00:00
Andrew Nacin
5f1b0c2a4b Don't use switch_to_blog() in wp.getUsersBlogs to improve performance and memory footprint. props mohanjith for initial patch. fixes #20665.
git-svn-id: https://develop.svn.wordpress.org/trunk@21194 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 11:49:02 +00:00
Andrew Nacin
168e08168c Don't output empty class names or ones with leading/trailing spaces. props MattyRob for the initial patch. fixes #20698.
git-svn-id: https://develop.svn.wordpress.org/trunk@21193 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 11:47:21 +00:00
bumpbot
29d657c8a0 Compress scripts/styles: 3.5-alpha-21190.
git-svn-id: https://develop.svn.wordpress.org/trunk@21190 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 08:58:22 +00:00
Mark Jaquith
0b294b9481 urldecode() search strings that come in from /search/foo. props SergeyBiryukov. fixes #13961
git-svn-id: https://develop.svn.wordpress.org/trunk@21187 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 07:47:22 +00:00
Andrew Nacin
e1b03b4fd4 Remove old code unsetting a few variables in wp-settings.php. fixes #21115.
git-svn-id: https://develop.svn.wordpress.org/trunk@21186 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 20:57:09 +00:00
Andrew Nacin
9fd4c1cb9b Add NOT EXISTS to meta queries, allowing you to query for the non-existence of a meta key.
You could already use EXISTS by omitting a value to check.

props georgestephanis, scribu
fixes #18158



git-svn-id: https://develop.svn.wordpress.org/trunk@21185 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 19:59:29 +00:00
Andrew Nacin
96f9446e11 Check if array key exists in wp_list_filter(). props wpsmith. fixes #20929.
git-svn-id: https://develop.svn.wordpress.org/trunk@21184 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 19:42:27 +00:00
Mark Jaquith
898a2f371b Update some of the TinyMCE help text to be more accurate. Props SergeyBiryukov. fixes #21108
git-svn-id: https://develop.svn.wordpress.org/trunk@21182 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 17:47:41 +00:00
Andrew Nacin
42c8c7b5fe Add back an empty line removed in [21180].
git-svn-id: https://develop.svn.wordpress.org/trunk@21181 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 15:16:36 +00:00
Andrew Nacin
9283b786be Add note to get_allowed_mime_types() about the upload_mimes filter. props JustinSainton. fixes #20990.
git-svn-id: https://develop.svn.wordpress.org/trunk@21180 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 15:13:53 +00:00
Andrew Nacin
9db38e39ab Correctly identify queries where a line break follows a keyword, rather than a space. props GeertDD, fixes #19467.
git-svn-id: https://develop.svn.wordpress.org/trunk@21178 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 15:08:17 +00:00
Andrew Nacin
a9643d617a Take the original slug passed into wp_unique_post_slug() and pass it to the wp_unique_post_slug filter. props johnbillion. fixes #20480.
git-svn-id: https://develop.svn.wordpress.org/trunk@21177 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 13:57:02 +00:00
Mark Jaquith
f4ef59ebdc Google Gears is dead. Long live its HTML5 replacement that does not in any way work for our purposes. props azaozz. fixes #20981
git-svn-id: https://develop.svn.wordpress.org/trunk@21176 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 03:34:02 +00:00
bumpbot
7d0fd688b8 Compress scripts/styles: 3.5-alpha-21175.
git-svn-id: https://develop.svn.wordpress.org/trunk@21175 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:58:22 +00:00
Mark Jaquith
016b10f1f1 More reliably replace $home_root in $request in get_pagenum_link(). props SergeyBiryukov. fixes #18034
git-svn-id: https://develop.svn.wordpress.org/trunk@21174 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:54:20 +00:00
Andrew Nacin
309ae4c917 install_blog() should not be polluting the siteurl and home options with the trailing slash that comes from get_blogaddress_by_id().
git-svn-id: https://develop.svn.wordpress.org/trunk@21172 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:38:16 +00:00
Mark Jaquith
bfd2e57437 Allow tel: and fax: protocols. Wrangle the last hardcoded protocol enumeration so that it uses wp_allowed_protocols(). fixes #21081
git-svn-id: https://develop.svn.wordpress.org/trunk@21170 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:30:10 +00:00
Andrew Nacin
898fd19d0e Add a post_link_category filter to the permalink generation process.
This allows a plugin to easily change which category gets represented
in the URL. Previously, it went off the category with the smallest ID.

props aaroncampbell
fixes #18752



git-svn-id: https://develop.svn.wordpress.org/trunk@21169 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:28:57 +00:00
Andrew Nacin
b74c0203d9 s/inval/intval/. props PeteMall. see #14889.
git-svn-id: https://develop.svn.wordpress.org/trunk@21168 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:24:50 +00:00
Andrew Nacin
a0f7d641b7 Allow protocol-relative URLs when registering/enqueueing scripts and styles.
props mimecine, TobiasBg, georgestephanis.
props kurtpayne for the test coverage.
fixes #16560.



git-svn-id: https://develop.svn.wordpress.org/trunk@21166 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:18:38 +00:00
Andrew Nacin
900829b986 Respect -1 as a memory limit setting.
Don't override memory_limit = -1 with a fixed value.
Know that WP_MEMORY_LIMIT = -1 can override a fixed value.

props aaroncampbell
fixes #14889



git-svn-id: https://develop.svn.wordpress.org/trunk@21165 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:14:39 +00:00
Andrew Nacin
6727ee1a21 Add do_parse_request filter to WP::parse_request() to allow short-circuiting. props andy, mikeschinkel. fixes #16692.
git-svn-id: https://develop.svn.wordpress.org/trunk@21163 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:03:03 +00:00
Andrew Nacin
57eb45641e Handle localized floats in $wpdb->prepare(). props kurtpayne. fixes #19861.
git-svn-id: https://develop.svn.wordpress.org/trunk@21161 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:57:31 +00:00
Mark Jaquith
8e48096fcf Do not store post_excerpt in a temporary variable when we can just return it directly. props niallkennedy. fixes #21041
git-svn-id: https://develop.svn.wordpress.org/trunk@21159 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:26:06 +00:00
Andrew Nacin
604f79dac0 Initialize a variable. props maxcutler. fixes #21058.
git-svn-id: https://develop.svn.wordpress.org/trunk@21158 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:04:42 +00:00
Andrew Nacin
801daca85c 3.5-alpha-21157
git-svn-id: https://develop.svn.wordpress.org/trunk@21157 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-27 19:43:08 +00:00
Andrew Nacin
ffababf000 Remove 'fall through' points in map_meta_cap() as they can hide bugs.
git-svn-id: https://develop.svn.wordpress.org/trunk@21152 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-27 19:27:54 +00:00
bumpbot
02a1ccd56b Compress scripts/styles: 3.5-alpha-21148.
git-svn-id: https://develop.svn.wordpress.org/trunk@21148 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 21:50:58 +00:00
Andrew Nacin
a2c8ec790d Update the version numbers for wp_explain_nonce() deprecation. see #21076.
git-svn-id: https://develop.svn.wordpress.org/trunk@21146 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 21:26:42 +00:00
Andrew Nacin
af13f116a3 Use set_post_format(), not wp_set_post_terms(), in XML-RPC mw_newPost and mw_editPost. props koke. see #20697.
git-svn-id: https://develop.svn.wordpress.org/trunk@21145 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 21:07:12 +00:00
Andrew Nacin
4c406cc8ad Add initial support for browser-based uploads in iOS 6. see #20923 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21141 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 20:39:04 +00:00
Andrew Nacin
58cb1bce66 Check XML-RPC cap before running the query. props maxcutler. see #20991 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21137 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 19:04:10 +00:00