We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cebb7f2 commit e5acc0cCopy full SHA for e5acc0c
1 file changed
mf2-feed.php
@@ -132,3 +132,12 @@ public static function add_html_header() {
132
}
133
134
135
+
136
+// Backcompat for function introduced in WordPress 5.3
137
+if ( ! function_exists( 'get_self_link' ) ) {
138
+ function get_self_link() {
139
+ $host = @parse_url( home_url() );
140
+ return set_url_scheme( 'http://' . $host['host'] . wp_unslash( $_SERVER['REQUEST_URI'] ) );
141
+ }
142
+}
143
0 commit comments