[wp-trac] [WordPress Trac] #35770: Shortcode fails with 4.4. It is working with 4.3
WordPress Trac
noreply at wordpress.org
Sun Feb 7 20:43:22 UTC 2016
#35770: Shortcode fails with 4.4. It is working with 4.3
--------------------------+-----------------------------
Reporter: dezio1900 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 4.4.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
It appears that only this shortcode fails. I am using WP 4.4.2
Shortcode source(real source is not important, because it fails with this
too):
{{{#!php
<?php
// CONTENT WITH IMAGE
add_shortcode( 'content_with_image', function( $atts,
$shortcode_content = '' ){
$options = shortcode_atts( array(
'image_position' => 'left',
'image_size' => 'medium',
'image_id' => '',
'image_link' => '',
'content_margin_top' => '0',
'title' => '',
'title_tag' => 'h3',
'allow_content_below_image' => 'no',
'margin' => '40px 0',
), $atts );
return 'shortcode content';
});
}}}
The shortcode is used this way:
{{{
[content_with_image image_position="left" image_id="198"
content_margin_top="0" title="EXPERIENCED GUIDES"
allow_content_below_image="no"]
Shortcode content
[/content_with_image]
}}}
So I had to overwrite /wp-includes/shortcodes.php with content from v4.3,
in order for shortcode to work again.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35770>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list