This article mainly introduces how to build the latest wordpress on SAE. if you need it, refer to install wordpress on SAE and select the wordpress template for creating an application. after installation, refer to version 3.4.
Create a new version 2, download the latest wordpress installation package, and decompress it to version 2.
Preliminary conjecture:
Database configuration: wp-config.php
The code is as follows:
<? Php
/**
* WordPress basic configuration file.
*
* This file contains the following configuration options: MySQL settings, database table name prefix,
* Set the key, WordPress language, and ABSPATH. For more information, visit
* {@ Link http://codex.wordpress.org/Editing_wp-config.php Edit
* Wp-config.php} Codex page. For more information about MySQL settings, consult your space provider.
*
* This file is used by the installer to automatically generate the wp-config.php configuration file,
* You can manually copy the file, rename it to a wp-config.php, and enter relevant information.
*
* @ Author Elmer Zhang
* @ Package WordPress
*/
// ** MySQL settings-specific information comes from the host you are using **//
/** WordPress database name */
Define ('Db _ name', SAE_MYSQL_DB );
/** MySQL database username */
Define ('Db _ user', SAE_MYSQL_USER );
/** MySQL database password */
Define ('Db _ password', SAE_MYSQL_PASS );
/** MySQL host */
Define ('Db _ host', SAE_MYSQL_HOST_M. ':'. SAE_MYSQL_PORT );
/** Default text encoding when creating a data table */
Define ('Db _ charset', 'utf8 ');
/** Database sorting type. If you are not sure, do not change it */
Define ('Db _ collate ','');
Define ('WP _ USE_MULTIPLE_DB ', true );
/* $ Db_list = array (
'Write' => array (
Array (
'Db _ host' => SAE_MYSQL_HOST_M. ':'. SAE_MYSQL_PORT,
'Db _ user' => SAE_MYSQL_USER,
'Db _ password' => SAE_MYSQL_PASS,
'Db _ name' => SAE_MYSQL_DB,
'Db _ charset' => 'utf8'
)
),
'Read' => array (
Array (
'Db _ host' => SAE_MYSQL_HOST_S. ':'. SAE_MYSQL_PORT,
'Db _ user' => SAE_MYSQL_USER,
'Db _ password' => SAE_MYSQL_PASS,
'Db _ name' => SAE_MYSQL_DB,
'Db _ charset' => 'utf8'
)
),
);
$ Global_db_list = $ db_list ['write']; */
/** # @ +
* Set the ID key.
*
* You can write some characters at will.
* Or directly access the {@ link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org private key generation service },
* Any modification will invalidate the cookie. All users must log on again.
*
* @ Since 2.6.0
*/
Define ('auth _ key', hash_hmac ('sha1', SAE_ACCESSKEY. 'auth _ key', SAE_SECRETKEY ));
Define ('secure _ AUTH_KEY ', hash_hmac ('sha1', SAE_ACCESSKEY. 'secure _ AUTH_KEY', SAE_SECRETKEY ));
Define ('logged _ IN_KEY ', hash_hmac ('sha1', SAE_ACCESSKEY. 'logged _ IN_KEY', SAE_SECRETKEY ));
Define ('nonce _ key', hash_hmac ('sha1', SAE_ACCESSKEY. 'nonce _ key', SAE_SECRETKEY ));
Define ('auth _ SALT ', hash_hmac ('sha1', SAE_ACCESSKEY. 'auth _ SALT', SAE_SECRETKEY ));
Define ('secure _ AUTH_SALT ', hash_hmac ('sha1', SAE_ACCESSKEY. 'secure _ AUTH_SALT', SAE_SECRETKEY ));
Define ('logged _ IN_SALT ', hash_hmac ('sha1', SAE_ACCESSKEY. 'logged _ IN_SALT', SAE_SECRETKEY ));
Define ('nonce _ salt', hash_hmac ('sha1', SAE_ACCESSKEY. 'nonce _ salt', SAE_SECRETKEY ));
/**#@-*/
/**
* The prefix of the WordPress data table.
*
* If you need to install multiple WordPress in the same database, set different data table prefixes for each WordPress.
* The prefix name can only contain numbers and letters with underscores.
*/
$ Table_prefix = 'WP _';
/**
* WordPress language settings. the default value is English.
*
* This setting allows WordPress to display the language you need.
* A. mo language file with the same name should be placed in wp-content/ages.
* To use the WordPress simplified Chinese interface, enter zh_CN.
*/
Define ('plang ', 'zh _ cn ');
/**
* Dedicated for developers: WordPress debugging mode.
*
* Change this value to "true", and WordPress will display all prompts during development.
* It is strongly recommended that plug-in developers enable this function in the development environment.
*/
Define ('WP _ debug', false );
/* OK! Do not edit any more. Save the file. */
/** Absolute path of the WordPress directory. */
If (! Defined ('abspath '))
Define ('abspath', dirname (_ FILE __).'/');
/** Set WordPress variables and include files. */
Require_once (ABSPATH. 'WP-settings. php ');
File (cache, image) read/write interface
Search for SAE words in the SAE Template project
The code is as follows:
\ Sae_app_wizard.xml file
/Wp-admin/PRODES/image-edit.php p224-> p314
\ Wp-admin \ shortdes \ image. php p95-> p58
\ Wp-admin \ plugins. php p46-> p43
\ Wp-supported des \ functions. php p1296 p1474 p3515-> p1469 p1795 p4240
\ Wp-shortdes \ media. php p426-> p543
Modifying running bugs
The code is as follows:
Wp-load.php p22-> define ('abspath ','');
D: \ jdhublog \ 1 \ wp-supported des \ functions. php p2934-> note p3560