WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #23280


Ignore:
Timestamp:
02/21/2014 10:59:44 AM (6 years ago)
Author:
ocean90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23280 – Description

    v2 v3  
    3939
    4040{{{
    41 return '<div>' . do_shortcode($text) . '</div>';
     41add_shortcode( 'div', function( $atts, $content ) {
     42        return '<div>' . do_shortcode( $content ) . '</div>';
     43} );
    4244}}}
    4345