Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Add plugin to set default HTTPS siteurl for new blogs
· 326a0efc
ale
authored
May 01, 2022
326a0efc
Style fixes
· 09be19c6
ale
authored
May 01, 2022
09be19c6
Hide whitespace changes
Inline
Side-by-side
ai-privacy-policy.php
View file @
09be19c6
...
...
@@ -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'
);
?>
close-old-comments.php
View file @
09be19c6
...
...
@@ -39,5 +39,3 @@ add_filter('close_comments_for_post_types', function ($post_types){
return
$post_types
;
});
?>
embed.php
View file @
09be19c6
...
...
@@ -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
);
?>
http-user-agent.php
View file @
09be19c6
...
...
@@ -10,5 +10,3 @@
add_filter
(
'http_headers_useragent'
,
function
(){
return
'WordPress/'
.
get_bloginfo
(
'version'
)
.
'; '
.
network_home_url
();
});
?>
https-siteurl.php
0 → 100644
View file @
09be19c6
<?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
);
remove-password-change-notification.php
View file @
09be19c6
...
...
@@ -6,5 +6,5 @@
Author: Autistici/Inventati
Author URI: https://autistici.org
*/
function
wp_password_change_notification
()
{}
?>
function
wp_password_change_notification
()
{}
upload-mime-types.php
View file @
09be19c6
...
...
@@ -27,5 +27,3 @@ add_filter( 'wp_check_filetype_and_ext', function( $types, $file, $filename, $mi
}
return
$types
;
},
1
,
5
);
?>