• Hi

    Is’n this div nestled wrong?

    // Create HTML and return it
    $output = '
    	<figure' . $attributes .'><div>' .
    		do_shortcode( $content ) .
    		'<figcaption class="wp-caption-text">' . $attr['caption'] . '</div></figcaption>' .
    	'</figure>
    ';

    instead:

    // Create HTML and return it
    $output = '
    	<figure' . $attributes .'><div>' .
    		do_shortcode( $content ) .
    		'<figcaption class="wp-caption-text">' . $attr['caption'] . '</figcaption></div>' .
    	'</figure>
    ';

    https://ww.wp.xz.cn/plugins/pco-media-handler/

Viewing 1 replies (of 1 total)
  • Anonymous User

    (@anonymized-7837873)

    Hi. Sorry for the late replay. The div is nested fine. However, it would read better if the dix closed on the next line, in the same way it opens. I’ll improve that.

    A lot of things have happened since I wrote this plugin and several of the things it does are now core in WordPress like using figure and figcaption. In version 2.0 of the plugin this won’t be included.

Viewing 1 replies (of 1 total)

The topic ‘Nestled question’ is closed to new replies.