Scott Taylor
bbfdf38a5b
Make audio and video URLs/embed handlers work in <iframe>
-sandbox'd MCE views.
...
Introduce:
`get_editor_stylesheets()`
`wp_media_mce_styles()`.
See #28905 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29176 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-15 21:50:41 +00:00
Helen Hou-Sandi
0db107498a
No-JS fallback for the Media Library grid view. props michalzuber. fixes #28830 , see #24716 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29175 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-15 20:44:38 +00:00
Lance Willett
a9f6a727eb
Twenty Fourteen: optimize featured content lookup to reduce the number of queries for featured posts. Props Chouby and obenland, closes #26744 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29174 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-15 06:43:31 +00:00
Dominik Schilling (ocean90)
4d6759dcf5
Remove unused variable in WP_Theme_Install_List_Table::install_theme_info()
. Unused since [26380].
...
props Corphi.
fixes #28749 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29173 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 20:27:37 +00:00
Dominik Schilling (ocean90)
cf673a6985
Fix wrong indentation in [29136].
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29172 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 20:08:38 +00:00
Dominik Schilling (ocean90)
1b2386e787
Remove plugin_install_details_link
filter, which was added in [29047].
...
see #28785 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29171 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 19:49:15 +00:00
Dominik Schilling (ocean90)
60b1befd8e
Customizer: Add meta capability customize
which is mapped to edit_theme_options
.
...
You can now allow users to access the Customizer, say for any user who can `edit_posts`, via `map_meta_cap` or `user_has_cap` filter. See ticket for examples.
props westonruter, nacin.
fixes #28605 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29170 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 19:00:24 +00:00
Lance Willett
305e72859a
Twenty Fourteen: pinking shears.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29169 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 17:48:48 +00:00
Lance Willett
6b86010ec2
Twenty Fourteen: improve styles for media "play" button. Props iamtakashi, closes #26469 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29168 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 17:47:36 +00:00
Lance Willett
4024ffdabc
Twenty Fourteen: RTL display adjustment for Custom Header, props yoavf. Fixes #28670 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29167 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 17:40:07 +00:00
Scott Taylor
e5a663297c
Missed one: WP_MS_Sites_List_Table::display_rows()
must be public
.
...
Props extendwings.
Fixes #28894 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29166 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 15:41:53 +00:00
Drew Jaynes (DrewAPicture)
7ad77d58ee
Add periods to short descriptions for magic methods added in [28501], [28521], and [28524].
...
See #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29165 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 01:11:55 +00:00
Drew Jaynes (DrewAPicture)
a752c42b05
Inline documentation cleanup for 4.0 audit.
...
Added in [28652]:
* Various phpDoc improvements for `wp_embed_handler_youtube()`
* Adds `@see` reference to `wp_embed_handler_youtube()` in 'wp_embed_handler_youtube' filter docs
Added in [29029]:
* s/post_id/post ID in `@return` description for `attachment_url_to_postid()`
See #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29164 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 01:06:58 +00:00
Drew Jaynes (DrewAPicture)
551f829c55
Inline documentation cleanup for 4.0 audit.
...
Various improvements:
* Adds `@see` reference for `wp_list_comments()` in 'wp_list_comments_args' filter docs, added in [28285]
* Various phpDoc tweaks for the 'run_wptexturize' filter docs, added in [28715]
* Sentence and wrapping changes for `is_https_url()`, added in [28894]
* Documents the `$args` parameter for `wp_dropdown_languages()`, added in [29007]
* Adds a period to the parameter description for `_update_posts_count_on_delete()`, added in [28835]
* Documents a global in `is_customize_preview()`, added in [28999]
* phpDoc tweaks, adds an access modifier for `wpdb::esc_like()`, added in [28711]
See #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29163 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 01:01:22 +00:00
Drew Jaynes (DrewAPicture)
94d5e7b388
Fill out inline documentation for the __call()
magic method added to the WP_Comment_Query
class in [28519].
...
See #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29162 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:47:36 +00:00
Drew Jaynes (DrewAPicture)
2d27b684fb
Fill out inline documentation for the __call()
magic method added to the wp_xmlrpc_server
class in [28515].
...
See #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29161 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:45:54 +00:00
Drew Jaynes (DrewAPicture)
1a2da86366
Inline documentation cleanup for 4.0 audit.
...
Document the first parameter, `$time`, in the 'oembed_ttl' filter, added in [28972].
See #14759 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29160 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:43:51 +00:00
Drew Jaynes (DrewAPicture)
17ba9ab973
Inline documentation cleanup for 4.0 audit.
...
phpDoc tweaks for methods, properties, and filters added in [29051]:
* `WP_Customize_Widgets::is_widget_rendered()` method
* `WP_Customize_Widgets::is_sidebar_rendered()` method
See #27993 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29159 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:41:20 +00:00
Drew Jaynes (DrewAPicture)
37a39b6b74
Inline documentation cleanup for 4.0 audit.
...
phpDoc tweaks for methods added in [28861]:
* `WP_Customize_Panel` constructor method
* `WP_Customize_Panel::render()` method
See #27406 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29158 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:39:10 +00:00
Drew Jaynes (DrewAPicture)
f6c14d758e
Inline documentation cleanup for 4.0 audit.
...
phpDoc tweaks for methods added in [28861]:
* `WP_Customize_Manager::panels()` method
* `WP_Customize_Manager::add_panel()` method
* `WP_Customize_Manager::get_panel()` method
* `WP_Customize_Manager::remove_panel()` method
Added in [28970]:
* `WP_Customize_Manager::customize_preview_override_404_status()` method
See #27406 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29157 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:35:43 +00:00
Drew Jaynes (DrewAPicture)
e52c954fad
Inline documentation cleanup for 4.0 audit.
...
phpDoc tweaks for methods, properties, and filters added in [29051]:
* `WP_Customize_Control->$active_callback` property
* `WP_Customize_Control::active()` method
* `WP_Customize_Control::active_callback()` method
* `WP_Widget_Area_Customize_Control::active_callback()` method
* `WP_Widget_Form_Customize_Control::active_callback()` method
* 'customize_control_active' filter
Added in [28930]:
* `WP_Customize_Control::input_attrs()` method
See #27993 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29156 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:31:22 +00:00
Drew Jaynes (DrewAPicture)
e68fd93be4
Inline documentation cleanup for 4.0 audit.
...
* Fill out inline documentation for the `__call()` magic method added in [28507]
* Inline documentation tweaks for `get_provider()`, added in [28728]
* Inline documentation tweaks for `_add_provider_early()`, added in [28846]
* `@access` tag added for `_remove_provider_early()`, added in [28846]
See #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29155 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:22:18 +00:00
Drew Jaynes (DrewAPicture)
e58a2aae1d
Inline documentation cleanup for 4.0 audit.
...
* phpDoc tweaks for `wp_get_available_translations_from_api()`, `wp_install_download_language_pack()`, and `wp_install_load_language()`, added in [29018]
See #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29154 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:16:36 +00:00
Drew Jaynes (DrewAPicture)
34edad1645
Fill out inline documentation for the __call()
magic method added to the WP_Roles
class in [28503].
...
See #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29153 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:11:39 +00:00
Drew Jaynes (DrewAPicture)
f77584ea2c
Inline documentation for the 'plugin_install_details_link' hook added in [29047] should use a 3-digit, x.x.x-style @since
version.
...
See #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29152 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:09:58 +00:00
Drew Jaynes (DrewAPicture)
08fd193850
Inline documentation cleanup for 4.0 audit.
...
* Alignment for the 'term_search_min_chars' hook docs, added in [28892]
* Globals added for `wp_ajax_parse_embed()`, added [28580]
See #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29151 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-14 00:05:37 +00:00
Drew Jaynes (DrewAPicture)
49fdc296ba
Fill out inline documentation for magic methods added to the Custom_Image_Header
class in [28481], [28521], and [28524].
...
See #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29150 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:58:27 +00:00
Drew Jaynes (DrewAPicture)
1db583af25
Fill out inline documentation for magic methods added to the Custom_Background
class in [28481], [28521], and [28524].
...
See #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29149 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:57:03 +00:00
Drew Jaynes (DrewAPicture)
1bf87b2c9e
Fill out inline documentation for magic methods added to the WP_List_Table
class in [28493], [28521], and [28524].
...
See #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29148 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:54:15 +00:00
Drew Jaynes (DrewAPicture)
343c544f6b
Fill out inline documentation for magic methods added to the WP_Filesystem_Base
class in [28521].
...
See #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29147 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:51:39 +00:00
Drew Jaynes (DrewAPicture)
d7ff96d00f
Fill out inline documentation for magic methods added to the WP_Object_Cache
class in [28502], [28521], [28524].
...
See #27881 , #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29146 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:45:11 +00:00
Drew Jaynes (DrewAPicture)
e9e796d230
Fill out inline documentation for magic methods added to the WP_Ajax_Response
class in [28524].
...
See #27881 , #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29145 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:43:18 +00:00
Drew Jaynes (DrewAPicture)
144542362f
Fill out inline documentation for magic methods added to the WP_Error
class in [28511].
...
See #27881 , #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29144 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:41:50 +00:00
Drew Jaynes (DrewAPicture)
930db4b518
Fill out inline documentation for magic methods added to the Walker
class in [28514].
...
See #27881 , #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29143 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:40:14 +00:00
Drew Jaynes (DrewAPicture)
77467c3095
Fill out inline documentation for magic methods added to the WP_MatchesMapRegex
class in [28516].
...
See #27881 , #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29142 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:38:55 +00:00
Drew Jaynes (DrewAPicture)
1850b9a60a
Fill out inline documentation for magic methods added to the WP_Query
class in [28523].
...
See #27881 , #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29141 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:35:52 +00:00
Drew Jaynes (DrewAPicture)
844efdf398
Fill out inline documentation for magic methods added to the WP_User_Query
class in [28528].
...
See #27881 , #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29140 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:34:01 +00:00
Drew Jaynes (DrewAPicture)
88ca644228
Fill out inline documentation for magic methods added to the WP_Text_Diff_Renderer_Table
class in [28525].
...
See #27881 , #22234 and #28885 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29139 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 23:31:55 +00:00
Andrew Nacin
8934fa3dad
4.0-beta1-29138.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29138 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 22:10:54 +00:00
Scott Taylor
510ad2e1e9
Fix mismatches in access modifiers for WP_List_Table
+ subclasses.
...
Fixes #28843 , #28879 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29137 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 22:08:22 +00:00
Dominik Schilling (ocean90)
1264558022
Media Grid improvements:
...
* Remove fixed elements.
* Adjusts toolbar and search, fixes #28833 .
* Add link to Add New button, fixes #28825 .
* Add "Edit Metadata" tab to all items, "Edit Image" only for images
* Make strings translatable.
* First pass for help tab.
see #28850 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29136 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 16:15:36 +00:00
Dominik Schilling (ocean90)
cf0e666184
Customizer: Make panel title translatable too.
...
props michalzuber.
see #27406 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29135 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 15:12:00 +00:00
Dominik Schilling (ocean90)
33db0d4ff2
Lists View Switcher: Replace blank image with screen reader text.
...
props davidakennedy.
fixes #28871 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29133 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 11:04:21 +00:00
Dominik Schilling (ocean90)
d5eca1c19f
Customizer: Make screen reader text translatable.
...
see #27406 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29132 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 10:53:45 +00:00
Dominik Schilling (ocean90)
39fe2b445c
Media Grid: Remove CSS transition from inline uploader.
...
props ericlewis.
fixes #28840 .
see #28851 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29131 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 10:43:32 +00:00
Dominik Schilling (ocean90)
d198c0bdd5
Remove unused variable in wp_dashboard_plugins_output()
. Unused since [26144].
...
props michalzuber.
see #28872 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29130 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 10:30:53 +00:00
Drew Jaynes (DrewAPicture)
6fb887a1e6
Add indentation for the hash notation missed in [29128].
...
See #28841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29129 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 04:17:10 +00:00
Drew Jaynes (DrewAPicture)
810aeb40d4
Convert default arguments documentation for get_terms()
into a hash notation.
...
See #28841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29128 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 04:14:39 +00:00
Andrew Ozz
9cc9f95cd2
TinyMCE wpView: better handling of the Enter key, props avryl, see #28595
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29127 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-13 00:33:58 +00:00
Andrew Ozz
c46233940f
TinyMCE wpView: fix selecting views on click, part props avryl, see #28595
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29126 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-12 22:50:19 +00:00
Dominik Schilling (ocean90)
1285d1450b
Improvements to the plugin information modal:
...
* Whitespace/braces cleanup for [29040].
* Reduce width of modal to 792px, which is the default banner size.
* Reduce banner height when screen height is smaller than 500px.
* Remove inline CSS.
* Re-use tab var in JS.
* Encode ampersands in links.
props avryl, michalzuber, ocean90.
see #27440 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29125 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-12 22:07:16 +00:00
Dominik Schilling (ocean90)
c7f2a54dc8
Themes: Don't set background color for the filter icon.
...
fixes #28860 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29124 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-12 19:48:24 +00:00
Sergey Biryukov
c52f02cc3f
Use correct ID for plugin search input label.
...
Make the search button name and ID consistent with the ones in WP_List_Table::search_box().
props joedolson.
fixes #28856 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29123 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-12 17:44:51 +00:00
Dominik Schilling (ocean90)
7580577e82
Don't use box shadow focus styling for widget arrows, see #28267 .
...
fixes #28834 .
props nvwd.
git-svn-id: https://develop.svn.wordpress.org/trunk@29122 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-12 15:46:27 +00:00
Dominik Schilling (ocean90)
911da56fe8
Improve styling of progress bar on wp-admin/media-new.php.
...
props Ipstenu for initial patch.
fixes #28838 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29121 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-12 14:51:30 +00:00
Scott Taylor
04b0ec782b
The 2nd argument to array_unique()
was added to PHP in 5.2.9, so don't use it. We have to use our own code to return unique terms when fields => all
in wp_get_object_terms()
.
...
See #28843 and [28583].
git-svn-id: https://develop.svn.wordpress.org/trunk@29119 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-12 03:53:34 +00:00
Scott Taylor
63cb20cc5a
Repent for our original OOP sins and doc blocks as pertains to access modifiers in List Table + subclasses.
...
Props SergeyBiryukov.
See #28843 and [28583].
git-svn-id: https://develop.svn.wordpress.org/trunk@29118 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-12 03:26:40 +00:00
Andrew Ozz
dbb367bee8
Editor scrolling: disable on mobile devices and hide the resize handle. See #28328 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29117 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-12 00:53:08 +00:00
Drew Jaynes (DrewAPicture)
d42f6c10af
Convert default arguments documentation for wp_insert_user()
into a hash notation.
...
See #28841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29116 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-12 00:20:14 +00:00
Drew Jaynes (DrewAPicture)
0cef622342
Convert default arguments documentation for wp_dropdown_users()
into a hash notation.
...
See #28841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29115 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-12 00:07:18 +00:00
John Blackbourn
a3d84ae66f
Update the oEmbed provider inline docs
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29114 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 23:38:01 +00:00
Drew Jaynes (DrewAPicture)
e347ef267d
Convert default arguments documentation for get_posts()
into a hash notation.
...
Props coffee2code for the initial patch.
See #28841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29113 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 23:33:33 +00:00
Drew Jaynes (DrewAPicture)
01350ad5a7
Convert default arguments documentation for wp_page_menu()
into a hash notation.
...
Props coffee2code for the initial patch/
See #28841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29112 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 23:12:42 +00:00
Drew Jaynes (DrewAPicture)
45464b4369
Convert default arguments documentation for get_bookmarks()
into a hash notation.
...
Props coffee2code for the initial patch.
See #28841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29111 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 23:02:51 +00:00
John Blackbourn
08f7b699f5
Add support for secure wordpress.tv embeds (thanks stephdau). See #28507 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29110 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 23:00:36 +00:00
Drew Jaynes (DrewAPicture)
3509d375f1
Add indentation for the hash notation missed in [29108].
...
See #28841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29109 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 22:58:08 +00:00
Drew Jaynes (DrewAPicture)
5ce6c92c26
Convert default arguments documentation for _walk_bookmarks()
and wp_list_bookmarks()
into hash notations.
...
Props coffee2code for the initial patch.
See #28841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29108 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 22:53:09 +00:00
Drew Jaynes (DrewAPicture)
9406ccb8c6
Convert default arguments documentation for WP_Http_Cookie::__construct() into a hash notation.
...
Props coffee2code for the initial patch.
See #28841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29107 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 22:49:50 +00:00
Scott Taylor
8dddb7334f
Media Grid, for audio files: show Bitrate in the Edit Attachments modal a la the Edit Post screen.
...
See #28839 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29106 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 21:55:24 +00:00
Scott Taylor
16a70197ed
In the Post/Select frames, for audio files:
...
* Show `artist` and `album` fields in the Attachment Details sidebar
* Sync their values on `change`
See #28839 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29105 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 21:01:08 +00:00
Scott Taylor
d1f4b3a800
Media Grid, for audio files:
...
* Show `artist` and `album` fields in the Edit Attachment modal
* Sync their values on `change`
See #28839 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29104 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 20:54:13 +00:00
Dominik Schilling (ocean90)
0e2dafc159
Customizer: Use theme support defaults for background images.
...
props philipjohn.
fixes #28586 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29103 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 20:26:55 +00:00
Dominik Schilling (ocean90)
c12d10d0b9
Add missing filter doc, see [29043].
...
see #27627 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29102 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 19:23:25 +00:00
Lance Willett
26faa2ab08
Twenty Fourteen: fix a display issue in screen sizes over 846 pixels where a post's featured image covers the post meta of the post above.
...
Props kraftbj and obenland, fixes #28649 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29101 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 19:23:22 +00:00
Lance Willett
0248087936
Twenty Fourteen: fix header display on multisite signup and activate views. Fixes #28573 , props slobodanmanic.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29100 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 19:03:28 +00:00
Sergey Biryukov
8a45aefe56
Escape taxonomy name when used in attributes in post_categories_meta_box().
...
props pbearne.
fixes #28836 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29099 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 18:55:48 +00:00
Scott Taylor
effde9e96b
Media Grid: after [29085], also handle MEDIA_TRASH
.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29098 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 18:49:12 +00:00
Drew Jaynes (DrewAPicture)
f498128aa9
Fix syntax for inline comment line endings and a few line wraps in wp-includes/post.php inline documentation.
...
Fixes #25412 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29097 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 18:34:36 +00:00
Lance Willett
ebbb1684bf
Twenty Fourteen: more graceful handling of super-long site titles in small screens: add an ellipsis and adjust max-width
more carefully.
...
Props celloexpressions, schoenwaldnils, and obenland -- fixes #28237 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29096 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 18:00:28 +00:00
Lance Willett
b8340bc9bc
Twenty Twelve: make small-screen menu accessible to keyboard commands and voice-driven software by using a focusable button element rather than h3
for the toggle element. Fixes #28224 , props rclations.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29095 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 17:46:11 +00:00
Drew Jaynes (DrewAPicture)
93130f6a29
General inline documentation improvements in wp-includes/post.php.
...
Final-run. Fixes #25412 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29094 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 11:15:49 +00:00
Drew Jaynes (DrewAPicture)
51e97631f8
General inline documentation improvements in wp-includes/post.php.
...
Third-run. See #25412 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29093 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 10:27:02 +00:00
Drew Jaynes (DrewAPicture)
479b541dd1
General inline documentation improvements in wp-includes/post.php.
...
Second-run. See #25412 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29092 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 08:15:52 +00:00
Drew Jaynes (DrewAPicture)
628141afbf
Convert phpDoc for register_post_type()
to use a hash notation for the $args
array.
...
See #25412 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29091 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 07:55:38 +00:00
Drew Jaynes (DrewAPicture)
c7171e832d
General inline documentation improvements in wp-includes/post.php.
...
First-run. See #25412 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29090 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 07:00:38 +00:00
Scott Taylor
d75a332871
Media Grid:
...
* Don't store multiple references to the Edit Attachments frame.
* Fix keyboard navigation event delegation and proxy.
* Remove redundant function calls.
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29089 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 06:38:51 +00:00
Scott Taylor
0f50df6cbd
Media Grid, in the Edit Attachment modal:
...
* Label the fields under the attachment a la the Edit Media page
* Move the audio and video previews above the info
* Remove the audio / video icon display. Unnecessary.
* Ensure that `width` and `max-width` are set for `.mejs-container`
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29088 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 06:14:31 +00:00
Scott Taylor
aba2e372e0
Media Grid: "Add New" should open and close, not just open.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29087 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 05:43:26 +00:00
Scott Taylor
ce01c5c760
Media Grid:
...
* Move the grid down via CSS transition when the Screen Options slide open.
* Remove some unused CSS for grid options.
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29086 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 05:33:29 +00:00
Scott Taylor
e52c72c366
Media Grid:
...
* The "Edit Image" link in the attachment modal details is redundant.
* After an attachment is deleted in the modal, automatically move to the next attachment in the library. If there are no attachments left, close the modal.
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29085 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 05:21:04 +00:00
Scott Taylor
aab0ba36fc
Media Grid: fix z-index of attachment "check"
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29084 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 04:24:00 +00:00
Sergey Biryukov
d2a246e82c
Avoid inadvertently adding admin page titles as classes for admin menu submenu items.
...
fixes #28817 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29083 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-11 01:09:32 +00:00
Scott Taylor
ba7b26d37e
Media Grid: make the Uploader closable.
...
Props ericlewis.
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29082 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 23:05:05 +00:00
Scott Taylor
640422c206
Media Grid: while in Bulk Edit mode, any selected attachment should have the blue border, rather than just the last clicked one.
...
Props ericlewis.
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29081 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 23:02:51 +00:00
Scott Taylor
b31d654816
Media Grid: JSHint.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29080 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 21:58:10 +00:00
Scott Taylor
ee0e7ccbca
Media Grid: make registering Screen Options for non-list tables more generic.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29079 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 21:43:49 +00:00
Scott Taylor
d5cbf00457
Media Grid: Screen Options for grid have to play nice with Screen Options for list. This was fun.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29078 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 21:25:49 +00:00
Scott Taylor
3ebde0c4d6
Media Grid: Move toggling of visible fields to Screen Options. This moves us in a better direction... but this will probably need to be massaged again.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29077 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 20:59:12 +00:00
Scott Taylor
55acbf6e40
Media Grid: decouple the Grid and Edit modal frames. Next steps: we shouldn't have to reload the frame while paginating.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29076 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 19:38:56 +00:00
Helen Hou-Sandi
e4f0744b8e
Editor scrolling:
...
* Make sure the background color for tools is only applied to the main editor.
* Fix toolbar width for smaller screens.
* Ensure toolbar doesn't end up in a weird place when scrolling down too fast.
* Avoid JS errors for post types that don't support the editor.
props avryl. see #28328 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29075 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 19:35:32 +00:00
Scott Taylor
12204b379a
Media Grid: add disambiguation between generic frames and routers and the router specifically interacting with the grid's frame.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29074 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 18:42:15 +00:00
Scott Taylor
d45ed6a478
Media Grid: make the router work when ?item=
is in the URL on page load. This is still a hack, needs to be event-driven.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29073 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 18:24:23 +00:00
Scott Taylor
3c9fa4d68e
Media Grid: hasNext
and hasPrevious
are functions that must be called. Otherwise they are always truthy properties.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29072 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 18:09:46 +00:00
Scott Taylor
e8ce4559ed
Avoid JS errors after [29057]. This is not how _.debounce()
works.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29071 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 18:02:53 +00:00
Scott Taylor
5b6340a221
Avoid JS errors after [29057]. When the modal closes, reset the URL.
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29070 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 17:55:43 +00:00
Scott Taylor
f2e2f4c19c
Avoid JS errors after [29057].
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29069 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 17:50:49 +00:00
Scott Taylor
6d64d05018
Avoid JS errors after [29057].
...
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29068 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 17:48:09 +00:00
Scott Taylor
e91f5a7601
Media Grid, add padding to "No Media Found" message.
...
Props michalzuber.
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29067 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 17:30:35 +00:00
Scott Taylor
b11d095c7d
Media Grid, remove unnecessary abstraction: wp.media.controller._State
...
Props ericlewis.
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29066 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 16:01:49 +00:00
Scott Taylor
868d88800c
Media Grid: make the edit attachment icon clickable.
...
Props ericlewis.
See #24716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29065 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 15:55:21 +00:00
Sergey Biryukov
126b248fa0
is_active_widget() should skip orphaned widgets.
...
props Ninos Ego.
fixes #28810 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29064 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 15:48:54 +00:00
Peter Westwood
52aa1804e4
XMLRPC: Restore support in wp.newPost for dates to be supplied in the structured dateTime.iso8601 format as well as still supporting dates specified as strings.
...
Fixes #28601 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29063 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 14:16:20 +00:00
Helen Hou-Sandi
f9b9039b79
4.0-beta1.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29060 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 09:59:31 +00:00
Andrew Nacin
0838b61b1d
Unload the current default textdomain in wp_install_load_language().
...
see #28577 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29059 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-10 09:54:06 +00:00
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