本文整理匯總了PHP中ITSEC_Lib::is_jquery_version_safe方法的典型用法代碼示例。如果您正苦於以下問題:PHP ITSEC_Lib::is_jquery_version_safe方法的具體用法?PHP ITSEC_Lib::is_jquery_version_safe怎麽用?PHP ITSEC_Lib::is_jquery_version_safe使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ITSEC_Lib
的用法示例。
在下文中一共展示了ITSEC_Lib::is_jquery_version_safe方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: render_settings
protected function render_settings($form)
{
$settings = $form->get_options();
$xmlrpc_options = array('2' => __('Disable XML-RPC (recommended)', 'better-wp-security'), '1' => __('Disable Pingbacks', 'better-wp-security'), '0' => __('Enable XML-RPC', 'better-wp-security'));
$allow_xmlrpc_multiauth_options = array(false => __('Block (recommended)', 'better-wp-security'), true => __('Allow', 'better-wp-security'));
$jquery_version = ITSEC_Modules::get_setting($this->id, 'jquery_version');
$jquery_version_is_safe = ITSEC_Lib::is_jquery_version_safe();
if (empty($jquery_version)) {
$jquery_description = sprintf(__('Your current jQuery version is undetermined. Please <a href="%1$s" target="_blank">check your homepage</a> to see if you even need this feature'), site_url());
} else {
$jquery_description = sprintf(__('Your current jQuery version is %1$s'), $jquery_version);
}
if ($jquery_version_is_safe) {
$jquery_description_color = 'green';
} else {
$jquery_description_color = 'red';
}
?>
<p><?php
_e('Note: These settings are listed as advanced because they block common forms of attacks but they can also block legitimate plugins and themes that rely on the same techniques. When activating the settings below, we recommend enabling them one by one to test that everything on your site is still working as expected.', 'better-wp-security');
?>
</p>
<p><?php
_e('Remember, some of these settings might conflict with other plugins or themes, so test your site after enabling each setting.', 'better-wp-security');
?>
</p>
<table class="form-table">
<tr>
<th scope="row"><label for="itsec-wordpress-tweaks-wlwmanifest_header"><?php
_e('Windows Live Writer Header', 'better-wp-security');
?>
</label></th>
<td>
<?php
$form->add_checkbox('wlwmanifest_header');
?>
<label for="itsec-wordpress-tweaks-wlwmanifest_header"><?php
_e('Remove the Windows Live Writer header.', 'better-wp-security');
?>
</label>
<p class="description"><?php
_e('This is not needed if you do not use Windows Live Writer or other blogging clients that rely on this file.', 'better-wp-security');
?>
</p>
</td>
</tr>
<tr>
<th scope="row"><label for="itsec-wordpress-tweaks-edituri_header"><?php
_e('EditURI Header', 'better-wp-security');
?>
</label></th>
<td>
<?php
$form->add_checkbox('edituri_header');
?>
<label for="itsec-wordpress-tweaks-edituri_header"><?php
_e('Remove the RSD (Really Simple Discovery) header.', 'better-wp-security');
?>
</label>
<p class="description"><?php
_e('Removes the RSD (Really Simple Discovery) header. If you don\'t integrate your blog with external XML-RPC services such as Flickr then the "RSD" function is pretty much useless to you.', 'better-wp-security');
?>
</p>
</td>
</tr>
<tr>
<th scope="row"><label for="itsec-wordpress-tweaks-comment_spam"><?php
_e('Comment Spam', 'better-wp-security');
?>
</label></th>
<td>
<?php
$form->add_checkbox('comment_spam');
?>
<label for="itsec-wordpress-tweaks-comment_spam"><?php
_e('Reduce Comment Spam', 'better-wp-security');
?>
</label>
<p class="description"><?php
_e('This option will cut down on comment spam by denying comments from bots with no referrer or without a user-agent identified.', 'better-wp-security');
?>
</p>
</td>
</tr>
<tr>
<th scope="row"><label for="itsec-wordpress-tweaks-file_editor"><?php
_e('File Editor', 'better-wp-security');
?>
</label></th>
<td>
<?php
$form->add_checkbox('file_editor');
?>
<label for="itsec-wordpress-tweaks-file_editor"><?php
_e('Disable File Editor', 'better-wp-security');
?>
</label>
<p class="description"><?php
_e('Disables the file editor for plugins and themes requiring users to have access to the file system to modify files. Once activated you will need to manually edit theme and other files using a tool other than WordPress.', 'better-wp-security');
?>
//.........這裏部分代碼省略.........