Opened 6 years ago
Closed 6 years ago
#45125 closed feature request (fixed)
Add theme support for responsive embeds
Reported by: | desrosj | Owned by: | danielbachhuber |
---|---|---|---|
Milestone: | 5.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | has-patch has-unit-tests fixed-5.0 |
Focuses: | rest-api | Cc: |
Description
In the new editor, the concept of responsive embeds is introduced.
Relevant Issue: https://github.com/WordPress/gutenberg/issues/10109
Relevant PR: https://github.com/WordPress/gutenberg/pull/10477
WordPress Core should be updated to indicate this new theme feature.
Attachments (1)
Change History (13)
#2
@
6 years ago
- Focuses rest-api added; docs removed
- Keywords has-patch has-unit-tests needs-refresh added; needs-patch removed
45125.diff contains all responsive embed related code in Gutenberg, except:
- The admin body classes. This class is added along with several others but is dependant on
is_gutenberg_page()
, which will be one of the last things to be committed. - The
block-library
package needs to have its version bumped to2.1.2
. I am seeing the following error when runningnpm install
locally, currently:
Could not install from "node_modules/@wordpress/autop" as it does not contain a package.json file.
Also of note, I included the code modifying the themes REST API endpoint I originally posted on #45016. Going to note that there next.
This ticket was mentioned in Slack in #core-restapi by desrosj. View the logs.
6 years ago
This ticket was mentioned in Slack in #core-js by desrosj. View the logs.
6 years ago
This ticket was mentioned in Slack in #core-restapi by danielbachhuber. View the logs.
6 years ago
#7
@
6 years ago
- Keywords commit added; needs-refresh removed
Thanks, @swissspidy!
Looked through this again today. This can be landed.
The is_gutenberg_page()
function was added in [43777], and the needed body classes were committed in [43780].
The issue with packages was resolved, and the block-library
package now meets the minimum required version for this change (see [43789]).
Just noting that when this lands, the patch on #45134 will need to be refreshed.
#8
@
6 years ago
- Owner set to danielbachhuber
- Resolution set to fixed
- Status changed from new to closed
In 43790:
#9
@
6 years ago
- Keywords fixed-5.0 added; commit removed
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for merge to trunk.
@notnownikki The main item here is to update
add_theme_support()
to indicateresponsive-embeds
is an accepted value. It may also be appropriate to be accompanied by adev-note
, but it could also be noted within another post.