@@ -793,6 +793,9 @@ discard block |
||
793 | 793 | $this->options_save_other( 'google_plus' ); |
794 | 794 | } |
795 | 795 | |
796 | + /** |
|
797 | + * @param string $service_name |
|
798 | + */ |
|
796 | 799 | function options_save_other( $service_name ) { |
797 | 800 | // Nonce check |
798 | 801 | check_admin_referer( 'save_' . $service_name . '_token_' . $_REQUEST['connection'] ); |
@@ -1057,6 +1060,9 @@ discard block |
||
1057 | 1060 | return trim( preg_replace( '#<p>\s*</p>#i', '', $new_string ) ); |
1058 | 1061 | } |
1059 | 1062 | |
1063 | + /** |
|
1064 | + * @return integer |
|
1065 | + */ |
|
1060 | 1066 | function remove_innermost_last_child( $node, &$node_removed_from ) { |
1061 | 1067 | $node_removed_from = $node; |
1062 | 1068 | |
@@ -1099,6 +1105,9 @@ discard block |
||
1099 | 1105 | return str_replace( $search, $replace, $string ); |
1100 | 1106 | } |
1101 | 1107 | |
1108 | + /** |
|
1109 | + * @param string $message |
|
1110 | + */ |
|
1102 | 1111 | public static function sanitize_message( $message ) { |
1103 | 1112 | $message = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $message ); |
1104 | 1113 | $message = wp_kses( $message, array() ); |