[wp-meta] [Making WordPress.org] #2622: Plugin Directory: Markdown code not being honored
Making WordPress.org
noreply at wordpress.org
Tue Mar 28 23:10:48 UTC 2017
#2622: Plugin Directory: Markdown code not being honored
------------------------------+-------------------------------------------
Reporter: Ipstenu | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Plugin Directory v3 - Future
Component: Plugin Directory | Resolution:
Keywords: needs-patch |
------------------------------+-------------------------------------------
Comment (by dd32):
For reference, here's some code which should work (but isn't right now):
{{{
$text = '<pre><code><div id="widget-row-{number}" class="widget-
row">
<div class="wrap">
[my widgets...]
</div>
</div>
</code></pre>';
$allowed = array(
'a' => array(
'href' => true,
'title' => true,
'rel' => true,
),
'blockquote' => array(
'cite' => true
),
'br' => true, 'p' => true,
'code' => true, 'pre' => true,
'em' => true, 'strong' => true,
'ul' => true, 'ol' => true,
'dl' => true, 'dt' => true, 'dd'
=> true,
'li' => true, 'h3' => true, 'h4'
=> true,
);
$text = wp_kses( $text, $allowed );
var_dump( $text );
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2622#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list