发新话题
打印

[问题求助] 到底怎么关历史修订?

到底怎么关历史修订?

看了很多人说在wp-config.php中加入define('WP_POST_REVISIONS', false);就可以关闭了
但是根本没用嘛,数据库中还是出现一大堆多余的REVISIONS
救命啊,还是我加错了地方,各位大哥麻烦看看。

<?php
// ** MySQL settings ** //
define('DB_NAME', '');    // The name of the database
define('DB_USER', '');     // Your MySQL username
define('DB_PASSWORD', ''); // ...and password
define('DB_HOST', '');    // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

// Change each KEY to a different unique phrase.  You won't have to remember the phrases later,
// so make them long and complicated.  You can visit http://api.wordpress.org/secret-key/1.1/
// to get keys generated for you, or just make something up.  Each key should have a different phrase.
define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!

// Change this to localize WordPress.  A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', 'zh_CN');

define('WP_POST_REVISIONS',false);

/* That's all, stop editing! Happy blogging. */

if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');
require_once(ABSPATH . 'wp-settings.php');
?>

TOP

wp-setting里改成false
60改成3600

TOP

引用:
原帖由 CGrrr 于 2008-8-16 23:08 发表
wp-setting里改成false
60改成3600
$default_constants = array( 'WP_POST_REVISIONS' => false );

是这样吗?谢谢

TOP

TOP

发新话题