// // 定义小工具的类 WordPressRunningInfoStat class WordPressRunningInfoStat extends WP_Widget{ function WordPressRunningInfoStat(){ // 定义小工具的构造函数 $widget_ops = array('classname' => 'widget_blogstat', 'description' => '显示博客的统计信息'); $this->WP_Widget(false, '博客统计', $widget_ops); } function form($instance){ // 表单函数,控制后台显示 // $instance 为之前保存过的数据 // 如果之前没有数据的话,设置默认量 $instance = wp_parse_args( (array)$instance, array( 'title' => '博客统计', 'establish_time' => '2016-09-28' ) ); $title = htmlspecialchars($instance['title']); $establish_time = htmlspecialchars($instance['establish_time']); // establish_time => 建站日期 // 表格布局输出表单 $output = '
标题 | '; $output .= ''; $output .= ' |
建站日期: | '; $output .= ''; $output .= ' |
( ! ) Warning: session_start(): Cannot start session when headers already sent in D:\wamp64\www\wp-content\themes\ripro\inc\theme-functions.php on line 2638 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 410936 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 411208 | require( 'D:\wamp64\www\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.0002 | 411560 | require_once( 'D:\wamp64\www\wp-load.php' ) | ...\wp-blog-header.php:13 |
4 | 0.0003 | 412240 | require_once( 'D:\wamp64\www\wp-config.php' ) | ...\wp-load.php:37 |
5 | 0.0003 | 413488 | require_once( 'D:\wamp64\www\wp-settings.php' ) | ...\wp-config.php:90 |
6 | 0.1567 | 6758200 | do_action( ) | ...\wp-settings.php:540 |
7 | 0.1567 | 6758576 | WP_Hook->do_action( ) | ...\plugin.php:478 |
8 | 0.1567 | 6758576 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:311 |
9 | 0.1858 | 7507552 | wp_widgets_init( ) | ...\class-wp-hook.php:287 |
10 | 0.1888 | 7537248 | do_action( ) | ...\widgets.php:1765 |
11 | 0.1888 | 7537624 | WP_Hook->do_action( ) | ...\plugin.php:478 |
12 | 0.1888 | 7537624 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:311 |
13 | 0.1888 | 7538752 | caozhuti_widgets_init( ) | ...\class-wp-hook.php:287 |
14 | 0.1888 | 7538752 | is_cao_site_list_blog( ) | ...\functions.php:153 |
15 | 0.1888 | 7538752 | session_start ( ) | ...\theme-functions.php:2638 |
( ! ) Warning: Cannot modify header information - headers already sent by (output started at D:\wamp64\www\wp-content\themes\ripro-child\tongji.php:57) in D:\wamp64\www\wp-includes\pluggable.php on line 1281 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 410936 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 411208 | require( 'D:\wamp64\www\wp-blog-header.php' ) | ...\index.php:17 |
3 | 1.6126 | 15070600 | require_once( 'D:\wamp64\www\wp-includes\template-loader.php' ) | ...\wp-blog-header.php:19 |
4 | 1.6126 | 15070600 | do_action( ) | ...\template-loader.php:13 |
5 | 1.6126 | 15070976 | WP_Hook->do_action( ) | ...\plugin.php:478 |
6 | 1.6126 | 15070976 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:311 |
7 | 1.6140 | 15135168 | redirect_canonical( ) | ...\class-wp-hook.php:287 |
8 | 1.6183 | 15140120 | wp_redirect( ) | ...\canonical.php:615 |
9 | 1.6184 | 15140176 | header ( ) | ...\pluggable.php:1281 |
( ! ) Warning: Cannot modify header information - headers already sent by (output started at D:\wamp64\www\wp-content\themes\ripro-child\tongji.php:57) in D:\wamp64\www\wp-includes\pluggable.php on line 1284 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 410936 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 411208 | require( 'D:\wamp64\www\wp-blog-header.php' ) | ...\index.php:17 |
3 | 1.6126 | 15070600 | require_once( 'D:\wamp64\www\wp-includes\template-loader.php' ) | ...\wp-blog-header.php:19 |
4 | 1.6126 | 15070600 | do_action( ) | ...\template-loader.php:13 |
5 | 1.6126 | 15070976 | WP_Hook->do_action( ) | ...\plugin.php:478 |
6 | 1.6126 | 15070976 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:311 |
7 | 1.6140 | 15135168 | redirect_canonical( ) | ...\class-wp-hook.php:287 |
8 | 1.6183 | 15140120 | wp_redirect( ) | ...\canonical.php:615 |
9 | 1.6303 | 15140280 | header ( ) | ...\pluggable.php:1284 |