Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#958 changed dirname call to WP method #1019

Merged
merged 1 commit into from
May 26, 2023

Conversation

kingthrillgore
Copy link
Contributor

workerB

Closes #958

What type of PR is this? (put an x to all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Link to test

Can be tested with a local installation

Description

This PR changes the asset_file_path method to use a WordPress method, get_template_directory() to address a user-discovered error and to be forward looking as WordPress evolves.

Related Tickets & Documents

#958

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📜 README.md
  • 📓 Confluence
  • 🙅 no documentation needed

Others

  • 🦮 Is this issue accessible? (Section 508/WCAG 2.0AA)
  • 🙌 Does this issue pass all the linting? (PHPCS, ESLint, SassLint) (Only linted for PHP 7, we have outstanding fixes for PHP 8 to address in another task)

[optional] Are there any post-deployment tasks we need to perform?

None

@kingthrillgore kingthrillgore self-assigned this May 26, 2023
Copy link
Contributor

@webdevstudios-hosting webdevstudios-hosting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @Ghostfreeman Thanks!

Copy link
Contributor

@khleomix khleomix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Thanks!

@khleomix khleomix merged commit cdda151 into main May 26, 2023
3 checks passed
@khleomix khleomix deleted the feature/958-File-Directory-Path-Broken branch May 26, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File directory path broken for assets file in scripts.php
3 participants