wlwmanifest_link

Definition:
function wlwmanifest_link() {}

Display the link to the Windows Live Writer manifest file.

Source code

function wlwmanifest_link() {

	echo '<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="'

		. get_bloginfo('wpurl') . '/wp-includes/wlwmanifest.xml" /> ' . "\n";

}

3359

win_is_writable

Definition:
function win_is_writable( $path ) {}

Workaround for Windows bug in is_writable() function

Parameters

  • string $path

Source code

function win_is_writable( $path ) {

	/* will work in despite of Windows ACLs bug

	 * NOTE: use a trailing slash for folders!!!

	 * see http://bugs.php.net/bug.php?id=27609

	 * see http://bugs.php.net/bug.php?id=30931

	 */



	if ( $path[strlen( $path ) - 1] == '/' ) // recursively return a temporary file path

		return win_is_writable( $path . uniqid( mt_rand() ) . '.tmp');

	else if ( is_dir( $path ) )

		return win_is_writable( $path . '/' . uniqid( mt_rand() ) . '.tmp' );

	// check tmp file for read/write capabilities

	$should_delete_tmp_file = !file_exists( $path );

	$f = @fopen( $path, 'a' );

	if ( $f === false )

		return false;

	fclose( $f );

	if ( $should_delete_tmp_file )

		unlink( $path );

	return true;

}

3357

welcome_user_msg_filter

Definition:
function welcome_user_msg_filter( $text ) {}

Ensure that the welcome message is not empty. Currently unused.

Parameters

  • string $text

Source code

function welcome_user_msg_filter( $text ) {

	if ( !$text ) {

		return __( 'Dear User,



Your new account is set up.



You can log in with the following information:

Username: USERNAME

Password: PASSWORD

LOGINLINK



Thanks!



--The Team @ SITE_NAME' );

	}

	return $text;

}

3353

weblog_ping

Definition:
function weblog_ping($server = '', $path = '') {}

Send a pingback.

Parameters

  • string $server: Host of blog to connect to.
  • string $path: Path to send the ping.

Source code

function weblog_ping($server = '', $path = '') {

	global $wp_version;

	include_once(ABSPATH . WPINC . '/class-IXR.php');

	include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php');



	// using a timeout of 3 seconds should be enough to cover slow servers

	$client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path));

	$client->timeout = 3;

	$client->useragent .= ' -- WordPress/'.$wp_version;



	// when set to true, this outputs debug messages by itself

	$client->debug = false;

	$home = trailingslashit( home_url() );

	if ( !$client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping

		$client->query('weblogUpdates.ping', get_option('blogname'), $home);

}

3351