Commit Graph

26611 Commits

Author SHA1 Message Date
Sergey Biryukov
0b9fb4f148 Avoid a PHP notice in wp_new_comment() if user ID is not passed.
see #23231.

git-svn-id: https://develop.svn.wordpress.org/trunk@28922 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 11:02:10 +00:00
Sergey Biryukov
1d38109297 Force a separator in get_wp_title_rss() if it was inadvertently filtered out by the theme.
fixes #22362.

git-svn-id: https://develop.svn.wordpress.org/trunk@28921 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 10:10:57 +00:00
Sergey Biryukov
913392b9a9 Display consistent preview links for drafts.
props mordauk.
fixes #28350.

git-svn-id: https://develop.svn.wordpress.org/trunk@28920 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 10:02:01 +00:00
Andrew Ozz
df6eb733eb Secure embeds in the editor (first run):
- When the user pastes an embeddable http URL, try to get the https embed.
- If an embed provider doesn't support ssl embeds, show a placeholder/error message.
- Revise the way we return error messages.
See #28195, #28507.

git-svn-id: https://develop.svn.wordpress.org/trunk@28919 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 05:48:16 +00:00
Drew Jaynes (DrewAPicture)
99faddd819 General inline documentation improvements in wp-includes/functions.php.
First run. See #26185.


git-svn-id: https://develop.svn.wordpress.org/trunk@28918 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 03:55:03 +00:00
Drew Jaynes (DrewAPicture)
0c8b5722d2 Improve inline documentation for date_i18n(), _http_build_query(), wp_checkdate(), and wp_auth_check().
Props morganestes.
See #26185.


git-svn-id: https://develop.svn.wordpress.org/trunk@28917 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 03:46:22 +00:00
Sergey Biryukov
29aabd08a9 Prevent bulk actions from being performed when Filter button is clicked.
props jesin.
fixes #28555.

git-svn-id: https://develop.svn.wordpress.org/trunk@28916 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 01:09:25 +00:00
Sergey Biryukov
7584b25252 Normalize 'user_id' and 'user_ID' values in wp_new_comment() before passing the comment data to 'preprocess_comment' filter.
props dkotter.
fixes #23231.

git-svn-id: https://develop.svn.wordpress.org/trunk@28915 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 00:40:51 +00:00
Scott Taylor
923becb506 Revert [28911] for performance concerns.
See #14157.


git-svn-id: https://develop.svn.wordpress.org/trunk@28914 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 23:42:45 +00:00
Scott Taylor
11da6abc57 Allow comments in the trash to marked as spam.
Props mordauk.
Fixes #19256.


git-svn-id: https://develop.svn.wordpress.org/trunk@28913 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 23:18:24 +00:00
Scott Taylor
be32c3485a Add a function, get_comments_number_text(), that returns instead of echoing. comments_number() wraps it.
Props kapeels, nbachiyski.
Fixes #10177.


git-svn-id: https://develop.svn.wordpress.org/trunk@28912 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 23:12:34 +00:00
Scott Taylor
9cc39e7f46 Use includes_url( ..., 'relative' ) in script-loader.php in lieu of hard-coding /wp-includes/.... everywhere.
Fixes #14157.


git-svn-id: https://develop.svn.wordpress.org/trunk@28911 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 22:55:39 +00:00
Andrew Nacin
9e24832a0e Add initial unit tests for multisite's bootstrap.
props jeremyfelt.
fixes #27884.


git-svn-id: https://develop.svn.wordpress.org/trunk@28910 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 22:50:44 +00:00
Drew Jaynes (DrewAPicture)
75ff222c93 Convert documentation of default arguments in wp_list_authors() to the hash-notation style.
Props Viper007Bond.
Fixes #28684.


git-svn-id: https://develop.svn.wordpress.org/trunk@28909 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 22:33:46 +00:00
Scott Taylor
0b1a0b39fd Use includes_url() in wlwmanifest_link().
Props nacin.
See #14157.


git-svn-id: https://develop.svn.wordpress.org/trunk@28908 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 22:26:59 +00:00
Scott Taylor
0a3e448168 WP_Scripts->in_default_dir() should use the WPINC constant
Props wojtek.szkutnik
See #14157.


git-svn-id: https://develop.svn.wordpress.org/trunk@28907 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 22:22:16 +00:00
Scott Taylor
d204e4dea0 Admin screens should use the WPINC constant
Props wojtek.szkutnik
See #14157.


git-svn-id: https://develop.svn.wordpress.org/trunk@28906 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 22:20:26 +00:00
Scott Taylor
acd2a45cc2 wlwmanifest_link() should use the WPINC constant
Props wojtek.szkutnik
See #14157.


git-svn-id: https://develop.svn.wordpress.org/trunk@28905 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 22:16:52 +00:00
Scott Taylor
48c145ee78 WP_Filesystem_Base->abspath() should use the WPINC constant
Props wojtek.szkutnik
See #14157.


git-svn-id: https://develop.svn.wordpress.org/trunk@28904 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 22:15:10 +00:00
Scott Taylor
dcd7ff837d Use the WPINC constant when loading class-phpass.php
Props wojtek.szkutnik
See #14157.


