wordpress
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wordpress [2009/08/06 12:00] – suapapa | wordpress [2013/08/03 05:04] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| DELETE FROM wp_posts WHERE post_type = " | DELETE FROM wp_posts WHERE post_type = " | ||
| </ | </ | ||
| + |   *[[http:// | ||
| <code python> | <code python> | ||
| mport MySQLdb | mport MySQLdb | ||
| - | db = MySQLdb.connect(db=' | + | db = MySQLdb.connect(db=' | 
| c = db.cursor() | c = db.cursor() | ||
| c.execute(' | c.execute(' | ||
| Line 32: | Line 33: | ||
| db.commit() | db.commit() | ||
| - | |||
| - | |||
| - | </ | ||
| - | |||
| - | <code mysql> | ||
| - | mysql> desc wp_postmeta; | ||
| - | +------------+--------------+------+-----+---------+----------------+ | ||
| - | | Field | Type | Null | Key | Default | Extra | | ||
| - | +------------+--------------+------+-----+---------+----------------+ | ||
| - | | meta_id  | ||
| - | | post_id  | ||
| - | | meta_key  | ||
| - | | meta_value | longtext  | ||
| - | +------------+--------------+------+-----+---------+----------------+ | ||
| - | 4 rows in set (0.00 sec) | ||
| </ | </ | ||
| - | ========  | + | ======  | 
| + |   *[[http:// | ||
| + | ===== wp_multilingual  | ||
| 저장된 번역은 다음과 같이 쌍으로 존재함. | 저장된 번역은 다음과 같이 쌍으로 존재함. | ||
| <code mysql> | <code mysql> | ||
| Line 56: | Line 44: | ||
| |    1339 |     421 | searchsyn  | |    1339 |     421 | searchsyn  | ||
| </ | </ | ||
| + | / | ||
| <code php> | <code php> | ||
| + | $str = serialize(array(base64_encode(serialize(unserialize(serialize($translation)))))); | ||
| + | ... | ||
| $GLOBALS[' | $GLOBALS[' | ||
| " | " | ||
| Line 71: | Line 62: | ||
| $translations = unserialize(base64_decode($translations[0])); | $translations = unserialize(base64_decode($translations[0])); | ||
| </ | </ | ||
| + | ====== themes ====== | ||
| + |   *[[http:// | ||
| + | ====== references ====== | ||
| + |   *[[http:// | ||
wordpress.1249560042.txt.gz · Last modified: 2013/08/03 05:04 (external edit)