导航

文章分类 -  WordPress系列

摘要:根目录 |  |wp-admin -- wp-content -- wp-includes | |        |_________________________________________ | |________________________ | | | |css -- images -- includes -- js -- maint languages -- plugins -- themes images -- js -- pomo -- Text -- theme-compat |                                                阅读全文

posted @ 2010-12-08 22:26 fxcser 阅读(862) 评论(0) 推荐(1)

摘要:地图:index.php-……-wp-setting.php-wp-includes/load.php |_wp-includes/default-constants.php |_wp-includes/version.phpwp-includes/load.php:描述:定义加载 WP 所需要的函数。1)wp_unregister_GLOBALS(),关闭’GLOBALS’, ‘_GET’, ‘_POST’, ‘_COOKIE’, ‘_REQUEST’, ‘_SERVER’, ‘_ENV’, ‘_FILES’, ‘table_prefix’以外的全局注册变量。2)wp_fix_serv 阅读全文

posted @ 2010-12-08 21:55 fxcser 阅读(261) 评论(0) 推荐(0)

摘要:地图:index.php-……-wp-config.php-wp-setting.phpwp-settings.php:描述:用于设置公共变量、加载 WP 的程序和类库(存储 WP 函数、类和核心内容所在文件夹的位置)。用户无需修改此文件,但是可以通过修改 wp-config.php 文件来进行配置。1)定义 WPINC 常量,并引入初始化所需文件 WPINC/load.php,WPINC/default-constants.php,WPINC/version.php。2)调用 wp_initial_constants() 函数,初始化常量 WP_MEMORY_LIMIT, WP_DEB 阅读全文

posted @ 2010-12-08 21:52 fxcser 阅读(550) 评论(0) 推荐(1)

摘要:地图:index.php-wp-blog-header.php-wp-load.php-wp-config.phpindex.php:描述:前端入口,基本没有内容。1)定义WP_USE_THEMES常量,当该常量定义为false时,站点会显示为空白;为true时则正常显示。2)加载wp-blog-header.php文件。wp-blog-header.php:描述:用于加载WP环境和模板。1)设置$wp_did_header变量,相当于一个flag,确保wp-blog-header.php文件只在第一次被加载时执行。2)加载wp-load.php文件。3)调用wp()函数。4)加载wp- 阅读全文

posted @ 2010-12-08 21:43 fxcser 阅读(621) 评论(0) 推荐(0)