Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Responsive images #657

Merged
merged 9 commits into from
Mar 10, 2016
Merged

Responsive images #657

merged 9 commits into from
Mar 10, 2016

Conversation

olefredrik
Copy link
Owner

WordPress 4.4 responsive image support:

  • Remove the old and nasty image rebuilder code from cleanup.php
  • Switch default core markup for images to valid HTML5 (figure, figcaption)
  • Add different image sizes and switch according to viewport width
  • Hook up custom image sizes to media uploader in wp-admin (does only apply for new uploads)
  • Fix alignment classes (alignleft, alignright, aligncenter)

Here is some background information on responsive images in WordPress 4.4.

olefredrik added a commit that referenced this pull request Mar 10, 2016
@olefredrik olefredrik merged commit cd4ebb5 into master Mar 10, 2016
@olefredrik olefredrik deleted the responsiveImages branch March 10, 2016 10:38

// Register the new image sizes for use in the add media modal in wp-admin
add_filter( 'image_size_names_choose', 'wpshout_custom_sizes' );
function wpshout_custom_sizes( $sizes ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the code comes from this WPShout article but shouldn't custom function in the theme start with the same foundationpress_ rather than using wpshout_ from the article?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants