Skip to content
Permalink
Branch: master
Commits on Apr 17, 2019
  1. Docs: Add arguments passed by `wp_insert_site()` to `wp_initialize_si…

    jeremyfelt committed Apr 17, 2019
    …te()`.
    
    Props codemascot.
    Fixes #45061.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@45236 602fd350-edb4-49c9-b593-d223f7449a82
Commits on Mar 7, 2019
  1. Multisite: Fix code formatting errors from r44805

    jeremyfelt committed Mar 7, 2019
    See #46351.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44806 602fd350-edb4-49c9-b593-d223f7449a82
  2. Multisite: Ensure `wpmu_new_blog` hook receives expected data in `$me…

    jeremyfelt committed Mar 7, 2019
    …ta`.
    
    Restores `public`, `archived`, `mature`, `spam`, `deleted`, `lang_id`, and `WPLANG` to the `$meta` data passed to `wpmu_new_blog`. This hook was deprecated in 5.1.0, but code using it still relies on this data.
    
    Props david.binda, pbiron.
    Fixes #46351.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44805 602fd350-edb4-49c9-b593-d223f7449a82
Commits on Dec 19, 2018
  1. Build: Update images following [43684].

    jeremyfelt committed Dec 19, 2018
    `grunt-contrib-imagemin` was updated, which included some changes to image minification. Those changes are now applies.
    
    Merges [43785] from the 5.0 branch to trunk.
    
    Props netweb.
    See #45080.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44320 602fd350-edb4-49c9-b593-d223f7449a82
