Commit Graph

26594 Commits

Author SHA1 Message Date
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
Drew Jaynes (DrewAPicture)
8130335b9d Add braces missed while adding docs for the option_page_capability_{$option_page} hook.
See [25372]. See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@28833 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-25 21:47:14 +00:00
Scott Taylor
1c947d9ef1 Bring the list of upload_filetypes for multisite into modernity based on .com upgrades and supported extensions for audio and video.
Fixes #24434.


git-svn-id: https://develop.svn.wordpress.org/trunk@28832 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-25 17:59:54 +00:00
Scott Taylor
96484fd3f9 Optimize the wptexturize() loop:
* Take the ampersand pattern out of the loop for speed.
* Fix old bugs in the ampersand pattern.
* Refactor `_wptexturize_pushpop_element()` without PCRE for speed.
* Update unit tests.

Props miqrogroove.
Fixes #28623.


git-svn-id: https://develop.svn.wordpress.org/trunk@28831 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-25 17:48:20 +00:00
Scott Taylor
69101fe0f3 The "old iframe media modal" has some pretty busted styles. Although this is a "deprecated" feature, clean up some of the broken styles.
Props erayalakese for the JS patch.
Fixes #28220.



git-svn-id: https://develop.svn.wordpress.org/trunk@28830 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-25 17:38:28 +00:00
Scott Taylor
6f220c7fc7 Make the list of gallery attachments in the "old iframe media modal" break less. The "columns" are not aligned with the headers, but this would require a markup rewrite of a deprecated feature.
Fixes #28098.



git-svn-id: https://develop.svn.wordpress.org/trunk@28829 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-25 17:11:36 +00:00
Andrew Ozz
7a2d51e539 wpLink: support whole URLs including query/fragment when pre-filling the URL field. Fixes #19992
git-svn-id: https://develop.svn.wordpress.org/trunk@28828 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-25 00:36:24 +00:00
Sergey Biryukov
ccdfdb2c8e Allow for easier adding of custom class variables when extending WP_Customize_Section or WP_Customize_Setting.
props rhurling.
fixes #27315.

git-svn-id: https://develop.svn.wordpress.org/trunk@28827 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 22:55:56 +00:00
Scott Taylor
6385135983 When selecting a fallback menu in wp_nav_menu(), the "first" menu is retrieved from an unsorted query. When retrieving a fallback menu, pass array( 'orderby' => 'name' ) to wp_get_nav_menus() to return a menu consistently.
Props lukecarbis.
Fixes #28126.


git-svn-id: https://develop.svn.wordpress.org/trunk@28826 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 17:24:23 +00:00
wonderboymusic
77cf8a1184 Simplify the setting of $args['include'] in wp_get_nav_menu_items().
Props UmeshSingla.
Fixes #28515.


git-svn-id: https://develop.svn.wordpress.org/trunk@28825 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 17:16:02 +00:00
Scott Taylor
73fe9d548b Ensure that a has_children parameter is given to Walker::start_el().
Adds unit tests.

Props scribu, obenland.
Fixes #14041.


git-svn-id: https://develop.svn.wordpress.org/trunk@28824 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 17:05:56 +00:00
Sergey Biryukov
94be170877 Use direct typecasting instead of intval() for better performance.
props kovshenin.
see #25788.

git-svn-id: https://develop.svn.wordpress.org/trunk@28823 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 16:05:54 +00:00
Sergey Biryukov
a10aa6c53c Merge two Animoto oEmbed patterns.
props kovshenin.
see #28265.

git-svn-id: https://develop.svn.wordpress.org/trunk@28822 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 15:55:37 +00:00
Sergey Biryukov
40ce1a6adf Multiple strings in .editorconfig section names should be wrapped in curly brackets.
props treyhunner, netweb.
fixes #28494.

git-svn-id: https://develop.svn.wordpress.org/trunk@28821 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 10:54:41 +00:00
Sergey Biryukov
b1fd1dbbcf Add ISO date standard YYYY-MM-DD format to general settings.
props mattheweppelsheimer.
fixes #28447.

