• I am testing the combined upgrades of WP 3.7.1 and the Advanced Custom Fields plugin v4.3.1.

    I receive a debug warning when using a Relationship field with a custom post type:
    Strict Standards: Only variables should be passed by reference in /Users/rob/Documents/wwwroot/awards.ixda.org/wp-content/plugins/custom-post-type-permalinks/custom-post-type-permalinks.php on line 308

    The old line 308:

    if( "%post_id%" == $parent_structure or "%post_id%" == array_pop( explode( "/", $parent_structure ) ) ) {

    The new line that I edited to avoid error:

    $tempVarOne = explode( "/", $parent_structure );
    $tempVarTwo = array_pop( $tempVarOne );
    if( "%post_id%" == $parent_structure or "%post_id%" == $tempVarTwo ) {

    I know it isn’t pretty, but it works now.

    Will this be addressed in a future update? Will this edit work long term? I’m only guessing at a fix here.

    http://wordpress.org/plugins/custom-post-type-permalinks/

  • The topic ‘Strict Standards warning on line 308’ is closed to new replies.