[buddypress-trac] [BuddyPress Trac] #6976: bp_core_print_generation_time() should echo only in WP_DEBUG mode

buddypress-trac noreply at wordpress.org
Wed Mar 23 16:24:05 UTC 2016


#6976: bp_core_print_generation_time() should echo only in WP_DEBUG mode
------------------------------+-----------------------------
 Reporter:  slaFFik           |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Component - Core  |    Version:
 Severity:  normal            |   Keywords:
------------------------------+-----------------------------
 Currently `bp_core_print_generation_time()` prints info like this:

 {{{
 <!-- Generated in 0,608 seconds. (103 q) -->
 }}}

 on every page load.

 I believe, that's quite sensitive information, and should NOT be printed
 in normal mode.

 `WP_DEBUG` is more appropriate situation.

 Also, I think we need to increase the `$priority` to something like 9999
 or bigger, as `wp_footer` is rather popular action.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6976>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list