WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. LehaMotovilov
    Member
    Posted 5 months 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 5 months 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 5 months 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 5 months ago #

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.