Commit Graph

32766 Commits

Author SHA1 Message Date
Sergey Biryukov 9b29cf2574 Remove assignments from conditions in `wp_get_attachment_image()` and `wp_img_add_srcset_and_sizes()`.
See #34379.

git-svn-id: https://develop.svn.wordpress.org/trunk@35402 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 16:28:27 +00:00
Sergey Biryukov 558984a8ab Docs: After [34453], correct inline comments in `wp_get_attachment_image_sizes()`.
Props jaspermdegroot.
Fixes #34453.

git-svn-id: https://develop.svn.wordpress.org/trunk@35401 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 16:16:52 +00:00
Sergey Biryukov 0dd41231fa Docs: After [35399], correct `$class` parameter type and description for `post_class` filter.
See #34452.

git-svn-id: https://develop.svn.wordpress.org/trunk@35400 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 15:11:53 +00:00
Sergey Biryukov d8ddd686d5 In `get_post_class()`, ensure that we always coerce the class list passed to the function to an array, even when it's empty.
This is consistent with `get_body_class()`, see [18176].

See #34452.

git-svn-id: https://develop.svn.wordpress.org/trunk@35399 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 15:08:47 +00:00
Sergey Biryukov 8a105470b4 Docs: Correct `$class` parameter type and description for `body_class` filter.
Props JPry.
Fixes #34452.

git-svn-id: https://develop.svn.wordpress.org/trunk@35398 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 15:02:53 +00:00
Sergey Biryukov ee4e4b8ff2 Embeds: Rename TinyMCE `wpoembed` plugin to `wpembed`.
Props swissspidy.
Fixes #34272.

git-svn-id: https://develop.svn.wordpress.org/trunk@35397 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 14:49:25 +00:00
Andrea Fercia fa29612530 Customizer: Remove the no more used `add-menu-item-loading` spinner.
Also makes more room for longer translations.

Props dipali.dhole27@gmail.com.
Fixes #34342.

git-svn-id: https://develop.svn.wordpress.org/trunk@35396 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 13:58:53 +00:00
Gary Pendergast 6d8ecd2fd6 Embeds: Move the embed iframe script to the footer, as it isn't being run until `DOMContentLoaded` is fired.
Props brainstormforce, pratikchaskar.

Fixes #344444.



git-svn-id: https://develop.svn.wordpress.org/trunk@35395 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 05:49:51 +00:00
Gary Pendergast 887e88d7d0 Docs: Fix a typo in the `print_embed_scripts()` function header.
Props brainstormforce.

Fixes #34445.



git-svn-id: https://develop.svn.wordpress.org/trunk@35394 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 05:18:48 +00:00
Drew Jaynes 95be0b747f Docs: Add missing DocBlocks for the `$type` and `$sidebar_id` properties, and summaries for the `to_json()` and `render_content()` methods in `WP_Widget_Area_Customize_Control`.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@35393 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-25 19:57:46 +00:00
Sergey Biryukov ab7d3bd104 Post 4.4-beta1 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@35392 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-25 15:18:03 +00:00
Andrea Fercia 07041ae87c Customizer: remove the `title` attribute from the Preview html element while loading.
Props mehulkaklotar.

Fixes #33250.

git-svn-id: https://develop.svn.wordpress.org/trunk@35391 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-25 15:13:32 +00:00
Scott Taylor 1836e14bf2 Fix the `@author` doc param encoding in `Text/Diff/Engine/string` so the file is recognized as UTF-8, not ISO-8859-1.
git-svn-id: https://develop.svn.wordpress.org/trunk@35390 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-24 22:44:36 +00:00
Scott Taylor b4c270030f Customize: move `WP_Customize_Control` subclasses to `wp-includes/customize`, they load in the exact same place.
See #34432.


git-svn-id: https://develop.svn.wordpress.org/trunk@35389 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-24 18:56:07 +00:00
Dominik Schilling (ocean90) 707cc2ae9e Use correct placeholders for translator comments added in [35303].
See #31078.

git-svn-id: https://develop.svn.wordpress.org/trunk@35388 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-24 18:49:11 +00:00
Drew Jaynes 62b00c70cc Docs: Add a version to the file header for wp-admin/includes/revision.php.
See #33701.


git-svn-id: https://develop.svn.wordpress.org/trunk@35387 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-24 18:28:10 +00:00
Scott Taylor c43245e29d Customize: move `WP_Customize_Panel` subclass to `wp-includes/customize`, it loads in the exact same place.
See #34432.


git-svn-id: https://develop.svn.wordpress.org/trunk@35386 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-24 18:24:21 +00:00
Scott Taylor 625514655e Customize: move `WP_Customize_Section` subclasses to `wp-includes/customize`, they load in the exact same place.
See #34432.


