[wp-trac] [WordPress Trac] #34851: Flex Sizes In WP_Customize_Cropped_Image_Control Not Working
WordPress Trac
noreply at wordpress.org
Sat Dec 5 23:23:13 UTC 2015
#34851: Flex Sizes In WP_Customize_Cropped_Image_Control Not Working
-----------------------------+------------------------------
Reporter: stephen.punwasi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.3.1
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by stephen.punwasi):
{{{#!php
<?php
$wp_customize->add_setting('cropped_image');
$wp_customize->add_control( new WP_Customize_Cropped_Image_Control(
$wp_customize, 'cropped_image', array(
'section' => 'title_tagline',
'label' => __( 'Croppable Image' ),
'flex_width' => true,
'flex_height' => true,
'width' => 920,
'height' => 80,
) ) );
}}}
Code example tried with the twentyfifteen, just in cast I'm missing
something.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34851#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list