v1.2.3
This commit is contained in:
parent
80a2202d6e
commit
121c35737d
1 changed files with 1398 additions and 2198 deletions
|
|
@ -27,9 +27,10 @@ function robotstxt_docmd_get_all_mappings(): array {
|
|||
);
|
||||
|
||||
$query = new WP_Query( $args );
|
||||
$posts = is_array( $query->posts ) ? $query->posts : array();
|
||||
$mappings = array();
|
||||
|
||||
foreach ( $query->posts as $post ) {
|
||||
foreach ( $posts as $post ) {
|
||||
if ( ! ( $post instanceof WP_Post ) ) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue