> > >
/>
/>
">
0 || $i == 0; $i -- ) { if ( $r_storke_weight != $i ) { $r_storke_weight == '10'; } } $r_unit_system = isset( $_POST['r_unit_system'] ) ? sanitize_text_field( $_POST['r_unit_system'] ) : ''; $unit_system = WL_AGM_LITE_Helper::get_unit_system(); if ( ! in_array( $r_unit_system, $unit_system ) ) { $r_unit_system = 'METRIC'; } $r_style_theme = isset( $_POST['r_style_theme'] ) ? sanitize_text_field( $_POST['r_style_theme'] ) : ''; $style_arr = WL_AGM_LITE_Helper::get_map_style_theme(); if ( ! in_array( $r_style_theme, array_keys( $style_arr ) ) ) { $r_style_theme = 'standard'; } update_post_meta( $post_ID, 'r_stroke_typ', $r_stroke_typ ); update_post_meta( $post_ID, 'r_storke_weight', $r_storke_weight ); update_post_meta( $post_ID, 'r_unit_system', $r_unit_system ); update_post_meta( $post_ID, 'r_style_theme', $r_style_theme ); update_post_meta( $post_ID, 'r_draggable', isset( $_POST['r_draggable'] ) ? boolval( sanitize_text_field( $_POST['r_draggable'] ) ) : 0 ); update_post_meta( $post_ID, 'r_waypoints_ed', isset( $_POST['r_waypoints_ed'] ) ? boolval( sanitize_text_field( $_POST['r_waypoints_ed'] ) ) : 0 ); update_post_meta( $post_ID, 'r_start_location', isset( $_POST['r_start_location'] ) ? sanitize_text_field( $_POST['r_start_location'] ) : '' ); update_post_meta( $post_ID, 'r_end_location', isset( $_POST['r_end_location'] ) ? sanitize_text_field( $_POST['r_end_location'] ) : '' ); update_post_meta( $post_ID, 'route_type', isset( $_POST['route_type'] ) ? sanitize_text_field( $_POST['route_type'] ) : '' ); update_post_meta( $post_ID, 'r_map_height', isset( $_POST['r_map_height'] ) ? sanitize_text_field( $_POST['r_map_height'] ) : '' ); update_post_meta( $post_ID, 'r_map_width', isset( $_POST['r_map_width'] ) ? sanitize_text_field( $_POST['r_map_width'] ) : '' ); update_post_meta( $post_ID, 'r_stroke_color', isset( $_POST['r_stroke_color'] ) ? sanitize_text_field( $_POST['r_stroke_color'] ) : '' ); update_post_meta( $post_ID, 'r_center', isset( $_POST['r_center'] ) ? sanitize_text_field( $_POST['r_center'] ) : '' ); } } } }