mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
"Align array keys in allowed HTML definitions for clarity.
Standardized indentation across the allowed HTML keys to improve readability and maintain consistency in the codebase. This change ensures better alignment, making it easier to navigate and understand the structure."
This commit is contained in:
+137
-17
@@ -548,13 +548,35 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
|||||||
break;
|
break;
|
||||||
case 'templates':
|
case 'templates':
|
||||||
$allowed_html = array(
|
$allowed_html = array(
|
||||||
'style' => array(),
|
'style' => array(),
|
||||||
'link' => array(
|
'link' => array(
|
||||||
'rel' => true,
|
'rel' => true,
|
||||||
'href' => true,
|
'href' => true,
|
||||||
'media' => true,
|
'media' => true,
|
||||||
),
|
),
|
||||||
'form' => array(
|
'svg' => array(
|
||||||
|
'xmlns' => true,
|
||||||
|
'height' => true,
|
||||||
|
'preserveaspectratio' => true,
|
||||||
|
'viewbox' => true,
|
||||||
|
'width' => true,
|
||||||
|
'x' => true,
|
||||||
|
'y' => true,
|
||||||
|
'fill' => true,
|
||||||
|
'stroke' => true,
|
||||||
|
'stroke-linecap' => true,
|
||||||
|
'stroke-linejoin' => true,
|
||||||
|
'stroke-width' => true,
|
||||||
|
),
|
||||||
|
'path' => array(
|
||||||
|
'd' => true,
|
||||||
|
'stroke' => true,
|
||||||
|
'stroke-width' => true,
|
||||||
|
'stroke-linecap' => true,
|
||||||
|
'stroke-linejoin' => true,
|
||||||
|
'fill' => true,
|
||||||
|
),
|
||||||
|
'form' => array(
|
||||||
'action' => true,
|
'action' => true,
|
||||||
'accept' => true,
|
'accept' => true,
|
||||||
'accept-charset' => true,
|
'accept-charset' => true,
|
||||||
@@ -562,11 +584,12 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
|||||||
'method' => true,
|
'method' => true,
|
||||||
'name' => true,
|
'name' => true,
|
||||||
'target' => true,
|
'target' => true,
|
||||||
|
'novalidate' => true,
|
||||||
),
|
),
|
||||||
'label' => array(
|
'label' => array(
|
||||||
'for' => true,
|
'for' => true,
|
||||||
),
|
),
|
||||||
'select' => array(
|
'select' => array(
|
||||||
'name' => true,
|
'name' => true,
|
||||||
'multiple' => true,
|
'multiple' => true,
|
||||||
'disabled' => true,
|
'disabled' => true,
|
||||||
@@ -574,12 +597,12 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
|||||||
'required' => true,
|
'required' => true,
|
||||||
'autocomplete' => true,
|
'autocomplete' => true,
|
||||||
),
|
),
|
||||||
'option' => array(
|
'option' => array(
|
||||||
'value' => true,
|
'value' => true,
|
||||||
'selected' => true,
|
'selected' => true,
|
||||||
'disabled' => true,
|
'disabled' => true,
|
||||||
),
|
),
|
||||||
'input' => array(
|
'input' => array(
|
||||||
'type' => true,
|
'type' => true,
|
||||||
'name' => true,
|
'name' => true,
|
||||||
'value' => true,
|
'value' => true,
|
||||||
@@ -598,7 +621,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
|||||||
'maxlength' => true,
|
'maxlength' => true,
|
||||||
'pattern' => true,
|
'pattern' => true,
|
||||||
),
|
),
|
||||||
'textarea' => array(
|
'textarea' => array(
|
||||||
'cols' => true,
|
'cols' => true,
|
||||||
'rows' => true,
|
'rows' => true,
|
||||||
'disabled' => true,
|
'disabled' => true,
|
||||||
@@ -606,8 +629,21 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
|||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'autocomplete' => true,
|
'autocomplete' => true,
|
||||||
|
'placeholder' => true,
|
||||||
),
|
),
|
||||||
'img' => array(
|
'button' => array(
|
||||||
|
'type' => true,
|
||||||
|
'name' => true,
|
||||||
|
'value' => true,
|
||||||
|
'placeholder' => true,
|
||||||
|
'readonly' => true,
|
||||||
|
'disabled' => true,
|
||||||
|
'checked' => true,
|
||||||
|
'selected' => true,
|
||||||
|
'required' => true,
|
||||||
|
'autocomplete' => true,
|
||||||
|
),
|
||||||
|
'img' => array(
|
||||||
'alt' => true,
|
'alt' => true,
|
||||||
'align' => true,
|
'align' => true,
|
||||||
'border' => true,
|
'border' => true,
|
||||||
@@ -621,26 +657,110 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
|||||||
'usemap' => true,
|
'usemap' => true,
|
||||||
'width' => true,
|
'width' => true,
|
||||||
),
|
),
|
||||||
'h1' => array(
|
'h1' => array(
|
||||||
'align' => true,
|
'align' => true,
|
||||||
),
|
),
|
||||||
'h2' => array(
|
'h2' => array(
|
||||||
'align' => true,
|
'align' => true,
|
||||||
),
|
),
|
||||||
'h3' => array(
|
'h3' => array(
|
||||||
'align' => true,
|
'align' => true,
|
||||||
),
|
),
|
||||||
'p' => array(
|
'h4' => array(
|
||||||
|
'align' => true,
|
||||||
|
),
|
||||||
|
'h5' => array(
|
||||||
|
'align' => true,
|
||||||
|
),
|
||||||
|
'h6' => array(
|
||||||
|
'align' => true,
|
||||||
|
),
|
||||||
|
'p' => array(
|
||||||
'align' => true,
|
'align' => true,
|
||||||
'dir' => true,
|
'dir' => true,
|
||||||
'lang' => true,
|
'lang' => true,
|
||||||
),
|
),
|
||||||
'ol' => array(),
|
'ol' => array(),
|
||||||
'ul' => array(),
|
'ul' => array(),
|
||||||
'li' => array(),
|
'li' => array(),
|
||||||
'time' => array(
|
'time' => array(
|
||||||
'datetime' => true,
|
'datetime' => true,
|
||||||
),
|
),
|
||||||
|
'section' => array(),
|
||||||
|
'table' => array(
|
||||||
|
'align' => true,
|
||||||
|
'bgcolor' => true,
|
||||||
|
'border' => true,
|
||||||
|
'cellpadding' => true,
|
||||||
|
'cellspacing' => true,
|
||||||
|
'dir' => true,
|
||||||
|
'rules' => true,
|
||||||
|
'summary' => true,
|
||||||
|
'width' => true,
|
||||||
|
),
|
||||||
|
'tbody' => array(
|
||||||
|
'align' => true,
|
||||||
|
'char' => true,
|
||||||
|
'charoff' => true,
|
||||||
|
'valign' => true,
|
||||||
|
),
|
||||||
|
'thead' => array(
|
||||||
|
'align' => true,
|
||||||
|
'char' => true,
|
||||||
|
'charoff' => true,
|
||||||
|
'valign' => true,
|
||||||
|
),
|
||||||
|
'th' => array(
|
||||||
|
'abbr' => true,
|
||||||
|
'align' => true,
|
||||||
|
'axis' => true,
|
||||||
|
'bgcolor' => true,
|
||||||
|
'char' => true,
|
||||||
|
'charoff' => true,
|
||||||
|
'colspan' => true,
|
||||||
|
'headers' => true,
|
||||||
|
'height' => true,
|
||||||
|
'nowrap' => true,
|
||||||
|
'rowspan' => true,
|
||||||
|
'scope' => true,
|
||||||
|
'valign' => true,
|
||||||
|
'width' => true,
|
||||||
|
),
|
||||||
|
'tr' => array(
|
||||||
|
'align' => true,
|
||||||
|
'bgcolor' => true,
|
||||||
|
'char' => true,
|
||||||
|
'charoff' => true,
|
||||||
|
'valign' => true,
|
||||||
|
),
|
||||||
|
'td' => array(
|
||||||
|
'abbr' => true,
|
||||||
|
'align' => true,
|
||||||
|
'axis' => true,
|
||||||
|
'bgcolor' => true,
|
||||||
|
'char' => true,
|
||||||
|
'charoff' => true,
|
||||||
|
'colspan' => true,
|
||||||
|
'dir' => true,
|
||||||
|
'headers' => true,
|
||||||
|
'height' => true,
|
||||||
|
'nowrap' => true,
|
||||||
|
'rowspan' => true,
|
||||||
|
'scope' => true,
|
||||||
|
'valign' => true,
|
||||||
|
'width' => true,
|
||||||
|
),
|
||||||
|
'tfoot' => array(
|
||||||
|
'align' => true,
|
||||||
|
'char' => true,
|
||||||
|
'charoff' => true,
|
||||||
|
'valign' => true,
|
||||||
|
),
|
||||||
|
'noscript' => array(),
|
||||||
|
'del' => array(),
|
||||||
|
'blockquote' => array(
|
||||||
|
'cite' => true,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case 'admin_notice':
|
case 'admin_notice':
|
||||||
|
|||||||
Reference in New Issue
Block a user