Update wprest.php

This commit is contained in:
Namhyeon Go 2018-04-13 21:09:52 +09:00 committed by GitHub
parent 89d6551485
commit d2d3dfb8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ if(!function_exists("parse_wp_posts")) {
$posts = $response->channel->item;
foreach($posts as $post) {
$post_link = get_clean_xss($post->link);
$post_link_paths = explode("/", $post_link);
$post_link_paths = array_filter(explode("/", $post_link), "strlen");
$results[] = array(
"title" => get_clean_xss($post->title),
"content" => get_clean_xss($post->description),