git-svn-id: https://develop.svn.wordpress.org/trunk@35385 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-24 18:20:25 +00:00
Sergey Biryukov 9f0076436b Editor: After [33927], make sure `user_can_richedit()` returns true for Microsoft Edge.
Props usermrpapa.
Fixes #34431.

git-svn-id: https://develop.svn.wordpress.org/trunk@35384 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-24 18:12:10 +00:00
Scott Taylor 8541ba7907 Customize: move `WP_Customize_Setting` subclasses to `wp-includes/customize`, they load in the exact same place.
See #34432.


git-svn-id: https://develop.svn.wordpress.org/trunk@35383 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-24 18:10:17 +00:00
Scott Taylor a18feed6bd Nav Menus: show custom post type Archive item at the top of the `View All` tab for the post type on the legacy Nav Menu screen.
Props aaroncampbell, DrewAPicture, seanchayes, hlashbrooke, paulwilde, ericlewis, raulillana
See #16075.


git-svn-id: https://develop.svn.wordpress.org/trunk@35382 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-24 17:45:11 +00:00
Sergey Biryukov a97bf5b2ca Docs: Change variable name in `WP_Customize_Widgets::filter_customize_dynamic_setting_args()` DocBlock to match the actual variable.
Props mismith227, swissspidy.
Fixes #34426.

git-svn-id: https://develop.svn.wordpress.org/trunk@35381 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-24 14:41:19 +00:00
Sergey Biryukov 9da02a9155 Remove unused variable in `_WP_Editors::editor()`.
Props Athsear.
Fixes #34427.

git-svn-id: https://develop.svn.wordpress.org/trunk@35380 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-24 14:31:05 +00:00
Sergey Biryukov a001771ec4 Site Icon: Introduce `get_site_icon_url` filter for the icon URL.
Remove `oembed_site_icon_url` filter added in [34903].

Props swissspidy.
Fixes #34411.

git-svn-id: https://develop.svn.wordpress.org/trunk@35379 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 21:16:30 +00:00
Andrew Ozz 2c1f21190d Responsive Images: fix typo in r35358.
Props aduth.
See #34341.

git-svn-id: https://develop.svn.wordpress.org/trunk@35378 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 17:37:35 +00:00
Sergey Biryukov fd19ba9cde After [34891] and [35376], add new labels to changelog entries.
Props afercia.
Fixes #32147.

git-svn-id: https://develop.svn.wordpress.org/trunk@35377 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 16:53:29 +00:00
Sergey Biryukov c7cc7c44fe After [34891], rename new post type and taxonomy label keys to match the default strings.
See #32147.

git-svn-id: https://develop.svn.wordpress.org/trunk@35376 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 16:47:57 +00:00
Drew Jaynes 46ae6f1892 Docs: Syntax fixes for deprecating `WP_Http::parse_url()`.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@35375 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 15:42:51 +00:00
Sergey Biryukov d842c03e02 Docs: Correct the type and description of `$post` parameter passed to the `attachment_fields_to_save` filter.
Props swissspidy.
Fixes #34404.

git-svn-id: https://develop.svn.wordpress.org/trunk@35374 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 13:00:11 +00:00
Sergey Biryukov bcb1e8eda2 Docs: Use consistent naming and capitalization of menu names in `add_submenu_page()` wrappers.
Props atomicjack, Mckilem.
Fixes #34360.

git-svn-id: https://develop.svn.wordpress.org/trunk@35373 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 12:01:11 +00:00
Sergey Biryukov f8fa5c0e53 In `WP_Locale::init()`, replace space as a thousands separator with a non-breaking space.
Also replace `'&nbsp;` and `&#160;` HTML entities with the actual character, since PHP < 5.4.0 does not allow multiple bytes to be used for decimal points or thousands separators.

Fixes #10373.

git-svn-id: https://develop.svn.wordpress.org/trunk@35372 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 11:50:37 +00:00
dd32 f935d4c26b Updates: Add a generic failure case to the ajax update endpoint for when the `WP_Error` value hasn't been found.
See #34403


git-svn-id: https://develop.svn.wordpress.org/trunk@35371 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 07:34:02 +00:00
Dion Hulse 8c33fe770e Use `wp_parse_url()` in `esc_url()` to avoid parsing bugs in < PHP 5.4.7.
Props johnbillion for unit tests
See #34408
Fixes #34202


git-svn-id: https://develop.svn.wordpress.org/trunk@35370 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 05:56:25 +00:00
Dion Hulse cacd015856 WP_HTTP: Promote the `WP_HTTP::parse_url()` method to a more generic `wp_parse_url()` function.
Fixes #34408


git-svn-id: https://develop.svn.wordpress.org/trunk@35369 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 05:53:05 +00:00
Dion Hulse 743fe671f1 Comments: Use a full URL rather than a relative one for links which can contain IPv6 addresses to avoid an issue where the URL was being eaten by escaping functions.
See #34407, #34202
Fixes #34054


