Plugin Directory

Changeset 1122960


Ignore:
Timestamp:
03/29/2015 04:36:11 AM (11 years ago)
Author:
liwanglin12
Message:

update

Location:
wp-plus/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-plus/trunk/option.php

    r1117914 r1122960  
    2626echo plus_version;
    2727?>版本更新日志:<br />
    28 [移除]禁止自动给文章段落添加p标签功能<br />
    29 [新增]访客欢迎信息显示(Beta)
     28[新增]低版本IE更新提示功能
    3029</div>
    3130<form method="POST" action="">
     
    6968echo get_option("wp_plus_simplifyhead");
    7069?> /> 启用“移除部分风险/无用头部信息”功能<p>
     70<input type="checkbox" name="ietip" id="ietip" <?php
     71echo get_option("wp_plus_ietip");
     72?> /> 启用“提示IE10以下IE用户更换浏览器”功能<p>
    7173<input type="submit" class="button-primary" value="保存设置" /> &nbsp; WP-Plus 版本 <?php
    7274echo plus_version;
     
    176178    }
    177179    update_option('wp_plus_welcomemsg', $display);
     180    if ($_POST['ietip'] == 'on') {
     181        $display = 'checked';
     182    } else {
     183        $display = '';
     184    }
     185    update_option('wp_plus_ietip', $display);
    178186   
    179187}
  • wp-plus/trunk/readme.txt

    r1117914 r1122960  
    2929
    3030== Changelog ==
     31= 1.59 =
     32[新增]低版本IE更新提示功能
    3133= 1.58 =
    3234[移除]禁止自动给文章段落添加p标签<br />
     
    5860
    5961== Upgrade Notice ==
     62= 1.59 =
     63[新增]低版本IE更新提示功能
    6064= 1.58 =
    6165[移除]禁止自动给文章段落添加p标签
  • wp-plus/trunk/wp-plus.php

    r1117914 r1122960  
    66Author: liwanglin12
    77Author URI: http://lwl12.com
    8 Version: 1.58
     8Version: 1.59
    99*/
    1010/*Exit if accessed directly:安全第一,如果是直接载入,就退出.*/
    1111defined('ABSPATH') or exit;
    12 define("plus_version", "1.58");
     12define("plus_version", "1.59");
    1313/* 插件初始化*/
    1414register_activation_hook(__FILE__, 'plus_plugin_activate');
     
    332332?>
    333333<?php
     334if (get_option('wp_plus_ietip') == 'checked') {
     335?>
     336<?php
     337    function plus_ietip(){
     338        echo '<!--[if lt IE 10]><script src="http://wuyongzhiyong.b0.upaiyun.com/iedie/v1.1/script.min.js"></script><![endif]-->';
     339    }
     340    add_action('wp_head', 'plus_ietip');
     341?>
     342<?php
     343}
     344?>
     345<?php
    334346/**
    335347 * [plus_post 用于向LWL插件统计API发送数据]
Note: See TracChangeset for help on using the changeset viewer.