$job->glm_jobs_email = $custom['glm_jobs_email'][0];
$job->glm_jobs_comments = $custom['glm_jobs_comments'][0];
$job->glm_jobs_code = $custom['glm_jobs_code'][0];
- $current_url = add_query_arg($wp->query_string, '',
- home_url($wp->request));
+ $current_url = esc_url(add_query_arg($wp->query_string, '', home_url($wp->request)));
$applyOnlineHref = $current_url
. ((strpos($current_url, '?')) ? '&' : '?')
. self::FORM_VAR . "=1&job=" . $job->ID;
}
$jobs = get_posts($args);
$totalJobs = count($jobs);
- $current_url = add_query_arg($wp->query_string, '', home_url($wp->request));
+ $current_url = esc_url(add_query_arg($wp->query_string, '', home_url($wp->request)));
$iterator = 1;
foreach ($jobs as $job) {
$custom = get_post_custom($job->ID);
/**
* Plugin Name: Gaslight Media Employment
* Description: Online Employment Application for Gaslight Media Clients.
- * Version: 1.0.3
+ * Version: 1.0.4
* Author: Steve Sutton
* Author URI: http://www.gaslightmedia.com
* License: All right reserved
// Redirect if page number is invalid and headers are not already sent.
if ( ! headers_sent() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) && $args['total_pages'] > 0 && $this->get_pagenum() > $args['total_pages'] ) {
- wp_redirect( add_query_arg( 'paged', $args['total_pages'] ) );
+ wp_redirect( esc_url_raw(add_query_arg( 'paged', $args['total_pages'] ) ) );
exit;
}
$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
- $current_url = remove_query_arg( array( 'hotkeys_highlight_last', 'hotkeys_highlight_first' ), $current_url );
+ $current_url = esc_url_raw(remove_query_arg( array( 'hotkeys_highlight_last', 'hotkeys_highlight_first' ), $current_url ) );
$page_links = array();
list( $columns, $hidden, $sortable ) = $this->get_column_info();
$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
- $current_url = remove_query_arg( 'paged', $current_url );
+ $current_url = esc_url_raw( remove_query_arg( 'paged', $current_url ) );
if ( isset( $_GET['orderby'] ) )
$current_orderby = $_GET['orderby'];
$class[] = $desc_first ? 'asc' : 'desc';
}
- $column_display_name = '<a href="' . esc_url( add_query_arg( compact( 'orderby', 'order' ), $current_url ) ) . '"><span>' . $column_display_name . '</span><span class="sorting-indicator"></span></a>';
+ $column_display_name = '<a href="' . esc_url_raw( add_query_arg( compact( 'orderby', 'order' ), $current_url ) ) . '"><span>' . $column_display_name . '</span><span class="sorting-indicator"></span></a>';
}
$id = $with_id ? "id='$column_key'" : '';
'taxonomy' => $tax_slug,
'name' => $tax_obj->name,
'orderby' => 'name',
- 'selected' => $_GET[$tax_slug],
+ 'selected' => (isset($_GET[$tax_slug]) ? $_GET[$tax_slug] : ''),
'hierarchical' => $tax_obj->hierarchical,
'show_count' => true,
'hide_empty' => true