wp/wp-trackback.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
--- a/wp/wp-trackback.php	Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-trackback.php	Tue Dec 15 13:49:49 2020 +0100
@@ -9,7 +9,7 @@
  */
 
 if ( empty( $wp ) ) {
-	require_once( dirname( __FILE__ ) . '/wp-load.php' );
+	require_once __DIR__ . '/wp-load.php';
 	wp( array( 'tb' => '1' ) );
 }
 
@@ -20,9 +20,9 @@
  *
  * @since 0.71
  *
- * @param mixed  $error         Whether there was an error.
- *                              Default '0'. Accepts '0' or '1', true or false.
- * @param string $error_message Error message if an error occurred.
+ * @param int|bool $error         Whether there was an error.
+ *                                Default '0'. Accepts '0' or '1', true or false.
+ * @param string   $error_message Error message if an error occurred.
  */
 function trackback_response( $error = 0, $error_message = '' ) {
 	header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) );