Re:Google dedicates engineering team to accelerate developme...
by kevinyen on Monday February 05, 2018 @07:12PM
(#16313453)
Wordpress has built-in REST API, beginning from their 4.7 release.
http://v2.wp-api.org/
Re:Google dedicates engineering team to accelerate developme...
by pathartl on Tuesday February 06, 2018 @11:20AM
(#16317225)
I'm talking about their PHP API
Re:Google dedicates engineering team to accelerate developme...
by sethrin on Monday February 05, 2018 @11:38PM
(#16314475)
What gave you the impression that WP was object-oriented?
Re:Google dedicates engineering team to accelerate developme...
by pathartl on Tuesday February 06, 2018 @11:22AM
(#16317239)
I guess you're right, it's really not. Some things are broken out into objects (WP_Post, WP_Term, etc) but I'm pretty sure that's only to utilize the PHP object cache
Re:Google dedicates engineering team to accelerate developme...
by sethrin on Tuesday February 06, 2018 @05:06PM
(#16320359)
WP was itself released a little after PHP acquired classes; before that PHP was purely procedural. However, WP was a fork of an older project, and they kept things procedural in order to maintain backwards compatibility with the previous project. One cannot fault them for that decision in that context. However, apparently we are stuck with the consequences for the foreseeable future. On that basis, I wish that Google were not investing any further time and effort into what I sincerely hope can be described as the last popular procedural codebase in existence.
Really I think where WordPress actually lacks is in the API department. The almost non-sensical approach to partially implemented OOP kills any ambition I have to create a site without my own weird abstraction layer I wrote on top of it all.