Archive

Posts Tagged ‘wp-config.php’

WordPress Revision Management

November 23rd, 2008 admin No comments

The original article is here: http://codex.wordpress.org/Revision_Management

Revision Management

Autosaves

There is only ever a maximum of one autosave for any given post. New autosaves overwrite old autosaves. This means that no, your tables do not grow by one row every 60 seconds.

Autosaves are enabled for all posts and pages but do not overwrite published content. Autosaves are stored as a special type of revision; they do not overwrite the actual post. In fact, if your browser does crash, when you go to edit that post, WP will toss up a warning that says something like “This post has an autosave which is more recent that the post itself. Would you like to see it?” With a link to the revision page from where it can be restored/ignored.
Revision Options

There are options, but they are hidden well :) There is a constant (not even filterable) that can be set by a plugin or in your wp-config.php file:

WP_POST_REVISIONS:

* true (default), -1: store every revision
* false, 0: do not store any revisions (except the one autosave per post)
* (int) > 0: store that many revisions (+1 autosave) per post. Old revisions are automatically deleted.

Read more…

WordPress configuration file: wp-config.php

November 23rd, 2008 admin No comments

After WordPress installation, please modify the wp-config.php in the root directory of WordPress, the original part is like:

// 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.

According to the notes, visit http://api.wordpress.org/secret-key/1.1/

Get your unique key, maybe it looks like

define(‘AUTH_KEY’, ‘jbT[&w<@&0xCg3LC7Sy4OF-4F=Lr7}AO`B\’taCDYA1bXNG@Q_4^Fr[~)uX4′);
define(‘SECURE_AUTH_KEY’, ‘$n[\”P11E\’mxhSyNoPyS\”>SA|VRQ4dUOY;y;#NM*aN-xIv{.G+Sryw;AnGg|evUc~’);
define(‘LOGGED_IN_KEY’, ‘`f-1jets5W*Ou)XT+uD\’`#RFdTgk4GCK$U^Qp\”-_jPr p{Xy/O~ |0)3o9BLQoQ0′);

it’s very cool! Can you make so complicated string?

Then, modify your new wp-config.php with those string, upload it by ftp.

When you manage your WordPress site, you need login again because of those modification.