-
Notifications
You must be signed in to change notification settings - Fork 65
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
Review / questions #2
Comments
Will fix.
This is for compatibility.
Core uses it, so it's a pretty stable API that does exactly what I want. :)
Indeed, the idea is to use exactly the same schema here. The only difference is an extra index on
This is intentional, to match the format of the other
(Whereby "a dmi" you mean "admin" 😉) It should be OK, the only problem is that it needs to be loaded post-WP-bootstrap, as Alternatively, we can call
They're added to the inline submenu for the edit site page, rather than on the full page.
I'd agree, but most of these can actually be given by either GET or POST. (Worth mentioning that unlike PHP's use of
That's intentional right now; this would break Happytables, for example. That said, I do want to do some sort of canonical redirection, but will look at that soonish.
Will fix. |
Fixed aforementioned issues. :) |
Like it, so much cleaner than the “old” plugin that is typically used to do this. I have a few questions etc below. I did this while offline so sorry for no links, however having said that, you can’t comment on lines for committed stuff, unless maybe you do a new branch from the first hash, then create a pull-request to do a review of the whole project!
bootstrap()
callingstartup()
seems it would make more sense to namebootstrap
perform_checks()
or something, then callstartup()
from the controlling caller code.define( 'DOMAIN_MAPPING', 1 );
is this meant to be a boolean?dbDelta
wuuuuut… moving on…' WHERE blog_id = %d', $site
are you trying to use the same table schema as the old plugin?class-mapping.php:364
check for WP_Error, however in seemsget_by_domain()
can only return an instance ornull
create()
it seems you only try create the domain mapping table the fist time a domain mapping is attempted to be added. Given that this needs to be done in the a dmi (from that I can tell fromcreate_table()
) do you think that could be problematic? Thinking wp-cli commands, install scripts etc.$_REQUEST
necessary though out the admin? I always wince a little when it is always$_GET
/$_POST
exclusively.COOKIE_DOMAIN
is potentially a bit full-on as without WP_DEBUG I think 99% of people wold miss the X-Mercator header, and you’ll just get a white screen 500 error. Would it be so bad to show this message if! WP_DEBUG
The text was updated successfully, but these errors were encountered: