Commit Graph

26572 Commits

Author SHA1 Message Date
Scott Taylor
d88a14ee67 remove_all_filters() should set to array(), not call unset().
Props nacin, c3mdigital.
Fixes #19306.


git-svn-id: https://develop.svn.wordpress.org/trunk@28883 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 04:26:49 +00:00
Scott Taylor
56e66c79b4 wp_extract_urls() should not match dates.
Updates unit tests.

Props hinnerk, sergej.mueller.
Fixes #28222.


git-svn-id: https://develop.svn.wordpress.org/trunk@28882 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 04:15:30 +00:00
Scott Taylor
dca6040b0b In multisite, on the updated_option action, if the option name is one of: 'blogname', 'siteurl', 'post_count' - refresh the blog details cache for the current blog id.
Adds unit test.

Props kovshenin.
Fixes #26410.


git-svn-id: https://develop.svn.wordpress.org/trunk@28881 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 04:06:12 +00:00
Scott Taylor
54d4f34ad2 If the get_the_excerpt() is called out of bounds of a global $post, return ''.
Fixes #22413.


git-svn-id: https://develop.svn.wordpress.org/trunk@28880 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 04:00:27 +00:00
Scott Taylor
c2b7f8022c Add ->get_quality() method to WP_Image_Editor class.
Adds unit tests.

Props markoheijnen.
Fixes #28154.


git-svn-id: https://develop.svn.wordpress.org/trunk@28879 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 03:49:55 +00:00
Sergey Biryukov
34ed4c44f5 Fix typo in a comment.
props JustinSainton.
see #20496.

git-svn-id: https://develop.svn.wordpress.org/trunk@28878 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 03:29:10 +00:00
Scott Taylor
7debe46f3e Fix the spacing between the wp-pointer arrow and bubble in LTR and RTL.
Fixes #28062.



git-svn-id: https://develop.svn.wordpress.org/trunk@28877 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 02:25:40 +00:00
Helen Hou-Sandi
9becde117d Make the posts list table mode a sticky user setting. props garyc40, azaozz, ericmann. fixes #16774, #20335.
git-svn-id: https://develop.svn.wordpress.org/trunk@28876 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 02:16:59 +00:00
Scott Taylor
cf67d53408 Remove obsolete wp_cache_delete('get_pages', 'posts') from clean_post_cache().
Fixes #27459.


git-svn-id: https://develop.svn.wordpress.org/trunk@28875 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 02:15:45 +00:00
Scott Taylor
e8f2862421 Perform a canonical redirect for posts that are published but are visited at a ?p=123&preview=true URL.
Props amit, joostdevalk.
Fixes #20496.


git-svn-id: https://develop.svn.wordpress.org/trunk@28874 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 02:12:19 +00:00
Scott Taylor
373842cdb6 Exclude jshint:plugins from both grunt precommit and grunt travis:js.
Props netweb.
Fixes #28464.


git-svn-id: https://develop.svn.wordpress.org/trunk@28873 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 02:08:05 +00:00
Scott Taylor
572e27c682 Remove remaining Heartbeat API experimental notices
Props DH-Shredder.
Fixes #28626.


git-svn-id: https://develop.svn.wordpress.org/trunk@28872 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 02:05:54 +00:00
Scott Taylor
2371f75688 In deprecated media iframe code, attachment_fields_to_save filter should not be called twice after initial image upload in post.
Props SergeyBiryukov.
Fixes #20720.


git-svn-id: https://develop.svn.wordpress.org/trunk@28871 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-27 21:31:28 +00:00
Scott Taylor
119add95d9 Remove title attributes in wp_authenticate_username_password().
Props joedolson.
Fixes #26547.


git-svn-id: https://develop.svn.wordpress.org/trunk@28870 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-27 20:04:52 +00:00
Helen Hou-Sandi
c27492cf26 Don't switch contextual help tabs when tabbing around. props neil_pie. see #28209.
git-svn-id: https://develop.svn.wordpress.org/trunk@28869 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-27 19:09:17 +00:00
Sergey Biryukov
d2d985ffeb Avoid duplication of callbacks in theme browser sidebar each time the Next or Previous button is clicked.
This makes the collapse/expand button work as expected.

fixes #28581.

git-svn-id: https://develop.svn.wordpress.org/trunk@28868 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-27 16:05:07 +00:00
Sergey Biryukov
0ff197f471 Correct filter documentation in wp_nav_menu().
props dlh.
fixes #28657.

git-svn-id: https://develop.svn.wordpress.org/trunk@28867 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-27 03:36:05 +00:00
Andrew Ozz
9dfcd4030c TinyMCE: force 'font-weight: bold` for <strong> and <b> inside the editor or Chrome and Safari may replace them with spans on pasting. Fixes #28656.
git-svn-id: https://develop.svn.wordpress.org/trunk@28866 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-27 02:59:13 +00:00
Sergey Biryukov
b864d0955e Avoid a PHP notice and warning on language selection screen.
props meekyhwang.
fixes #28648.

git-svn-id: https://develop.svn.wordpress.org/trunk@28865 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-27 00:24:36 +00:00
Sergey Biryukov
f68d096c31 Make sure the first number in LIMIT clause in WP_Query::get_posts() is always an integer.
fixes #23383.

git-svn-id: https://develop.svn.wordpress.org/trunk@28864 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-27 00:03:05 +00:00
Scott Taylor
ce8a35edd1 Make sure the audio player's time tooltip is visible in the media modal for Audio Details.
Fixes #28453.



git-svn-id: https://develop.svn.wordpress.org/trunk@28863 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 20:28:12 +00:00
Dominik Schilling (ocean90)
2e22fc3778 Revert property change in [28861].
git-svn-id: https://develop.svn.wordpress.org/trunk@28862 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 20:20:24 +00:00
Dominik Schilling (ocean90)
7edd9edde4 Customizer: Introduce a "panel" API to organize multiple sections into a one section.
Create a panel via `$GLOBALS['wp_customize']->add_panel( $panel_id, $args )` and use `$panel_id` for the `panel` argument in `$GLOBALS['wp_customize']->add_section( $section_id, $args )`. That's it.
As an example all widget area sections are now summarized into one panel. Feedback appreciated.

props celloexpressions.
see #27406.

git-svn-id: https://develop.svn.wordpress.org/trunk@28861 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 20:16:21 +00:00
SergeyBiryukov
bc83ca24d4 Use correct data providers.
props miqrogroove.
see #28564.

git-svn-id: https://develop.svn.wordpress.org/trunk@28860 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 19:07:03 +00:00
Sergey Biryukov
f09a6ee73c Use correct data provider.
see #27426.

git-svn-id: https://develop.svn.wordpress.org/trunk@28859 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 18:59:55 +00:00
Scott Taylor
782bd3ee67 Do not touch absint(). Reverts [28855].
git-svn-id: https://develop.svn.wordpress.org/trunk@28858 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 18:44:45 +00:00
Scott Taylor
8ec1723e03 Revert [28856] at nacin's behest. See #23383.
git-svn-id: https://develop.svn.wordpress.org/trunk@28857 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 18:33:50 +00:00
Scott Taylor
ce6de601e3 absint() should always return PHP_INT_MAX if the resulting value exceeds it.
See [28855].
Fixes #23383.


git-svn-id: https://develop.svn.wordpress.org/trunk@28856 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 18:23:51 +00:00
Scott Taylor
df04529010 Add a second optional parameter to absint() to limit the result to PHP_INT_MAX.
See #23383.


git-svn-id: https://develop.svn.wordpress.org/trunk@28855 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 17:51:52 +00:00
Sergey Biryukov
146bcaa937 XML-RPC: Make sure wp.newPost does not produce a fatal error when a post_date field is included in the data.
props dllh.
fixes #28601.

git-svn-id: https://develop.svn.wordpress.org/trunk@28854 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 17:42:17 +00:00
Scott Taylor
0f45c941f6 Fix wpautop() unit tests. See #25646, #22230, #25856.
Props rachelbaker.
Fixes #28638.


git-svn-id: https://develop.svn.wordpress.org/trunk@28853 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 17:27:49 +00:00
Scott Taylor
8103dc5ade Use less greedy regex in wptexturize(). Adds unit tests.
Props miqrogroove.
See #28564.


git-svn-id: https://develop.svn.wordpress.org/trunk@28852 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 17:14:47 +00:00
Sergey Biryukov
3513f37623 Fix unexpected replacement of a previous tag when selecting a tag from autosuggest results.
props camdensegal.
fixes #28471.

git-svn-id: https://develop.svn.wordpress.org/trunk@28851 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 16:07:36 +00:00
Helen Hou-Sandi
2187cc6f98 Slightly bump up the login logo size to avoid getting chopped off by Firefox's rounding problems. props SergeyBiryukov for the initial patch. fixes #28393.
git-svn-id: https://develop.svn.wordpress.org/trunk@28850 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 15:35:19 +00:00
Sergey Biryukov
772903e5e9 XML-RPC: Add wp.deleteMediaItem as an alias to wp_deletePost.
props fahmiadib.
fixes #5310.

git-svn-id: https://develop.svn.wordpress.org/trunk@28849 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 15:20:07 +00:00
Sergey Biryukov
7fa39e6839 Replace Y/m/d date format in general settings with a more popular one, Y-m-d.
props gauravmittal1995.
fixes #28447.

git-svn-id: https://develop.svn.wordpress.org/trunk@28848 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 14:28:04 +00:00
Andrew Ozz
38debafe60 Uploader: enable selecting multiple files on mobile devices (still doesn't work on Android). See #28640.
git-svn-id: https://develop.svn.wordpress.org/trunk@28847 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 04:14:59 +00:00
Scott Taylor
7139817d2e When wp_oembed_add_provider() or wp_oembed_remove_provider() is called before the plugins_loaded hook has, store the values statically on the WP_oEmbed object and add them just-in-time when the object is instantiated.
This ensures that all plugins have an accurate provider list when `apply_filters( 'oembed_providers', $providers )` is called. 

Props kovshenin.
Fixes #28284.


git-svn-id: https://develop.svn.wordpress.org/trunk@28846 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 02:29:20 +00:00
Scott Taylor
4d1313bffc In kses.php, ensure that $allowedposttags, $allowedtags, and $allowedentitynames are added to the global namespace.
Props Jaza613.
Fixes #28582.



git-svn-id: https://develop.svn.wordpress.org/trunk@28845 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 02:13:16 +00:00
Scott Taylor
b4c75b8ab1 Check for the existence of $post before using it in get_the_ID(). Return false if it doesn't exist.
Props UmeshSingla.
Fixes #17034.


git-svn-id: https://develop.svn.wordpress.org/trunk@28844 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 02:04:38 +00:00
Scott Taylor
cf15c523d3 Only apply a subtle semi-transparent border to attachments that are images in the media list table.
See [28842], #15860.



git-svn-id: https://develop.svn.wordpress.org/trunk@28843 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 01:57:37 +00:00
Scott Taylor
f92d73310a Apply a subtle semi-transparent border to images in the media list table to avoid the "white on white (like a polar bear in Antarctica)" problem.
Props ericlewis.
Fixes #15860.


git-svn-id: https://develop.svn.wordpress.org/trunk@28842 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 01:51:20 +00:00
Scott Taylor
6d924f9d53 Add mime support for 3gp, 3g2 and 3gpp video formats. These are not supported by MediaElement or the WP media shortcodes, just an FYI.
Props azaozz, m_uysl.
Fixes #23380.


git-svn-id: https://develop.svn.wordpress.org/trunk@28841 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 01:42:54 +00:00
Scott Taylor
f106f80768 In wp_localize_script(), instantiate the $wp_scripts global instead of bailing when it is called before wp_enqueue_scripts. This allows wp_enqueue_media() to be called on the front end with no JS errors.
Props ericlewis.
Fixes #24724.


git-svn-id: https://develop.svn.wordpress.org/trunk@28840 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 01:37:13 +00:00
Scott Taylor
0105f41c77 Dynamically prepend screen reader text to the attachment filters dropdown and the search box in the media modal.
Props SergeyBiryukov.
Fixes #25102.


git-svn-id: https://develop.svn.wordpress.org/trunk@28839 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 01:27:37 +00:00
Scott Taylor
3ace2eba1d Race conditions can cause .uploader-window to be visible with opacity of 0. It will cause the user to have to refresh the page or inspect the element to hide it. Add a delay in wp.media.view.UploaderWindow.hide() to ensure that the uploader window is indeed hidden.
Props kovshenin.
Fixes #27341.


git-svn-id: https://develop.svn.wordpress.org/trunk@28838 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 01:19:18 +00:00
Scott Taylor
95f3506532 In media_buttons(), add a static var $instance to increment the id attribute of insert-media-button-%d on each call.
Props ericlewis.
Fixes #28090.


git-svn-id: https://develop.svn.wordpress.org/trunk@28837 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 01:04:32 +00:00
Scott Taylor
7e9cf1d2c0 return false in has_nav_menu() if the $location does not exist in the $_wp_registered_nav_menus global.
Props SergeyBiryukov.
Fixes #27735.


git-svn-id: https://develop.svn.wordpress.org/trunk@28836 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 00:56:07 +00:00
Scott Taylor
b917e7998d get_blog_details()->post_count should update on more actions than just publish_post.
Adds unit test.

Props 5um17, midxcat, strangerstudios.
Fixes #27952.


git-svn-id: https://develop.svn.wordpress.org/trunk@28835 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-26 00:52:25 +00:00
John Blackbourn
8621b2c92c Switch to SSL for the Flickr and Slideshare oEmbed endpoints. Add support for SSL embeds on flic.kr. See #28507.
git-svn-id: https://develop.svn.wordpress.org/trunk@28834 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-25 23:35:02 +00:00