Frett
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress MU Domain Mapping] Mix http and https sites?We developed a branch [1] that accomplishes the mixed http/https for our own multi-site install. On the network admin add/edit domain screen it provides a drop-down with 3 options (http, https, or default).
The default option causes the domain-mapping plugin to work how it currently works (uses the same protocol as the current request). http and https force all generated links to utilize the specified protocol.
[1] https://github.com/frett/wordpress-mu-domain-mapping/tree/forceProtocol
I’d like the network admin list of all domains to stick around. Our multi-site install has 1000+ sites, but only about 5% of those sites use domain mapping.
The network admin view is an easy way to see which sites are actually using domain mapping and quickly admin them when needed.
the database should automatically update itself when you use my modified version of the plugin and access the domain mapping settings page (/wp-admin/network/settings.php?page=dm_admin_page). This is the same place that automatically creates the database table.
after the db is updated, the table ($wpdb->base_prefix . ‘domain_mapping’) should contain a protocol column.
updated it to use a varchar(20) and to filter the submitted protocol to be http or https only since MySQL will no longer filter invalid protocols.