git-svn-id: https://develop.svn.wordpress.org/trunk@28820 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 09:49:37 +00:00
Sergey Biryukov
ddaf46505d Add @ticket references.
see #27268.

git-svn-id: https://develop.svn.wordpress.org/trunk@28819 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 03:54:52 +00:00
Scott Taylor
882f41cb64 Add unit tests for [28817].
git-svn-id: https://develop.svn.wordpress.org/trunk@28818 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 00:54:22 +00:00
Scott Taylor
832bbb2821 Remove noscript from wpautop()'s list of block elements.
Props mdawaffe.
Fixes #27268.


git-svn-id: https://develop.svn.wordpress.org/trunk@28817 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 00:53:41 +00:00
Scott Taylor
f6050ce8eb wp.mce.embedView.fetch() and wp.media.view.EmbedLink.fetch() need to pass the same parameters.
Fixes #28532.


git-svn-id: https://develop.svn.wordpress.org/trunk@28816 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 00:39:29 +00:00
Scott Taylor
f5bda24b70 Add a filter/docs: 'oembed_remote_get_args' to WP_oEmbed->discover() and ->_fetch_with_format().
Props leewillis77, DrewAPicture.
Fixes #23442.


git-svn-id: https://develop.svn.wordpress.org/trunk@28815 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 00:27:55 +00:00
Scott Taylor
220fda0095 In $wpdb->update(), prevent explosions when $where is empty.
Adds unit tests.

Props UmeshSingla, wonderboymusic.
Fixes #26106


git-svn-id: https://develop.svn.wordpress.org/trunk@28814 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 00:23:09 +00:00
Scott Taylor
76bd35fa79 In comment_form(), allow name_submit to be passed to change the name attribute of the submit button.
Props obenland.
Fixes #22792.


git-svn-id: https://develop.svn.wordpress.org/trunk@28813 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 00:09:51 +00:00
Scott Taylor
0d7450108c Use dir instead of folder in the language for jshint:plugins
Props MattyRob.
See #28464.


git-svn-id: https://develop.svn.wordpress.org/trunk@28812 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 00:07:00 +00:00
Scott Taylor
723927ca74 Adjust CSS for "Moved to the trash" message for a pingback in the dashboard.
Props zoerooney, codenameEli.
Fixes #28286.


git-svn-id: https://develop.svn.wordpress.org/trunk@28811 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-24 00:02:17 +00:00
Scott Taylor
848034a190 Use unobtrusive JS for Comment list table row actions.
Props aubreypwd.
Fixes #27533.


git-svn-id: https://develop.svn.wordpress.org/trunk@28810 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-23 23:54:28 +00:00
Sergey Biryukov
ee307dc160 Use assertCount() for consistency with other tests.
see #28611.

git-svn-id: https://develop.svn.wordpress.org/trunk@28809 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-23 22:26:12 +00:00
Sergey Biryukov
2120ede170 Remove mbstring_binary_safe_strlen(). Use mbstring_binary_safe_encoding() and reset_mbstring_encoding() directly.
fixes #28162.

git-svn-id: https://develop.svn.wordpress.org/trunk@28808 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-23 22:20:23 +00:00
Scott Taylor
0adec3db8a Use the proper height property when calculating video size in wp_underscore_video_template().
Props Fab1en.
See #28190.


git-svn-id: https://develop.svn.wordpress.org/trunk@28807 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-23 20:34:14 +00:00
Sergey Biryukov
4fd715c937 Introduce a binary-safe wrapper for strlen() and use it in seems_utf8(), utf8_uri_encode(), and wp_read_image_metadata().
Use binary-safe POMO_Reader::strlen() in MO::export_to_file_handle().

fixes #28162.

git-svn-id: https://develop.svn.wordpress.org/trunk@28806 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-23 14:47:08 +00:00