// // 定义小工具的类 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 | 410744 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 411016 | require( 'D:\wamp64\www\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.0001 | 411368 | require_once( 'D:\wamp64\www\wp-load.php' ) | ...\wp-blog-header.php:13 |
4 | 0.0002 | 412048 | require_once( 'D:\wamp64\www\wp-config.php' ) | ...\wp-load.php:37 |
5 | 0.0002 | 413296 | require_once( 'D:\wamp64\www\wp-settings.php' ) | ...\wp-config.php:90 |
6 | 0.1537 | 6756544 | do_action( ) | ...\wp-settings.php:540 |
7 | 0.1537 | 6756920 | WP_Hook->do_action( ) | ...\plugin.php:478 |
8 | 0.1537 | 6756920 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:311 |
9 | 0.1829 | 7505896 | wp_widgets_init( ) | ...\class-wp-hook.php:287 |
10 | 0.1861 | 7535592 | do_action( ) | ...\widgets.php:1765 |
11 | 0.1861 | 7535968 | WP_Hook->do_action( ) | ...\plugin.php:478 |
12 | 0.1861 | 7535968 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:311 |
13 | 0.1861 | 7537096 | caozhuti_widgets_init( ) | ...\class-wp-hook.php:287 |
14 | 0.1861 | 7537096 | is_cao_site_list_blog( ) | ...\functions.php:153 |
15 | 0.1861 | 7537096 | session_start ( ) | ...\theme-functions.php:2638 |
( ! ) Warning: session_start(): Cannot start session when headers already sent in D:\wamp64\www\wp-content\themes\ripro\inc\theme-functions.php on line 1869 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 410744 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 411016 | require( 'D:\wamp64\www\wp-blog-header.php' ) | ...\index.php:17 |
3 | 1.6185 | 15021432 | require_once( 'D:\wamp64\www\wp-includes\template-loader.php' ) | ...\wp-blog-header.php:19 |
4 | 1.6186 | 15021432 | do_action( ) | ...\template-loader.php:13 |
5 | 1.6186 | 15021808 | WP_Hook->do_action( ) | ...\plugin.php:478 |
6 | 1.6186 | 15021808 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:311 |
7 | 1.6211 | 15087560 | cao_retrieve_referral_keyword( ) | ...\class-wp-hook.php:287 |
8 | 1.6211 | 15087560 | session_start ( ) | ...\theme-functions.php:1869 |
( ! ) Warning: session_start(): Cannot start session when headers already sent in D:\wamp64\www\wp-content\themes\ripro\inc\theme-functions.php on line 18 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 410744 | {main}( ) | ...\index.php:0 |
2 | 0.0001 | 411016 | require( 'D:\wamp64\www\wp-blog-header.php' ) | ...\index.php:17 |
3 | 1.6185 | 15021432 | require_once( 'D:\wamp64\www\wp-includes\template-loader.php' ) | ...\wp-blog-header.php:19 |
4 | 1.6333 | 15093672 | include( 'D:\wamp64\www\wp-content\themes\ripro\404.php' ) | ...\template-loader.php:106 |
5 | 1.6333 | 15093672 | get_header( ) | ...\404.php:2 |
6 | 1.6333 | 15094048 | locate_template( ) | ...\general-template.php:41 |
7 | 1.6333 | 15094128 | load_template( ) | ...\template.php:672 |
8 | 1.6333 | 15094464 | require_once( 'D:\wamp64\www\wp-content\themes\ripro-child\header.php' ) | ...\template.php:723 |
9 | 1.7361 | 16415896 | body_class( ) | ...\header.php:40 |
10 | 1.7361 | 16415896 | get_body_class( ) | ...\post-template.php:593 |
11 | 1.7368 | 16416272 | apply_filters( ) | ...\post-template.php:834 |
12 | 1.7368 | 16416672 | WP_Hook->apply_filters( ) | ...\plugin.php:206 |
13 | 1.7368 | 16418176 | cao_body_classes( ) | ...\class-wp-hook.php:289 |
14 | 1.7368 | 16418176 | session_start ( ) | ...\theme-functions.php:18 |
class="error404 hfeed navbar-sticky sidebar-none pagination-infinite_button no-off-canvas elementor-default">
工作日:9:00 - 22:00
节假日:9:00 - 18:00
13147859718
13478677650
业务咨询
技术咨询
智慧水务
数字工厂