| @@ -45,13 +45,16 @@ | ||
| 45 | 45 | * @return array |
| 46 | 46 | */ |
| 47 | 47 | $record = apply_filters( 'wp_stream_record_array', $record ); |
| 48 | 48 | |
| 49 | - array_walk( $record, function( &$value, &$key ) { | |
| 50 | - if ( ! is_array( $value ) ) { | |
| 51 | - $value = strip_tags( $value ); | |
| 49 | + array_walk( | |
| 50 | + $record, | |
| 51 | + function( &$value, &$key ) { | |
| 52 | + if ( ! is_array( $value ) ) { | |
| 53 | + $value = strip_tags( $value ); | |
| 54 | + } | |
| 52 | 55 | } |
| 53 | - }); | |
| 56 | + ); | |
| 54 | 57 | |
| 55 | 58 | if ( empty( $record ) ) { |
| 56 | 59 | return false; |
| 57 | 60 | } |
| @@ -196,9 +199,9 @@ | ||
| 196 | 199 | * @return array Array of query arguments |
| 197 | 200 | */ |
| 198 | 201 | $args = apply_filters( 'wp_stream_query_args', $args ); |
| 199 | 202 | |
| 200 | - $result = (array) $this->driver->get_records( $args ); | |
| 203 | + $result = (array) $this->driver->get_records( $args ); | |
| 201 | 204 | $this->found_records_count = isset( $result['count'] ) ? $result['count'] : 0; |
| 202 | 205 | |
| 203 | 206 | return empty( $result['items'] ) ? array() : $result['items']; |
| 204 | 207 | } |