I noticed that some of the docs require a login, for ex: https://wpcalypso.wordpress.com/devdocs/design Anyone know if this is a bug, or part of the new approach?
I noticed that some of the docs require a login, for ex: https://wpcalypso.wordpress.com/devdocs/design Anyone know if this is a bug, or part of the new approach?
The difference is that rather than using the admin interface that ships with WordPress, we're encouraging usage of this new interface. It still talks to WordPress via a PHP-powered REST API.
In short, it's a new _interface_ for WordPress, not a replacement for WordPress itself.
> https://wpcalypso.wordpress.com/devdocs/design Anyone know if this is a bug, or part of the new approach?
Bug. That's one of our internal staging sites and the devdocs are stripped when pushed out to the production URL.
I've opened an issue for you: https://github.com/Automattic/wp-calypso/issues/577
EDIT: Not private! Just requires a login from any WordPress.com account. There's discussion going on on that ticket to move it somewhere that doesn't require a login but it might not be possible.
Thanks for filing the issue. I will reply there.
> So what does the Node powered REST API provide that PHP powered traditional Wordpress API does not?
Our REST API is PHP-powered and built on top of WordPress: https://developer.wordpress.com/docs/api/
Calypso is a React-based administration client for that API.
As far as I can tell, the node.js portion is just returning an empty admin.html, and that's where client-side React.js kicks in? It seems PHP would be able to do that pretty well, with the advantage of single technology and a more obvious approach for the self-hosted wp.org sites.
https://github.com/Automattic/wp-calypso/blob/master/docs/gu...
I wouldn't expect so. Calypso relies upon WordPress to power the API. Automattic still has a dedicated team devoted to the WordPress project, working alongside the rest of the WordPress community.
> I noticed that some of the docs require a login, for ex: https://wpcalypso.wordpress.com/devdocs/design Anyone know if this is a bug, or part of the new approach?
Good question. Issue filed here: https://github.com/Automattic/wp-calypso/issues/577. I'm not positive, but I think it might be because several of our components require a logged-in user in order to render correctly.