Research on the latest WordPress build on SAE

Source: Internet
Author: User
Tags mysql host wordpress database wordpress debug

  1. Install the WordPress on SAE, create app select WordPress template, install after 3.4 version
  2. Create a new version 2, download the latest WordPress installation package and unzip it into version 2
  3. A tentative guess to modify a place:
    1. Database configuration: wp-config.php
      <?PHP/** * WordPress basic configuration file. * * This file contains the following configuration options: MySQL settings, database table name prefixes, * keys, WordPress language Settings, and Abspath. For more information, please visit the * {@link http://codex.wordpress.org/Editing_wp-config.php edit * wp-config.php} Codex page. Please consult your space provider for details on MySQL settings. * This file is used in the Setup program to automatically generate the wp-config.php configuration file, * You can manually copy this file, rename it to wp-config.php, and then enter the relevant information. * * @Author Elmer Zhang <[email protected]> * @package WordPress*///* * MySQL Settings-specific information from the host you are using * *///** Name of WordPress database*/Define(' Db_name ',sae_mysql_db);/** MySQL Database user name*/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 grooming type. If you are unsure do not change*/Define(' Db_collate ', ');Define(' wp_use_multiple_db ',true);/*$db _list = Array (' write ' = = Array (' db_host ' = ' = ' sae_mysql_host_m. ': '. SAE                _mysql_port, ' db_user ' = sae_mysql_user, ' Db_password ' and Sae_mysql_pass, ' Db_name ' + sae_mysql_db, ' db_charset ' = ' utf8 '), ' read ' and a Rray (Array (' db_host ' = ' sae_mysql_host_s ': '.                Sae_mysql_port, ' db_user ' = sae_mysql_user, ' Db_password ' and Sae_mysql_pass, ' Db_name ' = sae_mysql_db, ' db_charset ' = ' utf8 '), $global _ Db_list = $db _list[' write '];*//**#@+ * Identity key setting. * * You can write some characters * or directly access {@link https://api.wordpress.org/secret-key/1.1/salt/WordPress.org private key Generation service}, * Any changes will cause the cookie to expire, 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));/**#@-*//** * WordPress data table prefix. * * If you have the need to install multiple wordpress in the same database, please set a different data table prefix for each wordpress. * Prefix names can only be underlined for numeric characters and letters. */$table _prefix= ' Wp_ ';/** * WordPress language settings, default to English. * * This setting allows WordPress to display the language you need. * wp-content/languages. Mo language files should be placed in the same name. * To use the WordPress Simplified Chinese interface, just fill in the ZH_CN. */Define(' Wplang ', ' ZH_CN ');/** * Developer-specific: WordPress debug mode. * * To change this value to "true", WordPress will display all the prompts during the development process. * Plugin developers are strongly encouraged to enable this feature in the development environment. */Define(' Wp_debug ',false);/*It's all right! Please do not continue editing. Please save the file. *//** The 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 ');
    2. File (cache, picture) read/write interface
    3. Search for SAE's terminology in the SAE template project
      1. \sae_app_wizard.xml file
      2. /wp-admin/includes/image-edit.php p224–> p314
      3. \wp-admin\includes\image.php p95–> p58
      4. \wp-admin\plugins.php p46–> p43
      5. \wp-includes\functions.php p1296 p1474 p3515–> p1469 p1795 p4240
      6. \wp-includes\media.php p426–> p543
    4. In-run bug modification
      1. wp-load.php p22-> define (' Abspath ', ');
      2. D:\jdhublog\1\wp-includes\functions.php p2934–> Comment p3560

Cond....

Research on the latest WordPress build on SAE

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.