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

Add optional $make_dir param. #1

Open
wants to merge 5 commits into
base: add/font-dir-default-non-persisted
Choose a base branch
from

Conversation

azaozz
Copy link

@azaozz azaozz commented Mar 19, 2024

This also depend only on wp_is_writable( WP_CONTENT_DIR ) to change the location to /uploads/fonts, and doesn't try to create a dir.

Also, current tests fail, would need fixing because of the new param, and because the workaround to create a file to prevent creation of the dir doesn't work now.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Depend only on `wp_is_writable( WP_CONTENT_DIR )` to change the location to /uploads/fonts.
Copy link

github-actions bot commented Mar 19, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props azaozz, peterwilsoncc.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@peterwilsoncc
Copy link

@azaozz Can this be opened against the WordPress org so it shows up in trac, #core-firehose, and the actions run.

azaozz added 3 commits March 19, 2024 17:51
add test-only filter, add 'create' param to function calls, etc.
matiasbenedetto pushed a commit that referenced this pull request Oct 15, 2024
…Info screen.

This resolves a fatal error if `strict_types` PHP setting is enabled:
{{{
Argument #1 ($num) must be of type float, string given
}}}

Since the goal of the Site Health Info screen is to display raw values where possible, the `number_format()` call here does not seem to provide any benefit.

Props krishneup, sabernhardt, audrasjb, SergeyBiryukov.
Fixes #60364.

git-svn-id: https://develop.svn.wordpress.org/trunk@58847 602fd350-edb4-49c9-b593-d223f7449a82
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.

2 participants