Commits on Dec 16, 2018
  1. Tests: Replace uses of `$this->server` with `rest_get_server()`.

    jeremyfelt committed Dec 16, 2018
    In [42724], `$this->server` was replaced with `rest_get_server()` for better memory recycling.
    
    [43862], from the 5.0 branch, was merged into trunk in [44225] and used the now unavailable `$this->server`.
    
    This updates the new tests from the 5.0 branch to use the expected `rest_get_server()`.
    
    See #45269, #41641.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44234 602fd350-edb4-49c9-b593-d223f7449a82
  2. Build Tools: Update `grunt-sass` to v3 and add `node-sass` v4.

    jeremyfelt committed Dec 16, 2018
    This fixes an error in the PHP 5.2 and 5.3 Travis builds after [44219].
    
    Props netweb.
    See #45241.
    Fixes #45664.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44233 602fd350-edb4-49c9-b593-d223f7449a82
  3. Formatting: Ensure `wpautop()` isn't run on content generated from bl…

    jeremyfelt committed Dec 16, 2018
    …ocks.
    
    As `do_blocks()` is run before `wpautop()` in the_content filter, we can remove in a Just In Time fashion, before that filter is run.
    
    After `wpautop()`s original priority has passed, we can re-add it in a Just Too Late fashion, to ensure it's available if `the_content` filter is run multiple times on a page load.
    
    Merges [43879] and [43881] from the 5.0 branch to trunk.
    
    Props pento, nerrad.
    Fixes #45290.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44226 602fd350-edb4-49c9-b593-d223f7449a82
  4. REST API: Prevent duplicate firing of `rest(_after)?_insert_attachmen…

    jeremyfelt committed Dec 16, 2018
    …t` actions.
    
    Merges [43862] from the 5.0 branch to trunk.
    
    Props danielbachhuber, peterwilsoncc.
    Fixes #45269.
    See #42864.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44225 602fd350-edb4-49c9-b593-d223f7449a82
  5. Editor: Cast the result of the `default_content`, `default_title`, an…

    jeremyfelt committed Dec 16, 2018
    …d `default_excerpt` filters.
    
    If a plugin returns a non-string value (or returns `null`) on these filters, it can cause errors in the block editor. Casting them as a string prevents these errors.
    
    Merges [43858] from the 5.0 branch to trunk.
    
    Props dd32.
    See #45236.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44224 602fd350-edb4-49c9-b593-d223f7449a82
  6. Block Editor: Remove CodeMirror settings.

    jeremyfelt committed Dec 16, 2018
    CodeMirror is no longer used in the block editor, so we don't need to load the settings.
    
    Merges [43857] from the 5.0 branch to trunk.
    
    Props noisysocks.
    Fixes #45248.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44223 602fd350-edb4-49c9-b593-d223f7449a82
  7. Block Editor: Don't show back compat or incompatible meta boxes in Op…

    jeremyfelt committed Dec 16, 2018
    …tions.
    
    Meta boxes that exist for back compat, or that are incompatible with the block editor aren't displayed, so they don't need an option to display or hide them in the Options dialog.
    
    Merges [43856] from the 5.0 branch to trunk.
    
    Props noisysocks.
    Fixes #45249.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44222 602fd350-edb4-49c9-b593-d223f7449a82
  8. Posts: Remove the slug from Quick Edit for posts that are not `is_pos…

    jeremyfelt committed Dec 16, 2018
    …t_type_viewable()`.
    
    This is a followup to [43728], which added the same check, but using the `publicly_queryable` option. This behaviour is incorrect for `_builtin` post types, which go by the logic in `is_post_type_viewable()`, instead.
    
    Merges [43855] from the 5.0 branch to trunk.
    
    Props pento.
    See #43278.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44221 602fd350-edb4-49c9-b593-d223f7449a82
  9. Blocks: Add "Export as JSON" action to the `wp_block` post list screen.

    jeremyfelt committed Dec 16, 2018
    Remove the "Quick Edit" for `wp_block`s, too, as they don't need any of that functionality.
    
    Merges [43854] from the 5.0 branch to trunk.
    
    Props noisysocks.
    Fixes #45247.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44220 602fd350-edb4-49c9-b593-d223f7449a82
  10. Build Tools: Switch to Node 10.13.0.

    jeremyfelt committed Dec 16, 2018
    Now that Node 10 is the LTS branch, with 10.13.0 as the first LTS release, let's use that for building WordPress.
    
    Merges [43853] from the 5.0 branch to trunk.
    
    Props pento.
    See #45241.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44219 602fd350-edb4-49c9-b593-d223f7449a82
  11. REST API: Regenerate fixure schema after introduction of new endpoints.

    jeremyfelt committed Dec 16, 2018
    This fixture schema ensures `wp-api-generated.js` doesn't change when running tests in local dev environments.
    
    Merges [43851] from the 5.0 branch to trunk. `wp-api-generated.js` generated based on current trunk.
    Props danielbachhuber.
    Fixes #45196.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44217 602fd350-edb4-49c9-b593-d223f7449a82
  12. REST API: Restore access to audio/video metadata functions.

    jeremyfelt committed Dec 16, 2018
    Ensures `wp_read_video_metadata()`/`wp_read_audio_metadata()` functions are available when uploading video and audio. Fixes error introduced in [43589].
    
    Merges [43850] from the 5.0 branch to trunk.
    
    Props ocean90.
    See #43757.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44216 602fd350-edb4-49c9-b593-d223f7449a82
  13. Block Editor: Fix meta boxes not showing.

    jeremyfelt committed Dec 16, 2018
    The block editor needs to duplicate the classic meta box behaviour, so it can extract the registered meta boxes, and import them into the block editor.
    
    To match the classic editor behaviour as closely as possible, this moves the relevant code from the classic editor, into a new function, so it can be called by both.
    
    Merges [43837] from the 5.0 branch to trunk.
    
    Props pento, peterwilsoncc.
    Fixes #45172.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44214 602fd350-edb4-49c9-b593-d223f7449a82
Commits on Dec 14, 2018
  1. REST API: Add endpoints for blocks.

    jeremyfelt committed Dec 14, 2018
    `WP_REST_Block_Renderer_Controller` allows rendering of server-side rendered blocks, whilst `WP_REST_Blocks_Controller` allows retrieving of reusable blocks.
    
    Merges [43805] and [43806] from the 5.0 branch to trunk.
    
    Props desrosj, danielbachhuber, pento, Presskopp, swissspidy.
    See #45065, #45098.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44150 602fd350-edb4-49c9-b593-d223f7449a82
  2. Blocks: Add the reusable block post type, `wp_block`.

    jeremyfelt committed Dec 14, 2018
    Merges [43804] from the 5.0 branch to trunk.
    
    See #45098.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44146 602fd350-edb4-49c9-b593-d223f7449a82
  3. Meta Boxes: Sync checks for valid meta boxes from `do_meta_boxes()` t…

    jeremyfelt committed Dec 14, 2018
    …o `the_block_editor_meta_boxes()`.
    
    Merges [43792] from the 5.0 branch to trunk.
    
    Props ocean90.
    See #45112.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44141 602fd350-edb4-49c9-b593-d223f7449a82
  4. Themes: Introduce responsive embeds support.

    jeremyfelt committed Dec 14, 2018
    Responsive embeds is a way for a theme to opt in to WordPress dynamically scaling the width/height of an embed. When a theme supports responsive embeds, a `wp-embed-responsive` class is added to the `<body>` tag. This information is also presented through the REST API for clients to respect.
    
    Merges [43790] and [43791] from the 5.0 branch to trunk.
    
    Props desrosj, danielbachhuber, ocean90.
    Fixes #45125.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44138 602fd350-edb4-49c9-b593-d223f7449a82
  5. Build: Ignore the vendor directory during the jsvalidate:build task.

    jeremyfelt committed Dec 14, 2018
    Merges [43783] from the 5.0 branch to trunk.
    
    Props netweb.
    Fixes #45119.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44135 602fd350-edb4-49c9-b593-d223f7449a82
  6. REST API: Render response in user locale with `?_locale=user`.

    jeremyfelt committed Dec 14, 2018
    Introduces new `determine_locale()` function for deciding the proper locale to use for a response. Default value is `get_user_locale()` in the admin, and `get_locale()` on the frontend. Because REST API requests are considered frontend requests, `?_locale=user` can be used to render the response in the user's locale.
    
    Also updates `wp-login.php?wp_lang` implementation to benefit from this abstraction.
    
    Merges [43776] from the 5.0 branch to trunk.
    
    Props flixos90, mnelson4, swissspidy, TimothyBlynJacobs.
    Fixes #44758.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44134 602fd350-edb4-49c9-b593-d223f7449a82
  7. REST API: Restore Autosaves controller test for multisite.

    jeremyfelt committed Dec 14, 2018
    PHPUnit 3.6.x requires `exclude` and `file` paths to be relative to the checkout root.
    
    PHPUnit 4.0.0+ requires the paths to be relative to the configuration file.
    
    Merges [43774] from the 5.0 branch to trunk.
    
    See #45131.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@44128 602fd350-edb4-49c9-b593-d223f7449a82
Commits on Dec 12, 2018
  1. REST API: Introduce themes endpoint to expose theme-supports values f…

    jeremyfelt committed Dec 12, 2018
    …or the active theme.
    
    In order to correctly render parts of its UI, the new editor needs to be aware of the active theme's post-formats and post-thumbnails support. This data is exposed by querying for the active theme on a new /wp/v2/themes endpoint for sufficiently privileged users.
    
    Merges [43734], [43735] to trunk.
    
    props desrosj.
    Fixes #45016.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@43985 602fd350-edb4-49c9-b593-d223f7449a82
  2. KSES: Add selected ARIA attributes support.

    jeremyfelt committed Dec 12, 2018
    Allow low-privileged users to use the ARIA attributes `aria-describedby`, `aria-details`, `aria-label`, `aria-labelledby` and `aria-hidden`.
    
    Merges [43731] to trunk.
    
    Props mattheu, swissspidy, rianrietveld, afercia, GaryJ.
    See #30421.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@43984 602fd350-edb4-49c9-b593-d223f7449a82
  3. Load: Disable PHP errors for JSON requests

    jeremyfelt committed Dec 12, 2018
    Because WP REST API requests aren't identified until `parse_request`, it's impractical to reference the `REST_REQUEST` constant in `wp_debug_mode()`. Instead, it's more helpful to assume that a request wanting a JSON response probably doesn't want PHP errors breaking the response.
    
    Merges [43730] to trunk.
    
    Props chrisl27, duanestorey, earnjam.
    Fixes #44534.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@43983 602fd350-edb4-49c9-b593-d223f7449a82
  4. REST API: Move object type-specific metadata integrations from the wr…

    jeremyfelt committed Dec 12, 2018
    …apper functions to the low-level Meta API functions.
    
    Object type-specific actions that should happen before or after modification of metadata have so far been part of the respective wrapper functions. By using action and filter hooks, this changeset ensures they are always executed, even when calling the lower-level Meta API functions directly, which the REST API does as a prime example.
    
    Merges [43729] to trunk.
    
    Props flixos90, spacedmonkey.
    Fixes #44467.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@43982 602fd350-edb4-49c9-b593-d223f7449a82
  5. KSES: Allow HTML data-* attributes.

    jeremyfelt committed Dec 12, 2018
    Add global support for HTML attributes prefixed `data-` for authors and contributors, as required by the new editor.
    
    Merges [43727] to trunk.
    
    Props azaozz, peterwilsoncc.
    Fixes #33121.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@43981 602fd350-edb4-49c9-b593-d223f7449a82
  6. REST API: Include permalink_template/generated_slug for Posts

    jeremyfelt committed Dec 12, 2018
    In order for clients to present permalink previews, the REST API must share the computed results of get_sample_permalink(). These two values are now exposed as permalink_template and generated_slug for public, viewable post types, but only for context=edit.
    
    Merges [43720] to trunk.
    
    Props danielbachhuber, rahulsprajapati.
    Fixes #45017.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@43980 602fd350-edb4-49c9-b593-d223f7449a82
Commits on Aug 29, 2018
  1. Multisite: Display registered `new_item` text for `post` post type in…

    jeremyfelt committed Aug 29, 2018
    … My Sites menu.
    
    Previously, the My Sites menu would show "New Post" even if the `post` post type labels had been filtered to different values.
    
    Props nahuelmahe.
    Fixes #44794.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@43590 602fd350-edb4-49c9-b593-d223f7449a82
Commits on Jun 8, 2018
  1. Build/Test Tools: Avoid running full PHPUnit test suite for every PHP…

    jeremyfelt committed Jun 8, 2018
    … file change.
    
    Use `grunt watch --phpunit --group={testgroup}` to start `grunt watch` with a specific test group so that PHP file changes trigger a limited number of tests.
    
    Props jeremyfelt, birgire for testing.
    Fixes #44240.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@43335 602fd350-edb4-49c9-b593-d223f7449a82
Commits on May 27, 2018
  1. Docs: Document globals in validate_another_blog_signup().

    jeremyfelt committed May 27, 2018
    Props mukesh27.
    Fixes #43594.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@43326 602fd350-edb4-49c9-b593-d223f7449a82
  2. Built/Test Tools: Increase grunt watch interval on all files.

    jeremyfelt committed May 27, 2018
    Significantly reduces Grunt's CPU usage when `grunt watch` is in an idle/watching state.
    
    Props netweb.
    Fixes #44241.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@43324 602fd350-edb4-49c9-b593-d223f7449a82
Commits on Mar 20, 2018
  1. Multisite: Return `WP_Site` as expected in `get_active_blog_for_user()`.

    jeremyfelt committed Mar 20, 2018
    Previously it was possible for a standard object representing the site to be returned in some cases.
    
    Fixes #38430.
    
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@42866 602fd350-edb4-49c9-b593-d223f7449a82
Older
You can’t perform that action at this time.