*/ if ( !defined( 'WPINC' ) ) { die; } /** * Builds page for editing a location * * @param string $title Page title * @param string $action Display and name for primary button * @param array $map Location values * @return string Page for doing bulk actions */ function acts_location_management( $title, $action, $map = null ) { $current_url = ( isset($_SERVER['HTTPS'] ) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $current_url = remove_query_arg( 'action', $current_url ); $current_url = remove_query_arg( 'location_id', $current_url ); if ( is_null( $map ) ) { $map = array( 'name' => '', 'address' => '', 'description' => '', 'city' => '', 'postcode' => '', 'country' => '' ); } $output = '