Skip to content

[FIX] create_function is now deprecated #10

@DaveyJake

Description

@DaveyJake

On line 198, replace this line:

add_filter( $type->name . '_rewrite_rules', create_function( '$rules', 'return array();' ), 11 );

with this line:

add_filter( $type->name . '_rewrite_rules', '__return_empty_array', 11 );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions