wp super cache 删除方法

捣腾了一下午,想把博客弄成静态的。
访问速度会快些,但是搞了好久好像还是不行。
期间装了wp super cache 能用但是感觉很麻烦,不太适合我用(全英文,看到就头大)。
好!删除出问题了!
无法正常删除提示:
UNINSTALL_WPSUPERCACHE must be set to a non-blank value in uninstall.php
这句话的意思就是uninstall.php 文件中UNINSTALL_WPSUPERCACHE的值不能为空.
网上找了好久终于找到解决把法了!删除一段代价就OK!


    /** Include the bootstrap for setting up WordPress environment */
    include( '../../../wp-load.php' );

    if ( !is_user_logged_in() )
    wp_die( 'You must be logged in to run this script.' );

    if ( !current_user_can( 'install_plugins' ) )
    wp_die( 'You do not have permission to run this script.' );

    if ( defined( 'UNINSTALL_WPSUPERCACHE' ) )
    wp_die( 'UNINSTALL_WPSUPERCACHE set somewhere else! It must only be set in uninstall.php' );

    define( 'UNINSTALL_WPSUPERCACHE', '' );

    if ( !defined( 'UNINSTALL_WPSUPERCACHE' ) || constant( 'UNINSTALL_WPSUPERCACHE' ) == '' )
    wp_die( 'UNINSTALL_WPSUPERCACHE must be set to a non-blank value in uninstall.php' );

    ?>

分享家:Addthis中国

Leave Your Comments