Skip to content
Commits on Source (2)
......@@ -11,5 +11,3 @@ function ai_privacy_policy_link(){
return '<a class="privacy-policy-link" href="https://www.autistici.org/who/privacy-policy">Privacy policy</a>';
}
add_filter('the_privacy_policy_link', 'ai_privacy_policy_link');
?>
......@@ -39,5 +39,3 @@ add_filter('close_comments_for_post_types', function ($post_types){
return $post_types;
});
?>
......@@ -103,5 +103,3 @@ foreach ($noembed_site as $site){
wp_oembed_add_provider('http://www.arkiwi.org/*','http://www.arkiwi.org/oembed/', false );
/* bambuser */
wp_oembed_add_provider('http://*.bambuser.com/*','http://api.bambuser.com/oembed', false);
?>
......@@ -10,5 +10,3 @@
add_filter('http_headers_useragent', function(){
return 'WordPress/' . get_bloginfo( 'version' ) . '; ' . network_home_url();
});
?>
<?php
/*
* Plugin Name: A/I - Default HTTPS siteurl
* Description: Set the default siteurl to HTTPS for new blogs
* Version: 0.0.1
* Author: Autistici/Inventati
* Author URI: https://autistici.org
*/
add_filter('wp_initialize_site_args', function($args, $site) {
$url = untrailingslashit('https://' . $site->domain . $site->path);
$args['options']['home'] = $url;
$args['options']['siteurl'] = $url;
return $args;
}, 10, 2);
......@@ -6,5 +6,5 @@
Author: Autistici/Inventati
Author URI: https://autistici.org
*/
function wp_password_change_notification() {}
?>
function wp_password_change_notification() {}
......@@ -27,5 +27,3 @@ add_filter( 'wp_check_filetype_and_ext', function( $types, $file, $filename, $mi
}
return $types;
}, 1, 5);
?>