WordPress.org

Forums

P3 (Plugin Performance Profiler)
[resolved] Small Php Strict Error (4 posts)

  1. LehaMotovilov
    Member
    Posted 1 year ago #

    Strict
    Only variables should be passed by reference
    wp-content/plugins/p3-profiler/p3-profiler.php:56

    https://wordpress.org/plugins/p3-profiler/

  2. maxwelton
    Member
    Posted 1 year ago #

    This plugin will not install properly or run in WP debug mode because of this error. Be nice to fix this one, it's a little ironic (not perfect myself, of course) that a plugin that measures efficiency creates an inefficiency.

  3. maxwelton
    Member
    Posted 1 year ago #

    The fix for this, BTW, is to remove the explode function to its own line:

    // Ajax actions
    $end_url = explode( '/', $_SERVER['PHP_SELF'] );
    if ( is_admin() && 'admin-ajax.php' == end( $end_url ) ) {
  4. Kurt Payne
    Member
    Plugin Contributor

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • P3 (Plugin Performance Profiler)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.