WordPress / developer-blog-content

In this GitHub space, WordPress team coordinates content to be published on the Developer Blog. Discussions and montly meetings (first Thu - 13:00 UTC) in WP Slack #core-dev-blog
https://developer.wordpress.org/news
40 stars 5 forks source link

Bug on - How to create an animated timeline plugin #311

Closed narenin closed 2 months ago

narenin commented 2 months ago

Description

I was following a tutorial and noticed an issue with the filename. It's not a typo, but rather a character issue. In the tutorial, a double dash in the filename is mistakenly shown as a single dash, while the code snippet still uses the double dash. When someone copies and pastes the filename, it causes a mismatch.

Step-by-step reproduction instructions

Please list the steps needed to reproduce or verify the feedback. For example:

  1. Go to - https://developer.wordpress.org/news/2024/06/13/how-to-create-an-animated-timeline-plugin/#animated-timeline-plugin-setup In this section you can see the CSS and js files with the full path name, In the filename after the group there should a double dash.
    /assets/scripts/core-blocks/group–animated-timeline.js -> assets/scripts/core-blocks/group--animated-timeline.js
    /assets/styles/core-blocks/group–animated-timeline.css -> /assets/styles/core-blocks/group--animated-timeline.css
  2. As you can see in the snippet - https://developer.wordpress.org/news/2024/06/13/how-to-create-an-animated-timeline-plugin/#register-custom-css-and-javascript-files
narenin commented 2 months ago

@bph Could you please look into this.

bph commented 2 months ago

Thank you for reporting this :-) Isn't that the same as #310? I commented there. Unless I am missing anything, I close this issue as duplicate.