Directory

Replace 'else if' with 'elseif' in '/wp-includes/ID3/module.audio.ogg… by akramulhasan · Pull Request #4294 · WordPress/wordpress-develop · GitHub
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

Replace 'else if' with 'elseif' in '/wp-includes/ID3/module.audio.ogg… #4294

Closed
wants to merge 1 commit into from

Conversation

akramulhasan
Copy link

The WordPress coding standards recommend using 'elseif' instead of 'else if' for conditionals to ensure consistency in the code syntax. This is because 'else if' is not compatible with the colon syntax for if|elseif blocks.

However, in the WordPress core file '/wp-includes/ID3/module.audio.ogg.php', on line 608, 'else if' is used for conditionals. To ensure consistency with the WordPress coding standards and improve the readability and maintainability of the code, I propose replacing 'else if' with 'elseif' on this line.

Trac ticket:
https://core.trac.wordpress.org/ticket/57839

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.

….php'

The WordPress coding standards recommend using 'elseif' instead of 'else if' for conditionals to ensure consistency in the code syntax. This is because 'else if' is not compatible with the colon syntax for if|elseif blocks.

However, in the WordPress core file '/wp-includes/ID3/module.audio.ogg.php', on line 608, 'else if' is used for conditionals. To ensure consistency with the WordPress coding standards and improve the readability and maintainability of the code, I propose replacing 'else if' with 'elseif' on this line.
@audrasjb
Copy link
Contributor

audrasjb commented Apr 4, 2023

Thanks for the PR @akramulhasan.

However, this is an actively maintained upstream library, so this has to be fixed in the related upstream repository, not in WordPress core.

Here is the lib: https://github.com/JamesHeinrich/getID3

Closing this PR for now.

@audrasjb audrasjb closed this Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants