-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
good first issueGood for newcomersGood for newcomerstypescriptRequires understanding TypeScriptRequires understanding TypeScript
Description
Description of the bug
When running the create-entry script and including a stylesheet, the prompt for "The hook to use for enqueueing the entry styles:" defaults to wp_enqueue_styles. This is not a valid hook. Instead, both scripts and styles should be enqueued via wp_enqueue_scripts, so I would expect this to be the initial value.
Steps To Reproduce
- Run
npm run create-entry - Enter a slug (ex "test")
- Enter 'y' when prompted "Include a stylesheet for this entry?"
- Enter 'Y' when prompted "Include a PHP file for enqueueing the entry?"
- Press enter to accept the default value for "The hook to use for enqueueing the entry:" (
wp_enqueue_scripts) - Press enter to accept the default value for "The hook to use for enqueueing the entry styles:" (
wp_enqueue_styles) - Observe that the index.php file created uses a
wp_enqueue_styleshook to enqueue styles, which does not load the stylesheet.
Additional Information
It looks like the value is being set here.
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomerstypescriptRequires understanding TypeScriptRequires understanding TypeScript