| 12 | | On top of that I think this conversion sends out the wrong message. No matter how I try to look at it, the example is negative. It replaces '''24 lines''' of simple, straightforward, easy to read and understand code with exactly '''498 lines''' of much more complex, harder to read and understand code contained in two new files! In addition the new code seems to introduce bugs, edge cases and unneeded functionality. How can we expect plugin authors to want to do something like that in their plugins? |
| | 12 | On top of that I think this conversion sends out the wrong message. No matter how I try to look at it, the example is negative. It replaces '''24 lines''' of simple, straightforward, easy to read and understand code with exactly '''498 lines''' of much more complex, harder to read and understand code contained in two new files! In addition the new code seems to introduce bugs, edge cases and unneeded functionality. Is that really a typical example on how to use the REST API instead of admin-ajax? How can we expect plugin authors to want to do something like that in their plugins? |