Commit Graph

26734 Commits

Author SHA1 Message Date
Sergey Biryukov 339a0e87b7 Use correct variable.
props azaozz.
see #24472.

git-svn-id: https://develop.svn.wordpress.org/trunk@28945 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 23:29:03 +00:00
Sergey Biryukov 44f1a76a85 Add a filter for wp_editor() settings.
props DH-Shredder, JPry, DrewAPicture.
fixes #24472.

git-svn-id: https://develop.svn.wordpress.org/trunk@28944 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 23:02:58 +00:00
Scott Taylor 9ab7f4b144 Avoid polluted `$table_prefix` and `$_wp_switched_stack` in multisite unit tests.
Add `WP_TESTS_TABLE_PREFIX` in `bootstrap.php` to ensure the original value for `$table_prefix` is always available. 

Props jeremyfelt.
Fixes #28692.


git-svn-id: https://develop.svn.wordpress.org/trunk@28943 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 18:51:46 +00:00
Sergey Biryukov 99d75b6acb Make wp_kses_no_null() remove any invalid control characters in a string.
props mauteri, miqrogroove.
fixes #28506.

git-svn-id: https://develop.svn.wordpress.org/trunk@28942 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 18:00:50 +00:00
Sergey Biryukov d6b9a469fe Twenty Fourteen: Fix display of center-aligned images with captions in TinyMCE.
props RDall.
fixes #28048.

git-svn-id: https://develop.svn.wordpress.org/trunk@28941 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 16:40:30 +00:00
Helen Hou-Sandi c6c89eed8a Only apply metabox handle styles and JS events to `.postbox .hndle`, as opposed to all `h3`s in a `.postbox`.
Developers previously relying on the `h3` behavior may be affected. You may want to investigate `do_meta_boxes()` rather than recreating markup.

props SergeyBiryukov, nabil_kadimi.
fixes #28485.


git-svn-id: https://develop.svn.wordpress.org/trunk@28940 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 16:22:32 +00:00
Sergey Biryukov 92a7523362 Asterisk is an allowed character in a URI and should not be stripped out by wp_sanitize_redirect().
fixes #28362.

git-svn-id: https://develop.svn.wordpress.org/trunk@28939 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 15:55:04 +00:00
Sergey Biryukov ef5e962cfb Add @since for get_translations_for_domain().
props DrewAPicture.
see #28690.

git-svn-id: https://develop.svn.wordpress.org/trunk@28938 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 15:28:55 +00:00
Sergey Biryukov fd4ad167b2 Some fixes for get_weekstartend() docs.
see #26185.

git-svn-id: https://develop.svn.wordpress.org/trunk@28937 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 14:58:37 +00:00
Drew Jaynes (DrewAPicture) ecb39eaccb General inline documentation improvements in wp-includes/functions.php.
Second run. See #26185.


git-svn-id: https://develop.svn.wordpress.org/trunk@28936 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 01:43:48 +00:00
Sergey Biryukov 8b0ef058f3 WP_Date_Query: The inclusive logic should include all times within the date range.
props mboynes, oso96_2000, DrewAPicture.
fixes #26653.

git-svn-id: https://develop.svn.wordpress.org/trunk@28935 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 01:17:39 +00:00
Sergey Biryukov 416e5bcb96 Move ms-load.php and ms-default-constants.php inclusion back to ms-settings.php to avoid breaking WP-CLI.
Use require_once() to allow for ms-settings.php to be included multiple times while testing.

props jeremyfelt.
see #27884.

git-svn-id: https://develop.svn.wordpress.org/trunk@28934 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 23:49:34 +00:00
Sergey Biryukov 4114ff052f Remove free-spacing modifier and extra spaces from wp_extract_urls() pattern.
fixes #28222.

git-svn-id: https://develop.svn.wordpress.org/trunk@28933 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 23:08:48 +00:00
Andrew Ozz df6434b9a7 TinyMCE:
- Update the 'paste' plugin including cb36a78e54
- Better filtering of WebKit inserted &nbsp.
- Remove empty paragraphs and all inline styles on pasting but preserve styles added in the editor. This brings back the WP 3.8 behavior and makes pasting in all browsers work the same.
See #28016

git-svn-id: https://develop.svn.wordpress.org/trunk@28932 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 21:54:20 +00:00
Dominik Schilling (ocean90) 5aeaa14d9a Customizer: Reverse arrows in RTL. See #27406.
props yoavf.
fixes #28669.

git-svn-id: https://develop.svn.wordpress.org/trunk@28931 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 19:59:51 +00:00
Dominik Schilling (ocean90) 6f51a5f972 Customizer: Support `textarea` and commonly-used input types as control type in `WP_Customize_Control`.
Add `input_attrs` property to support custom input attributes.

(Demo plugin attached to ticket.)

props celloexpressions.
fixes #28477.

git-svn-id: https://develop.svn.wordpress.org/trunk@28930 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 19:47:56 +00:00
Scott Taylor 01441b8c05 Remove obsolete comment in `wptexturize()`.
http://irclogs.wordpress.org/chanlog.php?channel=wordpress-dev&day=2014-06-30&sort=asc#m879104

See [28831].


git-svn-id: https://develop.svn.wordpress.org/trunk@28929 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 17:58:14 +00:00
Sergey Biryukov 4e56aa8da0 Replace a redundant ! is_preview() check with a more appropriate one.
fixes #20496.

git-svn-id: https://develop.svn.wordpress.org/trunk@28928 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 17:18:23 +00:00
Helen Hou-Sandi 4f7bc0410f Support descriptions for individual customizer controls.
* Control title (label) markup will also only be output if specified.
* Control section descriptions are no longer italicized for visual hierarchy / differentiation.

props celloexpressions. fixes #27981.


git-svn-id: https://develop.svn.wordpress.org/trunk@28927 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 15:54:04 +00:00
Sergey Biryukov a756c57fd9 Add @expectedIncorrectUsage to Tests_Taxonomy::test_register_long_taxonomy().
see #28683.

git-svn-id: https://develop.svn.wordpress.org/trunk@28926 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 15:09:52 +00:00
Sergey Biryukov 5235448195 Avoid overwriting $error global with an interim variable.
props MikeLittle.
fixes #28691.

git-svn-id: https://develop.svn.wordpress.org/trunk@28925 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 14:38:21 +00:00
Sergey Biryukov 04429059b0 Document @return value for load_plugin_textdomain(). props jdgrimes.
Document $path parameter for load_child_theme_textdomain().

fixes #28690.

git-svn-id: https://develop.svn.wordpress.org/trunk@28924 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 13:51:11 +00:00
Sergey Biryukov 4176aa347e Pass $url parameter to wp_embed_defaults() and 'embed_defaults' filter.
props wpsmith, sabreuse, jacobdubail.
fixes #20151.

git-svn-id: https://develop.svn.wordpress.org/trunk@28923 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-30 11:15:33 +00:00
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