WordPress.org

Ready to get started?Download WordPress

Forums

Latest Custom Post Type Updates
PHP 5.4: Call-time pass-by-reference error (2 posts)

  1. Eric McNiece
    Member
    Posted 1 year ago #

    I started a site on a new PHP 5.4 box and got a few errors, one of which is this:

    [30-Apr-2013 00:16:37 UTC] PHP Fatal error: Call-time pass-by-reference has been removed in /herp/derp.com/web/content/wp-content/plugins/latest-custom-post-type-updates/index.php on line 209

    Looking at line 209:

    if($instance['randomize']) shuffle( &$posts);

    Then reading this:

    StackOverflow FTW

    ... results in this:

    if($instance['randomize']) shuffle( $posts);

    bam.

    http://wordpress.org/extend/plugins/latest-custom-post-type-updates/

  2. David Wood
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for pointing this out! This should be fixed in the next update as I am not even using that line in the next version. I am using a different, hopefully more robust method to randomize the output. If all goes well the next update should be out by the end of this week.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.