Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed scheme from admin_url to allow it to automatically choose #19

Merged
merged 1 commit into from
Jul 23, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wp-polls.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function poll_scripts() {
$pollbar = get_option('poll_bar');
wp_enqueue_script('wp-polls', plugins_url('wp-polls/polls-js.js'), array('jquery'), WP_POLLS_VERSION, true);
wp_localize_script('wp-polls', 'pollsL10n', array(
'ajax_url' => admin_url('admin-ajax.php', (is_ssl() ? 'https' : 'http')),
'ajax_url' => admin_url('admin-ajax.php'),
'text_wait' => __('Your last request is still being processed. Please wait a while ...', 'wp-polls'),
'text_valid' => __('Please choose a valid poll answer.', 'wp-polls'),
'text_multiple' => __('Maximum number of choices allowed: ', 'wp-polls'),
Expand All @@ -233,7 +233,7 @@ function poll_scripts_admin($hook_suffix) {
wp_enqueue_style('wp-polls-admin', plugins_url('wp-polls/polls-admin-css.css'), false, WP_POLLS_VERSION, 'all');
wp_enqueue_script('wp-polls-admin', plugins_url('wp-polls/polls-admin-js.js'), array('jquery'), WP_POLLS_VERSION, true);
wp_localize_script('wp-polls-admin', 'pollsAdminL10n', array(
'admin_ajax_url' => admin_url('admin-ajax.php', (is_ssl() ? 'https' : 'http')),
'admin_ajax_url' => admin_url('admin-ajax.php'),
'text_direction' => ('rtl' == $text_direction) ? 'left' : 'right',
'text_delete_poll' => __('Delete Poll', 'wp-polls'),
'text_no_poll_logs' => __('No poll logs available.', 'wp-polls'),
Expand Down