Skip to content

Prevent naming the plugin 'lean' #32

@zzuga

Description

@zzuga

Steps to reproduce and a minimal demo of the problem

Run the new-wp-plugin generator as described here and name the plugin 'lean'

Current behavior

You will notice the the Acf helper functions stop working.

Expected/desired behavior

Acf helper functions should keep on working.

Other information

The namespace for the generated wp-plugin/src/Acf.php is conflicting with the one for wp-acf package, so none of the Acf helper functions work. Running composer install says:

Warning: Ambiguous class resolution, "Lean\Acf" was found in both "$baseDir . '/src/Acf.php" and "/var/www/api.lean.dev/htdocs/wp-content/plugins/lean/vendor/moxie-lean/wp-acf/src/Acf.php", the first will be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions