diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/wp-links-opml.php --- a/wp/wp-links-opml.php Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/wp-links-opml.php Tue Dec 15 13:49:49 2020 +0100 @@ -12,13 +12,13 @@ * @package WordPress */ -require_once( dirname( __FILE__ ) . '/wp-load.php' ); +require_once __DIR__ . '/wp-load.php'; header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true ); $link_cat = ''; if ( ! empty( $_GET['link_cat'] ) ) { $link_cat = $_GET['link_cat']; - if ( ! in_array( $link_cat, array( 'all', '0' ) ) ) { + if ( ! in_array( $link_cat, array( 'all', '0' ), true ) ) { $link_cat = absint( (string) urldecode( $link_cat ) ); } } @@ -29,7 +29,7 @@