error page is more precise with approximates address

This commit is contained in:
lenovo
2022-11-09 19:16:20 +01:00
parent 2a759d1d86
commit c30f223b85
7 changed files with 171 additions and 58 deletions

View File

@@ -99,20 +99,20 @@ function mp_get_published_posts() {
// FOR TESTS
// script to publish or unpublish posts
//
// $post_args = array(
// 'numberposts' => -1,
// 'post_status' => 'draft',
// //'post_status' => 'publish',
// 'post_type' => 'post',
// );
// $post_list = get_posts($post_args);
// foreach ($post_list as $post) {
// wp_update_post(array(
// 'ID' => $post->ID,
// //'post_status' => 'draft',
// 'post_status' => 'publish',
// ));
// };
$post_args = array(
'numberposts' => -1,
'post_status' => 'draft',
//'post_status' => 'publish',
'post_type' => 'post',
);
$post_list = get_posts($post_args);
foreach ($post_list as $post) {
wp_update_post(array(
'ID' => $post->ID,
//'post_status' => 'draft',
'post_status' => 'publish',
));
};
$get_posts_args = array(
'numberposts' => -1,
@@ -146,8 +146,7 @@ function mp_fill_fields_value($id) {
"adresse",
"prenom",
"nom",
"coordinates",
"coordinates_valid",
"location",
);
$event = (object)[];
foreach($fields as $field) {