git-svn-id: https://develop.svn.wordpress.org/trunk@35368 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 05:13:27 +00:00
Dion Hulse f70e623991 XMLRPC: Revert the changes to `WP_XMLRPC_UnitTestCase` in [35366] as they weren't required.
See #34336


git-svn-id: https://develop.svn.wordpress.org/trunk@35367 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 04:49:08 +00:00
Dion Hulse 75ab50c70e XMLRPC: Prevent authentication from occuring after a failed authentication attmept in any single XML-RPC call.
This hardens WordPress against a common vector which uses multiple user identifiers in a single `system.multicall` call. In the event that authentication fails, all following authentication attempts ''in that call'' will also fail.

Props dd32, johnbillion.
Fixes #34336


git-svn-id: https://develop.svn.wordpress.org/trunk@35366 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 04:45:10 +00:00
Dion Hulse 3a992e266f Update to Random_Compat 1.0.9.
This update includes fixes for Windows support & libSodium support, and removes the `Throwable` Polyfill due to PHP7 incompatibilities. 

Fixes #28633


git-svn-id: https://develop.svn.wordpress.org/trunk@35365 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 04:21:01 +00:00
Dion Hulse b89670b0f6 Update variable naming after [35279].
See #29957.


git-svn-id: https://develop.svn.wordpress.org/trunk@35364 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 02:00:21 +00:00
Aaron Jorbin 21b29ebf5e Bump grunt-contrib-jshint to 0.11.3
This bumps the included jshint to 2.8.0 from 2.6.0

See #34177




git-svn-id: https://develop.svn.wordpress.org/trunk@35363 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 01:09:03 +00:00
Scott Taylor a77a05447c 4.4-beta1
git-svn-id: https://develop.svn.wordpress.org/trunk@35362 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-22 21:44:57 +00:00
Scott Taylor c6354d6bfd Plugins: after [35151], set default `$restrict_network_*` values to prevent notices.
Props johnjamesjacoby.
Fixes #20104.


git-svn-id: https://develop.svn.wordpress.org/trunk@35361 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-22 19:55:30 +00:00
Scott Taylor 9aba8ef2aa Options: remove old 'gzipcompression' and 'advanced_edit' options.
Props chriscct7, solarissmoke.
Fixes #12996.


git-svn-id: https://develop.svn.wordpress.org/trunk@35360 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-22 19:48:38 +00:00
Drew Jaynes 68c5efb7f3 Docs: Add a proper file header to wp-admin/includes/continents-cities.php.
See #33701.


git-svn-id: https://develop.svn.wordpress.org/trunk@35359 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-22 19:42:23 +00:00
Andrew Ozz 5aa7a8ce78 Responsive Images: limit the size of images included in `srcset` attributes. Introduce `max_srcset_image_width` filter to adjust the limit.
Props joemcgill.
Fixes #34341.

git-svn-id: https://develop.svn.wordpress.org/trunk@35358 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-22 19:30:12 +00:00
Helen Hou-Sandi 7adf6e9125 List tables: Move the view mode switcher into screen options for posts.
Having a view mode switcher nestled within table navigation makes no sense, especially now that it's a sticky user option. While less convenient for frequent switching, there is no evidence as of yet that there is a large userbase of frequent view mode switchers.

Introduces a filter for `view_mode_post_types`, which by default is all hierarchical post types with edit UI on.

props Oxymoron.
fixes #22222.


git-svn-id: https://develop.svn.wordpress.org/trunk@35357 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-22 19:24:10 +00:00
Scott Taylor a37f75eb87 oEmbed: add Reddit Comments as a provider
Docs: https://github.com/reddit/reddit/wiki/oEmbed

Props swissspidy.
Fixes #31752.



git-svn-id: https://develop.svn.wordpress.org/trunk@35356 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-22 18:16:12 +00:00
Scott Taylor 6a3b784104 Media: in `wp_get_attachment_image_sizes()`, to streamline and for performance:
* Change the 3rd arg from `args` to `width`
* Change `wp_image_sizes_args` filter to `wp_get_attachment_image_sizes`

Updates unit tests.

Props joemcgill.
Fixes #34379.


git-svn-id: https://develop.svn.wordpress.org/trunk@35355 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-22 16:45:37 +00:00
Scott Taylor a19a0e6e72 oEmbed: if `SimpleXMLElement` does not exist, return an `HTTP Error 501 Not implemented` response.
Props swissspidy.
Fixes #34274.


git-svn-id: https://develop.svn.wordpress.org/trunk@35354 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-22 16:37:31 +00:00
Scott Taylor ff49cc7ebf REST API: don't load `wp-admin/includes/admin.php` on every request.
Props swissspidy.
Fixes #34395.


git-svn-id: https://develop.svn.wordpress.org/trunk@35353 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-22 16:28:40 +00:00