Changeset 37897
- Timestamp:
- 06/28/2016 10:05:08 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r37543 r37897 1712 1712 * @param array $attr List of allowed CSS attributes. 1713 1713 */ 1714 $allowed_attr = apply_filters( 'safe_style_css', array( 'text-align', 'margin', 'color', 'float', 1715 'border', 'background', 'background-color', 'border-bottom', 'border-bottom-color', 1716 'border-bottom-style', 'border-bottom-width', 'border-collapse', 'border-color', 'border-left', 1717 'border-left-color', 'border-left-style', 'border-left-width', 'border-right', 'border-right-color', 1718 'border-right-style', 'border-right-width', 'border-spacing', 'border-style', 'border-top', 1719 'border-top-color', 'border-top-style', 'border-top-width', 'border-width', 'caption-side', 1720 'clear', 'cursor', 'direction', 'font', 'font-family', 'font-size', 'font-style', 1721 'font-variant', 'font-weight', 'height', 'min-height','max-height' , 'letter-spacing', 'line-height', 'margin-bottom', 1722 'margin-left', 'margin-right', 'margin-top', 'overflow', 'padding', 'padding-bottom', 1723 'padding-left', 'padding-right', 'padding-top', 'text-decoration', 'text-indent', 'vertical-align', 1724 'width', 'min-width', 'max-width' ) ); 1714 $allowed_attr = apply_filters( 'safe_style_css', array( 1715 'background', 1716 'background-color', 1717 1718 'border', 1719 'border-width', 1720 'border-color', 1721 'border-style', 1722 'border-right', 1723 'border-right-color', 1724 'border-right-style', 1725 'border-right-width', 1726 'border-bottom', 1727 'border-bottom-color', 1728 'border-bottom-style', 1729 'border-bottom-width', 1730 'border-left', 1731 'border-left-color', 1732 'border-left-style', 1733 'border-left-width', 1734 'border-top', 1735 'border-top-color', 1736 'border-top-style', 1737 'border-top-width', 1738 1739 'border-spacing', 1740 'border-collapse', 1741 'caption-side', 1742 1743 'color', 1744 'font', 1745 'font-family', 1746 'font-size', 1747 'font-style', 1748 'font-variant', 1749 'font-weight', 1750 'letter-spacing', 1751 'line-height', 1752 'text-decoration', 1753 'text-indent', 1754 'text-align', 1755 1756 'height', 1757 'min-height', 1758 'max-height', 1759 1760 'width', 1761 'min-width', 1762 'max-width', 1763 1764 'margin', 1765 'margin-right', 1766 'margin-bottom', 1767 'margin-left', 1768 'margin-top', 1769 1770 'padding', 1771 'padding-right', 1772 'padding-bottom', 1773 'padding-left', 1774 'padding-top', 1775 1776 'clear', 1777 'cursor', 1778 'direction', 1779 'float', 1780 'overflow', 1781 'vertical-align', 1782 ) ); 1725 1783 1726 1784 if ( empty($allowed_attr) )
Note: See TracChangeset
for help on using the changeset viewer.