The title of this forum is called Fixing WordPress, and therefore I opened the topic concerning this issue; it is according to the purpose of this forum.
My remark “your developers“ is related to WordPress, not you moderator. But self-centered people just pick the wrong interpretation of the meaning.
Although this has already occupied quite some time to explain it here, I will try another attempt to clarify the matter for you: it is a logical problem, not a syntax problem.
WordPress is a good software, and it has gained much popularity because of how it has been developed. For simplicity sake, there are two different types of software that can be developed:
(1) One is software which is and remains under the control of the developer(s).
(2) The other is software which allows unknown third-parties to add extensions (plugins) to it, which consequently change how the software operates, and such software is no longer under control of its original developer(s).
WordPress is software from category (2).
Your developers (not you personally moderator) are experienced and talented programmers. And they have aimed at developing WordPress in an efficient way, according to the latest standards of PHP; and this is what all developers should aim to do.
However, they developed WordPress as if it is a category (1) software, they did not take into consideration that WordPress is a category (2) software.
It is impossible to know or preempt how these innumerable plugins worldwide may change the functioning of WordPress. And neither is it meaningful to expect that the manifold plugin developers worldwide are at the same level, or have the same insights as the WordPress developers.
Therefore it would be prudent if the WordPress developers realized and treated WordPress as a category (2) software, and as a consequence would implement precautionary measures –like the example I mentioned here in this topic– to mitigate potential inefficiencies of other people’s plugins.
You can neither correct other people’s plugin code, nor foresee what other blunders they may introduce in the future. But what you could do is to make your category (2) software compatible with PHP 8+ requirements.
If WordPress was a category (1) software, and there would be an instance where an array-key is being addressed which has no value set, then the developers can examine the code and simply prevent the addressing of that array-key when it has no value. And they can do this because as a category (1) software the entire functioning of the software is under their own control. And therefore they can streamline the programming, avoid unnecessary extras, and produce an efficient PHP code.
But with a category (2) software it does not work this way. So with WordPress –which is category (2)– you have a situation where innumerable outside developers have the opportunity to modify the functioning of this software, and not all are capable to integrate their plugin and its functioning correctly into WordPress. As a consequence modern PHP versions are triggered for error handling, and in the course of time this can have a detrimental effect on the performance of a WordPress installation.
The concept I am trying to describe here would improve WordPress’ performance by preemptively preventing such minor PHP issues, like warnings about array-keys without value, from occurring. And as a consequence this would positively affect many thousands –maybe millions– of WordPress installations worldwide.
This is what I am trying to explain here, and I think I have explained it clearly.
I will most likely not open a new ticket for this on WordPress Trac, neither participate in existing discussions. I will be satisfied if you (moderator) could draw the attention of relevant people, who are involved in developing WordPress, to take a look at this topic, and make their own considerations. It is about the concept of how they develop WordPress, it surely is not about a lack of programming skills. It’s about foreseeing and preemptively mitigating problems which other developers –who integrate their plugins into this category (2) software called WordPress– might cause. It’s not about how good WordPress on its own functions.
As I wrote before, I hope this can help to improve WordPress, on this forum which is called Fixing WordPress.
Sincerely,
Gevorg
-
This reply was modified 1 week, 6 days ago by
Gevorg.
-
This reply was modified 1 week, 6 days ago by
Gevorg.