昨天晚上下了WordPress了,安装后发现文件比较大,有2M多。
今天开始来学习WordPress的编程方式了。
发现好多的文件。看了几段久根本就看不懂了。
在ZDE中打开WordPress 的一个网页,里面的文件中的中文全都成为乱码了!真的非常麻烦了。
在网上看到了这么多的高手,弄个插件都不出问题。自己要达到他们那种水平要多久啊。。。
还是先看第一页吧:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*//**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
文件没有任何作用,但是文件wp-blog-header.php告诉WordPress去载入主题。
【文件wp-blog-header.php】
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/if ( !isset($wp_did_header) ) {$wp_did_header = true;require_once( dirname(__FILE__) . '/wp-load.php' );wp();require_once( ABSPATH . WPINC . '/template-loader.php' );}?>
【$wp_did_header】
【wp()】
没有评论:
发表评论