git-svn-id: https://develop.svn.wordpress.org/trunk@28903 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 22:11:44 +00:00
Sergey Biryukov
00678ab0df Notify developers when register_post_type() or register_taxonomy() fails because of post type or taxonomy key length.
props mattheweppelsheimer.
fixes #28683.

git-svn-id: https://develop.svn.wordpress.org/trunk@28902 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 21:53:35 +00:00
Drew Jaynes (DrewAPicture)
978f3df40f Add documentation for the default playlist shortcode attributes in wp_playlist_shortcode().
Props taylorde.
Fixes #28678.


git-svn-id: https://develop.svn.wordpress.org/trunk@28901 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 21:28:54 +00:00
Andrew Nacin
02094174f9 Add index key support for wp_list_pluck(), à la array_column().
props trepmal.
fixes #28666.


git-svn-id: https://develop.svn.wordpress.org/trunk@28900 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 21:25:21 +00:00
Drew Jaynes (DrewAPicture)
1388b15b67 Re-document default arguments in wp_link_pages() using the hash-notation style.
Props taylorde.
Fixes #28680.


git-svn-id: https://develop.svn.wordpress.org/trunk@28899 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 18:55:45 +00:00
Sergey Biryukov
1e7b12978c Set date format before going into the loop to avoid a PHP notice if 'lastupdated' column is filtered out.
props jeremyfelt.
fixes #27614.

git-svn-id: https://develop.svn.wordpress.org/trunk@28898 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 18:10:52 +00:00
Sergey Biryukov
107001213b Fix feature pointer positioning issues for both LTR and RTL.
fixes #28062.

git-svn-id: https://develop.svn.wordpress.org/trunk@28897 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 16:05:53 +00:00
John Blackbourn
db4da6e488 Remove the WordPress logo from the focusable elements on the install/update screens. Fixes #28674. Props stompweb
git-svn-id: https://develop.svn.wordpress.org/trunk@28896 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 14:09:39 +00:00
John Blackbourn
15e019d99e Conditionally set the the secure flag on the test cookie, post password cookie, settings cookies, and comment author cookies depending on whether the front end and/or admin area are served over https. Fixes #28427
git-svn-id: https://develop.svn.wordpress.org/trunk@28895 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 13:24:55 +00:00
John Blackbourn
3c77cf1140 Introduce is_https_url() for testing whether the scheme for a given URL is https. See #28487.
git-svn-id: https://develop.svn.wordpress.org/trunk@28894 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 11:31:25 +00:00
John Blackbourn
3426416dac Normalise the schemes used in get_home_path() so it returns the correct path for sites using SSL in the admin area but not the front end. Fixes #25767. Props GregLone for the initial patch.
git-svn-id: https://develop.svn.wordpress.org/trunk@28893 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 10:28:52 +00:00
John Blackbourn
075be3e54b Introduce a filter to control the minimum characters required for an AJAX term search. Fixes #13580. Props iamfriendly, brianlayman
git-svn-id: https://develop.svn.wordpress.org/trunk@28892 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 10:04:05 +00:00
Drew Jaynes (DrewAPicture)
416f6d01b2 General phpDoc fixes in wp-includes/plugin.php.
See #28516.


git-svn-id: https://develop.svn.wordpress.org/trunk@28891 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 09:18:41 +00:00
Sergey Biryukov
08969ece9e Show a "No themes found" message if the search for an installed theme doesn't produce any results.
props gauravmittal1995 for initial patch.
fixes #28587.

git-svn-id: https://develop.svn.wordpress.org/trunk@28890 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 09:15:08 +00:00
Sergey Biryukov
665e2c3ce0 List the expected @param type first.
see #28516.

git-svn-id: https://develop.svn.wordpress.org/trunk@28889 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 08:46:33 +00:00
Sergey Biryukov
fd6ece2e93 More tweaks to @param docs in wp-includes/plugin.php.
see #28516.

git-svn-id: https://develop.svn.wordpress.org/trunk@28888 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-29 08:41:38 +00:00
Drew Jaynes (DrewAPicture)
6e7e9f07ab First-run documention of WP_Query argument defaults.
Props siobhan for some language tweaks. Props DrewAPicture.
See #25367.


git-svn-id: https://develop.svn.wordpress.org/trunk@28887 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 23:02:05 +00:00
Scott Taylor
faedd0d5fe Update @param docs in plugin.php
Props dkotter.
Fixes #28516.


git-svn-id: https://develop.svn.wordpress.org/trunk@28886 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 04:49:39 +00:00
Scott Taylor
2d56abdd2e Add new action 'delete_user_form' in wp-admin/users.php and wp-admin/network/users.php.
Props SergeyBiryukov, usermrpapa.
Fixes #27230.


git-svn-id: https://develop.svn.wordpress.org/trunk@28885 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 04:42:24 +00:00
Scott Taylor
79b2bb391c After [28883], remove_filter() should set $GLOBALS['wp_filter'][ $tag ] to array() when empty.
Props wonderboymusic, sphoid.
Fixes #28142.


git-svn-id: https://develop.svn.wordpress.org/trunk@28884 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-28 04:37:47 +00:00
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