当前位置: 首页>>代码示例>>PHP>>正文


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怎么用?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');
        ?>
//.........这里部分代码省略.........
开发者ID:Garth619,项目名称:Femi9,代码行数:101,代码来源:settings-page.php


注:本文中的ITSEC_Lib::is_jquery_version_safe方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。