This commit is contained in:
Javier Casares 2026-11-04 17:27:19 +00:00
commit 121c35737d

View file

@ -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;
}