We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install Classic editor and add 2 same size images to a page. One with caption and one without
The figure element is given a inline width that is 10px undersize due to this function:
width
generatepress/inc/general.php
Lines 282 to 292 in 513d21a
Which is legacy function to fix the extra 10px addd to the figure by the img_caption_shortcode core function: But the extra 10px was removed here:
img_caption_shortcode
https://github.com/WordPress/wordpress-develop/blob/8338c630284124bbe79dc871822d6767e3b45f0b/src/wp-includes/media.php#L2427
For now users can remove the filter like so:
add_action('wp', function(){ remove_filter( 'img_caption_shortcode_width', 'generate_remove_caption_padding' ); });
But should we consider deprecating this ? Or leave it as is ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Install Classic editor and add 2 same size images to a page.
One with caption and one without
The figure element is given a inline
width
that is 10px undersize due to this function:generatepress/inc/general.php
Lines 282 to 292 in 513d21a
Which is legacy function to fix the extra 10px addd to the figure by the
img_caption_shortcode
core function:But the extra 10px was removed here:
https://github.com/WordPress/wordpress-develop/blob/8338c630284124bbe79dc871822d6767e3b45f0b/src/wp-includes/media.php#L2427
For now users can remove the filter like so:
But should we consider deprecating this ? Or leave it as is ?
The text was updated successfully, but these errors were encountered: