Andrew Nacin
253e09f192
Install: Don't ask for the user's language a second time if they chose English originally.
...
see #28577 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29058 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 09:24:55 +00:00
Helen Hou-Sandi
466659cee6
Media grid attachment modal:
...
* Keyboard navigation.
* History and routes for single items and search results.
props adamsilverstein. see #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29057 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 06:36:34 +00:00
Helen Hou-Sandi
2e0c881d54
Media grid:
...
* Introduce the concept of bulk editing via a separate mode. Like the list view, only bulk deleting is available. The UI is a little funky, especially with the field display toggles there, but refinements will come.
* Up the max thumbnail size from 120px to 150px.
* Slide-down panel for the add new uploader. Known issue: it doesn't close again.
* Remove the toolbar region in the EditAttachment frame.
* Defer a function call so the grid fills available space.
* Give feedback when no results are found. Also needs styling.
props ericlewis. see #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29056 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 03:49:28 +00:00
Helen Hou-Sandi
72730d86dd
Better styling for the larger image preview in the attachment details modal. Portrait images still have problems in Firefox due to percentage height. props mikeyarce for the initial patch. see #28800 , #24716 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29055 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 01:44:20 +00:00
Sergey Biryukov
c35bd6c927
Revisions: Properly position the spinner on Compare Revisions screen.
...
props vinod dalvi for initial patch.
fixes #28590 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29054 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 01:43:59 +00:00
Helen Hou-Sandi
6afe00e338
Use a more generic selector for image editor in media modal styling so that the Media Grid modal also gets it. see #24716 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29053 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 01:23:41 +00:00
Sergey Biryukov
ca97e64c50
Revisions: Explicitly set the 'from' handle position when switching from two-handled mode back to single-handled mode.
...
props adamsilverstein.
fixes #26793 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29052 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 00:59:13 +00:00
Sergey Biryukov
1477277b53
Customizer: Introduce WP_Customize_Control::active() method to determine whether the control is relevant to the current context (i.e. to the current URL being previewed).
...
Control can indicate its active state by a subclass overriding the 'active_callback' method, by supplying a callable 'active_callback' argument into the control's constructor, or by filtering 'customize_control_active'.
props westonruter.
see #27993 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29051 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 23:57:29 +00:00
Andrew Ozz
ccef0ae5f0
Fix whitespace, quotes and double patch content in wpautoresize plugin, see #28328
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29050 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 22:42:28 +00:00
Andrew Ozz
14d1e57e99
Enhance the editor on the Add/Edit Post screens, first run. Props avril, see #28328 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29049 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 22:05:06 +00:00
Sergey Biryukov
f92dc5aa41
Customizer: Export Previewer instance to wp.customize.previewer, and utilize for Widget Customizer.
...
props westonruter.
fixes #27666 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29048 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 20:57:58 +00:00
Helen Hou-Sandi
2a5fa0e4c5
Display plugin install results as "cards" rather than in a list table, first run.
...
props stephdau, ryelle, tellyworth, melchoyce. see #28785 , #28646 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29047 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 20:01:35 +00:00
John Blackbourn
a8fa7036aa
Revert [29033] pending further discussion. See #28319 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29046 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 19:18:44 +00:00
Andrew Nacin
adbe839132
WP_Comment_Query: Add fields => 'ids' query var.
...
props mordauk.
fixes #28434 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29045 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 18:15:42 +00:00
Scott Taylor
3cda5caafd
Revert [28563]. See #18298 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29044 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 18:06:54 +00:00
John Blackbourn
bdeb3348ed
Persist the "Remember Me" state of the auth cookie when changing your own password. Props jesin. Fixes #27627 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29043 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 18:05:00 +00:00
Helen Hou-Sandi
194122cb84
Remove an unused JS variable after [29036]. see #27406 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29042 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 17:45:36 +00:00
Helen Hou-Sandi
70639f7b90
Autoprefixer for [29040]. see #27440 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29041 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 17:41:00 +00:00
Helen Hou-Sandi
56706c324d
Improvements to the plugin information modal:
...
* Show the banner image when available.
* Show contributors and ratings breakdown in the FYI box.
* Show reviews in a tab.
props stephdau, tellyworth, paulwilde, michalzuber. see #27440 . fixes #19784 , #22599 , #26202 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29040 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 17:27:22 +00:00
John Blackbourn
b3e3684d21
Add support for a full path parameter to is_page()
and is_single()
. Props Jesper800, engelen, johnbillion. Fixes #16802 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29039 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-09 16:03:17 +00:00
Andrew Ozz
21cd1dffd9
TinyMCE wpView: remove leftover/unused bits, see #28567 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29038 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 22:55:51 +00:00
Drew Jaynes (DrewAPicture)
854fa2b5d6
Add @see
reference for set_post_thumbnail()
in the phpDoc for wp_ajax_set_attachment_thumbnail()
.
...
See #27891 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29037 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 20:35:53 +00:00
Helen Hou-Sandi
4e8a1a1ab1
accordion.js:
...
* Remove remnants from when some corners were rounded.
* Docs.
props celloexpressions. see #27406 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29036 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 20:21:47 +00:00
Helen Hou-Sandi
054e4b5e65
Customizer panels:
...
* Close all accordion sections when going in and out of panels.
* Fix panel positioning when top-level Customizer controls are scrolled down.
* Keyboard accessibility: only focus on visible elements and transfer between them as needed when navigating around panels.
props celloexpressions. see #27406 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29035 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 20:18:30 +00:00
Helen Hou-Sandi
d1c4c6fd6e
Customizer info section:
...
* Only show the theme info when doing a live preview of another theme.
* Replace with helper text about what you are customizing and what the Customizer is for.
* Fix focus styling.
props celloexpressions, westonruter. fixes #28550 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29034 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 19:52:17 +00:00
John Blackbourn
53fef65d65
Add a create_wp_error
action which is called when a WP_Error
instance is created. Fixes #28319 . Props ebinnion
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29033 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 18:46:56 +00:00
John Blackbourn
d9ba81155e
Remove autocomplete from the database password screen on setup-config.php. Props hebbet. Fixes #28585 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29032 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 18:31:21 +00:00
Helen Hou-Sandi
bfdd641013
More consistent icons in place of some buttons for the Customizer and theme install preview.
...
* Use a single close icon instead of a context-changing cancel/close button in the Customizer. In user testing, this small distinction in language was overlooked, and we use an AYS now instead. This also makes it consistent with the back arrow in Customizer panels.
* Use the same close icon as well as the previous/next arrows from the theme details browser in the theme install preview.
props celloexpressions. fixes #28655 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29031 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 18:18:23 +00:00
John Blackbourn
0a4e8b2b7e
Implement email and url input types where appropriate. Props Kau-Boy. Fixes #22183 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29030 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 17:51:58 +00:00
Scott Taylor
c6428ff1ba
When setting the poster image for a video shortcode, set that image as the featured image for that attachment (if found) in the background. This AJAX functionality could be used for audio as well.
...
Introduces `attachment_url_to_postid()` to attempt to turn URLs into post IDs.
Fixes #27891 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29029 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 17:47:53 +00:00
Sergey Biryukov
f0bde0c945
Use wp_hash() instead of AUTH_KEY in WP_Customize_Widgets::get_instance_hash_key().
...
props juliobox.
fixes #28783 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29028 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 17:16:26 +00:00
Scott Taylor
8ce7c39e44
Allow an array()
to be passed as the value for orderby
to WP_Query
. Allows for an independent order
value for each key.
...
Example: `'orderby' => array( 'title' => 'DESC', 'menu_order' => 'ASC' )`.
Adds docs and unit tests.
Props wonderboymusic, johnbillion, DrewAPicture, dd32, andy.
See #17065 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29027 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 17:15:53 +00:00
Helen Hou-Sandi
c722aca8e5
When accessing the Customizer from the admin menu, make sure the user is returned to the originating page upon close. We should still investigate the general usage of customize-loader.js
moving forward, but this approach fixes the immediate issue. props westonruter. fixes #25457 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29026 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 17:14:20 +00:00
Helen Hou-Sandi
0298f71032
Prompt the user before leaving the Customizer if they have unsaved changes. props westonruter. fixes #25439 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29025 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 17:03:48 +00:00
John Blackbourn
22147bfbfb
Pass the post object rather than the post ID between the post permalink functions. Fixes #28425 . Props arnee
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29024 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 15:47:20 +00:00
Andrew Ozz
aec52638b1
Pre-commit autoprefixer fixes for media-views.css
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29023 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 04:29:47 +00:00
Andrew Ozz
49352dbc89
TinyMCE wpView:
...
- Improve the fake caret hide/show.
- Improve getView() speed.
- Add callback for showing the proper path when a view is selected. This currently doesn't work, will start working after we update TinyMCE.
props avryl, see #28567 , #28595 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29022 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 04:15:00 +00:00
John Blackbourn
b72068ba06
Narrower layout and loading spinner for the install screen language selector. See #28577
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29021 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 00:32:29 +00:00
John Blackbourn
02a22f7dd4
Focus and blur styling (via JS) for the install screen language selector. Props jorbin. See #28577
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29020 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 00:29:47 +00:00
Andrew Ozz
40be2934d4
TinyMCE wpView:
...
- Add loadingPlaceholder() that returns some html to use as placeholder while the view is loading. Includes a subtle CSS based loading animation.
- Fix setContent(), it should empty the element before appending the new node.
- Change getHtml() to always return a string.
Fixes #28761 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29019 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-07 22:40:33 +00:00
Andrew Nacin
8f15bef515
Language on install: Docs and naming cleanups. see #28577 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29018 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-07 21:48:50 +00:00
Helen Hou-Sandi
e42b41d8f5
Remove some unnecessary empty space in the media library grid view. props adamsilverstein. see #24716 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29017 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-07 20:29:32 +00:00
John Blackbourn
1f51b720f0
Correct the usage of the variable passed to wp_install_download_language_pack()
and kill an unused local variable. Props michalzuber. Also avoid using the $_REQUEST
superglobal in this function. See #28577 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29016 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-07 18:05:13 +00:00
Drew Jaynes (DrewAPicture)
e862e3cf6d
Inline docs syntax fixes following [28978].
...
See #28740 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29015 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-07 16:41:43 +00:00
Sergey Biryukov
81487ec09a
Introduce 'rss_tag_pre' action, which fires between the xml and rss tags in a feed.
...
props solarissmoke, wonderboymusic, DrewAPicture.
fixes #19017 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29014 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-07 10:17:44 +00:00
Drew Jaynes (DrewAPicture)
0be40edabc
Fix inconsistent language in two function descriptions in wp-includes/functions.php.
...
Also adds correct coding standards to a code sample in `_deprecated_argument()`.
Props TobiasBg.
Fixes #26185 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29013 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-07 07:07:17 +00:00
Drew Jaynes (DrewAPicture)
1f5a5579a0
Add phpDoc blocks for two WP_oEmbed
methods added in [28846].
...
Fixes #28284 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29012 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-07 06:33:23 +00:00
Drew Jaynes (DrewAPicture)
2a07fc794e
General inline documentation improvements in wp-includes/functions.php.
...
Final run. Fixes #26185 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29011 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-07 06:18:05 +00:00
Andrew Ozz
f30a20c9a4
TinyMCE wpView:
...
- When a view is selected, pressing the up or down arrow key should move the caret to the block above or below the view.
- Selecting some text that touches the view and deleting it should not remove part of the view.
- Show/hide the "fake" carets on editor focus/blur.
- Don't create new paragraphs before or after a view on pressing the arrow keys or delete key. Paragraphs are created on pressing Enter.
Props avryl, see #28595 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29010 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-07 01:20:53 +00:00
Sergey Biryukov
c9f0cb6295
Clarify a string on Add New User screen.
...
props vancoder, collinsinternet.
fixes #27398 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29009 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-07 00:53:54 +00:00
Sergey Biryukov
b3695a587f
Exclude a newline between delimeters from further checks in wptexturize() for better performance.
...
props miqrogroove.
fixes #28724 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29008 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-06 08:49:25 +00:00
Andrew Nacin
a6ff9013be
Introduce wp_dropdown_languages() and use it on general settings.
...
Early rough cut. Obviously not fully implemented.
see #15677 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29007 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-05 06:18:50 +00:00
Andrew Nacin
277ada83d8
Bring the language chooser to setup-config.php.
...
see #28577 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29006 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-05 05:13:05 +00:00
Andrew Nacin
f25c1e989b
Don't include plugin.php twice in setup-config.php.
...
fixes #28744 . see #28740 , [28978].
git-svn-id: https://develop.svn.wordpress.org/trunk@29005 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-05 02:12:47 +00:00
Andrew Ozz
d12c520c5e
Remove debug remnants, see #28595
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29004 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-05 00:24:05 +00:00
Sergey Biryukov
4b9c7b3e1d
Add 'status-sticky' class in get_post_class() for sticky posts in the admin.
...
props mordauk, netweb.
fixes #22590 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29003 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-05 00:12:46 +00:00
Sergey Biryukov
c1c0693cee
Reinstate 'install_themes_tabs' filter.
...
props ghost1227.
fixes #28578 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29002 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 23:57:39 +00:00
Sergey Biryukov
359fe16c9c
Fix alignment of Advanced Options close toggle arrow in Edit Media dialog.
...
props paulwilde.
fixes #28752 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29001 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 23:37:48 +00:00
Sergey Biryukov
c10391dcbe
Fix a regression of positioning in Attachment Display Settings.
...
props paulwilde.
see #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29000 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 23:28:40 +00:00
Sergey Biryukov
fbda6f7c0a
Add is_customize_preview(), a conditional function to check if the site is being previewed in the Customizer.
...
props sammybeats, mattwiebe.
fixes #23509 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28999 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 16:16:46 +00:00
Scott Taylor
d075028201
Media Grid: JSHint fixes.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28998 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 05:13:46 +00:00
Scott Taylor
7438b91f6f
Media Grid: Use the proper attachment value for uploadedToTitle
.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28997 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 05:03:06 +00:00
wonderboymusic
9ba94b5c58
Media Grid: for audio and video files with covers, show that instead of the icon. The filename is still present with the extension to identify the type.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28996 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 04:59:01 +00:00
Scott Taylor
ee29246036
Make media grid text fields (data) toggle-able. Checking/unchecking is saved in user settings cookie.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28995 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 04:47:40 +00:00
Andrew Ozz
fdb58455f6
TinyMCE: improve the way wpViews work. Add two paragraphs and capture the caret in them on clicking before/after/left/right of a view or moving the caret with the arrow keys, then show a "fake" caret.
...
This makes it much more "natural" to move the caret with the arrow keys and to add paragraphs before a view when it is the first element or after a view when it's last.
Props avryl, see #28595 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28994 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 03:58:20 +00:00
Helen Hou-Sandi
e14d866665
Media grid, round 2. Expect much more to come.
...
* Instead of a sidebar for details, utilize a modal. The modal experience allows for a larger preview, editing images, audio/video previews, and previous/next navigation, like the theme browser. Think of it as an attachment browser.
* Show some details in the grid view to more easily distinguish items.
props ericlewis, wonderboymusic, JerrySarcastic. see #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28993 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 03:38:33 +00:00
Scott Taylor
9c314d1d00
Make a new file: media-grid.js
. This will be way more useful in later commits and help reduce churn and bloat in media-views.js
.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28992 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 02:17:22 +00:00
Scott Taylor
b67b45aaa2
The MCE view for galleries needs to read wp.media.galleryDefaults.columns
after [28990].
...
See #28693 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28991 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 02:05:22 +00:00
Scott Taylor
038dc75b66
Allow users to override default gallery settings in JS via wp_localize_script()
. This is already possible in PHP by filtering shortcode_atts_gallery
.
...
Fixes #28693 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28990 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 02:02:16 +00:00
Scott Taylor
f262fef790
Add more docs for media.view.MediaFrame.Select
methods.
...
Props ericlewis.
See #28459 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28989 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 01:42:27 +00:00
Scott Taylor
f8b878f8da
WP_Query::parse_tax_query()
has always been documented as protected
. Plugins should never have used it. However, it did not have a protected
access modifier, so its visibility was public
by default. If the access modifier had been present, accessing the method in a plugin would have produced a fatal error. The access modifier was added in [28523], along with magic methods to allow it to be accessed for BC. This one method is problematic because it expects to be passed a reference. The WP_Query::__call()
logic does not go out of its way to fix this signature discrepancy, and so a warning is thrown: Parameter 1 to WP_Query::parse_tax_query() expected to be a reference, value given
.
...
Remove the `protected` access modifier from `WP_Query::parse_tax_query()`.
Fixes #28739 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28987 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 01:28:02 +00:00
Scott Taylor
4e8afc6caa
Optimize regexp usage in wptexturize()
for a "3x Performance Boost."
...
Props miqrogroove.
See #28724 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28986 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 01:14:08 +00:00
Scott Taylor
4b58f47a5c
Add IE11 to the browser whitelist for MediaElement-based MCE views.
...
Props azaozz.
Fixes #28742 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28985 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-04 01:09:25 +00:00
John Blackbourn
4e3b729b09
If we already have a value for WPLANG when installing, insert this language at the top of the language selector and pre-select it. See #28577
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28984 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 22:55:57 +00:00
John Blackbourn
db8b7380b2
First pass at switching to radio inputs for the install screen language selector. Needs some more work. See #28577 . Props jorbin
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28983 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 22:53:01 +00:00
John Blackbourn
35578f8f9a
Avoid a warning if the translations API call fails on step 1. Remove assignment inside an if statement. See #28577 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28982 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 22:30:27 +00:00
Helen Hou-Sandi
71704c1156
Remove a toolbar CSS hack for a Chrome bug that no longer appears to exist. props avryl. fixes #28606 . see #18868 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28981 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 20:19:08 +00:00
Helen Hou-Sandi
6d8c6d8728
Don't escape customizer control descriptions, just as section descriptions are not escaped. These are set programmatically, not via user input. props tollmanz. fixes #27981 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28980 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 20:10:29 +00:00
Drew Jaynes (DrewAPicture)
79dd39c19c
Note in the hook docs for preview_post_link
that the $post
parameter was added.
...
See #28729 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28979 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 20:04:56 +00:00
Andrew Nacin
a7c3b23f1c
Simplify the setup-config.php UI flow and load process.
...
When no configuration file is detected, we now redirect to setup-config.php. This process now uses the WordPress bootstrap, rather than a set of fragile hacks.
fixes #28740 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28978 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 19:56:37 +00:00
Drew Jaynes (DrewAPicture)
26e262f93d
Clarify the inline documentation for plugins_url()
to reflect that it also works with mu-plugins.
...
Props ericlewis.
See #28499 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28977 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 19:41:23 +00:00
Drew Jaynes (DrewAPicture)
b1b454c7a0
Remove backticks on $post
variables in some short parameter descriptions.
...
See [28653], [28654].
See #28388 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28976 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 19:27:54 +00:00
Drew Jaynes (DrewAPicture)
7ffc91fdd6
Fix an incomplete docblock for wp_create_categories()
as part of $post/$post_id
cleanup.
...
See #28388 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28975 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 19:21:34 +00:00
John Blackbourn
c18a28f792
Use the admin scheme for theme preview URLs when installing new themes. See #21919 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28974 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 18:47:33 +00:00
John Blackbourn
14bfade4ec
Correct typo in sanitize_html_class()
docblock.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28973 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 16:57:17 +00:00
Helen Hou-Sandi
3adcda996b
Improve oEmbed caching. Introduces the concept of a TTL for oEmbed caches and a filter for oembed_ttl
.
...
We will no longer replace previously valid oEmbed responses with an `{{unknown}}` cache value. When this happens due to reaching a rate limit or a service going down, it is data loss, and is not acceptable. This means that oEmbed caches for a post are no longer deleted indiscriminately every time that post is saved.
oEmbed continues to be cached in post meta, with the addition of a separate meta key containing the timestamp of the last retrieval, which is used to avoid re-requesting a recently cached oEmbed response. By default, we consider a valued cached in the past day to be fresh. This can greatly reduce the number of outbound requests, especially in cases where a post containing multiple embeds is saved frequently.
The TTL used to determine whether or not to request a response can be filtered using `oembed_ttl`, thus allowing for the possibility of respecting the optional oEmbed response parameter `cache_age` or altering the period of time a cached value is considered to be fresh.
Now that oEmbeds are previewed in the visual editor as well as the media modal, oEmbed caches are often populated before a post is saved or published. By pre-populating and avoiding having to re-request that response, we also greatly reduce the chances of a stampede happening when a published post is visible before oEmbed caching is complete.
As it previously stood, a stampede was extremely likely to happen, as the AJAX caching was only triggered when `$_GET['message']` was 1. The published message is 6. We now trigger the caching every time `$_GET['message']` is present on the edit screen, as we are able to avoid triggering so many HTTP requests overall.
props markjaquith. fixes #14759 . see #17210 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28972 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 16:44:15 +00:00
Sergey Biryukov
ff3644a220
Fix texturization of quotes when enclosed by angle brackets.
...
props miqrogroove.
fixes #28718 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28971 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 16:21:18 +00:00
Sergey Biryukov
09efb2dab9
Prevent sending a 404 status when returning the response for the customize preview, since it causes the jQuery Ajax to fail. Send 200 instead.
...
props westonruter.
fixes #27992 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28970 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 16:10:01 +00:00
Sergey Biryukov
8bf7ed77f3
Pass $post object to 'preview_post_link' filter.
...
props danielbachhuber.
fixes #28729 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28969 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-03 14:41:06 +00:00
John Blackbourn
53f98b80b7
Prepend "Draft:" to draft post titles when previewing on the front end, and add a "single-status-$status" class to the body classes for all post statuses. Fixes #28006 . Props hlashbrooke
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28963 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 22:52:31 +00:00
Sergey Biryukov
4a480146c0
Avoing a PHP warning in media modal if the attached file does not exist.
...
props kovshenin.
see #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28959 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 14:36:29 +00:00
Sergey Biryukov
ec0e2beebb
Canonical redirects should only be applied for GET requests.
...
props c.axelsson.
fixes #27498 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28958 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 14:10:07 +00:00
SergeyBiryukov
57029ef3fb
Make default 'template' argument of the_taxonomies() and get_the_taxonomies() translatable.
...
props juliobox.
fixes #28714 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28957 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 13:20:02 +00:00
Sergey Biryukov
8ee9631bb4
Remove non-breaking spaces from auto update email text.
...
props trepmal.
fixes #28715 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28956 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 12:45:31 +00:00
Drew Jaynes (DrewAPicture)
2d9bba0a5c
Specify the $single
parameter default for get_post_meta()
. Docs spacing.
...
See #28708 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28955 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 03:29:33 +00:00
Sergey Biryukov
65106eff1f
Mark $single parameter of get_post_meta() as optional.
...
props netweb.
fixes #28708 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28954 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 03:25:28 +00:00
Drew Jaynes (DrewAPicture)
8e2098d706
Fix parameter description for $append
in wp_set_object_terms()
inline docs.
...
See #26570 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28952 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 01:38:22 +00:00
Sergey Biryukov
2ce93f915d
Clarify the docs and add more unit tests for wp_set_object_terms().
...
props DrewAPicture.
fixes #26570 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28951 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 01:27:07 +00:00
Drew Jaynes (DrewAPicture)
c6b8bae1e8
Remove duplicate of the 'oembed_providers' filter accidentally introduced in [28949].
...
Move annoted table of oEmbed providers into the existing filter docs.
See #28507 .
Fixes #28372 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28950 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 00:33:11 +00:00
Drew Jaynes (DrewAPicture)
0f20132801
Introduce an annotated list of oEmbed providers, their flavors, whether they support SSL, and when they were added to the oembed_providers
filter docs.
...
See #28507 .
Fixes #28372 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28949 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 00:18:12 +00:00
Sergey Biryukov
0d2817bf9e
Simplify a condition in get_sample_permalink_html().
...
see #28350 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28948 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 00:10:13 +00:00
Sergey Biryukov
3fe0336a63
Simplify logic in get_sample_permalink_html(), remove duplicated code.
...
see #28350 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28947 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-02 00:03:53 +00:00
Sergey Biryukov
7a8bedaf2a
Display a correct preview link for drafts when permalinks are disabled.
...
see #28350 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28946 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-01 23:55:58 +00:00
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
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  .
- 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
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
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
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)
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
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
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