| @@ -265,9 +265,9 @@ | ||
| 265 | 265 | private function get_allowed_attributes() { |
| 266 | 266 | $allowed_attributes = [ |
| 267 | 267 | 'accent-height', |
| 268 | 268 | 'accumulate', |
| 269 | - 'additive', | |
| 269 | + 'additivive', | |
| 270 | 270 | 'alignment-baseline', |
| 271 | 271 | 'aria-hidden', |
| 272 | 272 | 'aria-controls', |
| 273 | 273 | 'aria-describedby', |
| @@ -757,21 +757,21 @@ | ||
| 757 | 757 | * |
| 758 | 758 | * @since 3.16.0 |
| 759 | 759 | * @access private |
| 760 | 760 | * |
| 761 | - * @param string $content | |
| 761 | + * @param $string | |
| 762 | 762 | * @return string |
| 763 | 763 | */ |
| 764 | - private function strip_php_tags( $content ) { | |
| 765 | - $content = preg_replace( '/<\?(=|php)(.+?)\?>/i', '', $content ); | |
| 764 | + private function strip_php_tags( $string ) { | |
| 765 | + $string = preg_replace( '/<\?(=|php)(.+?)\?>/i', '', $string ); | |
| 766 | 766 | // Remove XML, ASP, etc. |
| 767 | - $content = preg_replace( '/<\?(.*)\?>/Us', '', $content ); | |
| 768 | - $content = preg_replace( '/<\%(.*)\%>/Us', '', $content ); | |
| 767 | + $string = preg_replace( '/<\?(.*)\?>/Us', '', $string ); | |
| 768 | + $string = preg_replace( '/<\%(.*)\%>/Us', '', $string ); | |
| 769 | 769 | |
| 770 | - if ( ( false !== strpos( $content, '<?' ) ) || ( false !== strpos( $content, '<%' ) ) ) { | |
| 770 | + if ( ( false !== strpos( $string, '<?' ) ) || ( false !== strpos( $string, '<%' ) ) ) { | |
| 771 | 771 | return ''; |
| 772 | 772 | } |
| 773 | - return $content; | |
| 773 | + return $string; | |
| 774 | 774 | } |
| 775 | 775 | |
| 776 | 776 | /** |
| 777 | 777 | * Strip Comments |
| @@ -778,19 +778,19 @@ | ||
| 778 | 778 | * |
| 779 | 779 | * @since 3.16.0 |
| 780 | 780 | * @access private |
| 781 | 781 | * |
| 782 | - * @param string $content | |
| 782 | + * @param $string | |
| 783 | 783 | * @return string |
| 784 | 784 | */ |
| 785 | - private function strip_comments( $content ) { | |
| 785 | + private function strip_comments( $string ) { | |
| 786 | 786 | // Remove comments. |
| 787 | - $content = preg_replace( '/<!--(.*)-->/Us', '', $content ); | |
| 788 | - $content = preg_replace( '/\/\*(.*)\*\//Us', '', $content ); | |
| 789 | - if ( ( false !== strpos( $content, '<!--' ) ) || ( false !== strpos( $content, '/*' ) ) ) { | |
| 787 | + $string = preg_replace( '/<!--(.*)-->/Us', '', $string ); | |
| 788 | + $string = preg_replace( '/\/\*(.*)\*\//Us', '', $string ); | |
| 789 | + if ( ( false !== strpos( $string, '<!--' ) ) || ( false !== strpos( $string, '/*' ) ) ) { | |
| 790 | 790 | return ''; |
| 791 | 791 | } |
| 792 | - return $content; | |
| 792 | + return $string; | |
| 793 | 793 | } |
| 794 | 794 | |
| 795 | 795 | /** |
| 796 | 796 | * Strip Line Breaks |
| @@ -797,12 +797,12 @@ | ||
| 797 | 797 | * |
| 798 | 798 | * @since 3.16.0 |
| 799 | 799 | * @access private |
| 800 | 800 | * |
| 801 | - * @param string $content | |
| 801 | + * @param $string | |
| 802 | 802 | * @return string |
| 803 | 803 | */ |
| 804 | - private function strip_line_breaks( $content ) { | |
| 804 | + private function strip_line_breaks( $string ) { | |
| 805 | 805 | // Remove line breaks. |
| 806 | - return preg_replace( '/\r|\n/', '', $content ); | |
| 806 | + return preg_replace( '/\r|\n/', '', $string ); | |
| 807 | 807 | } |
| 808 | 808 | } |