mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 10:08:27 +00:00
Don't need slash at the beginning.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
924792ffb0
commit
77fa432bae
@ -51,7 +51,7 @@ function update_links() {
|
|||||||
function get_weblogs_updatedfile() {
|
function get_weblogs_updatedfile() {
|
||||||
global $ignore_weblogs_cache;
|
global $ignore_weblogs_cache;
|
||||||
$update = false;
|
$update = false;
|
||||||
$file = ABSPATH . '/wp-content/links-update-cache.xml';
|
$file = ABSPATH . 'wp-content/links-update-cache.xml';
|
||||||
if ($ignore_weblogs_cache) {
|
if ($ignore_weblogs_cache) {
|
||||||
$update = true;
|
$update = true;
|
||||||
} else {
|
} else {
|
||||||
@ -76,7 +76,7 @@ function get_weblogs_updatedfile() {
|
|||||||
$contents = preg_replace("/'/",''',$contents);
|
$contents = preg_replace("/'/",''',$contents);
|
||||||
$contents = preg_replace('|[^[:space:][:punct:][:alpha:][:digit:]]|','',$contents);
|
$contents = preg_replace('|[^[:space:][:punct:][:alpha:][:digit:]]|','',$contents);
|
||||||
|
|
||||||
$cachefp = fopen(ABSPATH . '/wp-content/links-update-cache.xml', "w");
|
$cachefp = fopen(ABSPATH . 'wp-content/links-update-cache.xml', "w");
|
||||||
fwrite($cachefp, $contents);
|
fwrite($cachefp, $contents);
|
||||||
fclose($cachefp);
|
fclose($cachefp);
|
||||||
} else {
|
} else {
|
||||||
@ -147,7 +147,7 @@ if (get_weblogs_updatedfile()) {
|
|||||||
xml_set_element_handler($xml_parser, "startElement", "endElement");
|
xml_set_element_handler($xml_parser, "startElement", "endElement");
|
||||||
|
|
||||||
// Open the XML file for reading
|
// Open the XML file for reading
|
||||||
$fp = fopen(ABSPATH . '/wp-content/links-update-cache.xml', "r")
|
$fp = fopen(ABSPATH . 'wp-content/links-update-cache.xml', "r")
|
||||||
or die("Error reading XML data.");
|
or die("Error reading XML data.");
|
||||||
|
|
||||||
// Read the XML file 16KB at a time
|
// Read the XML file 16KB at a time
|
||||||
|
Loading…
x
Reference in New Issue
Block a user