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

Undefined index: 'extension' #139

Open
zaerl opened this issue Nov 16, 2022 · 0 comments
Open

Undefined index: 'extension' #139

zaerl opened this issue Nov 16, 2022 · 0 comments
Assignees

Comments

@zaerl
Copy link
Contributor

zaerl commented Nov 16, 2022

In PHP 7.2 an attachment URL without extension generates a:

Notice: Undefined index: extension in /var/www/html/wp-content/plugins/wordpress-importer/class-wp-import.php on line 1043.

A conditional check must be made here.

See: https://www.php.net/manual/en/function.pathinfo.php#example-2264

@zaerl zaerl self-assigned this Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant