PluginProbe
HTTP Headers / 1.10.2
HTTP Headers v1.10.2
1.19.5 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.12.0 1.12.1 1.12.2 1.13.0 1.13.1 1.13.2 1.13.3 1.13.4 1.14.0 1.14.1 1.14.2 1.15.0 All 60 releases
http-headers / views / x-dns-prefetch-control.php

x-dns-prefetch-control.php in HTTP Headers 1.10.2, at views/x-dns-prefetch-control.php

36 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) {
3 exit;
4 }
5 ?>
6 <tr valign="top">
7 <th scope="row">X-DNS-Prefetch-Control
8 <p class="description"><?php _e('The X-DNS-Prefetch-Control HTTP response header controls DNS prefetching, a feature by which browsers proactively perform domain name resolution on both links that the user may choose to follow as well as URLs for items referenced by the document, including images, CSS, JavaScript, and so forth.', 'http-headers'); ?></p>
9 <p class="description"><?php _e('This prefetching is performed in the background, so that the DNS is likely to have been resolved by the time the referenced items are needed. This reduces latency when the user clicks a link.', 'http-headers'); ?></p>
10 </th>
11 <td>
12 <fieldset>
13 <legend class="screen-reader-text">X-DNS-Prefetch-Control</legend>
14 <?php
15 $x_dns_prefetch_control = get_option('hh_x_dns_prefetch_control', 0);
16 foreach ($bools as $k => $v)
17 {
18 ?><p><label><input type="radio" class="http-header" name="hh_x_dns_prefetch_control" value="<?php echo $k; ?>"<?php checked($x_dns_prefetch_control, $k); ?> /> <?php echo $v; ?></label></p><?php
19 }
20 ?>
21 </fieldset>
22 </td>
23 <td>
24 <?php settings_fields( 'http-headers-xdpc' ); ?>
25 <?php do_settings_sections( 'http-headers-xdpc' ); ?>
26 <select name="hh_x_dns_prefetch_control_value" class="http-header-value"<?php echo $x_dns_prefetch_control == 1 ? NULL : ' readonly'; ?>>
27 <?php
28 $items = array('on', 'off');
29 $x_dns_prefetch_control_value = get_option('hh_x_dns_prefetch_control_value');
30 foreach ($items as $item) {
31 ?><option value="<?php echo $item; ?>"<?php selected($x_dns_prefetch_control_value, $item); ?>><?php echo $item; ?></option><?php
32 }
33 ?>
34 </select>
35 </td>
36 </tr>