Knowledge is a familiarity, awareness, or understanding of someone or something, such as facts, information, descriptions, or skills, which is acquired through experience or education by perceiving, discovering, or learning.
- WordPress nonces are not cryptographic nonces, as the latter are used only once, and the former are not:
Nonces are regenerated every 12h, but are valid for 24h, hence that code. (12h = 1 tick, and they’re valid for two ticks)
Move a site to a new domain
Move a site workflow:
- Delete existing domain mappings for the site.
wp search replace $old_url $new_url --all-tables; wp cache flush, avoiding trailing slashes.
wp rewrite flush --url=$new_url; wp rewrite flush;
- Login to the network site, edit the site, press Save Changes. (not sure why)
- Verify site loads and login works.
- re-add domain.
- restart browsers because of cached redirects.
Change root site
To change the root site in a multisite network:
define( 'BLOG_ID_CURRENT_SITE', 1 );
Plugins might not be compatbile with this change.