summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-10 20:23:06 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-10 20:23:06 +0000
commit931c1f413d9fdcd218f9994c8da48b5e6d0542eb (patch)
tree3b20e9d54ad9bd6fb3f05ae9ad1d25225f56b327
parent99d82e916d832364da3d255f5ebba071c164b96c (diff)
downloadwordpress-mu-931c1f413d9fdcd218f9994c8da48b5e6d0542eb.tar.gz
wordpress-mu-931c1f413d9fdcd218f9994c8da48b5e6d0542eb.tar.xz
wordpress-mu-931c1f413d9fdcd218f9994c8da48b5e6d0542eb.zip
moved function from plugin to core.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@157 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r--wp-inst/wp-content/mu-plugins/blogs-header.php13
-rw-r--r--wp-inst/wp-includes/pluggable-functions.php15
2 files changed, 15 insertions, 13 deletions
diff --git a/wp-inst/wp-content/mu-plugins/blogs-header.php b/wp-inst/wp-content/mu-plugins/blogs-header.php
index 76d33af..a50a524 100644
--- a/wp-inst/wp-content/mu-plugins/blogs-header.php
+++ b/wp-inst/wp-content/mu-plugins/blogs-header.php
@@ -7,18 +7,5 @@ function blogs_header() {
print "<div style='position: absolute; top: 0px; width: 100%; background: #eee; border-bottom: 1px solid #333;'><table width='100%' border=0 cellspacing=0 cellpadding=0><td align='left'><a href='http://www.wordpress.com'>WordPress.com</a></td><td align='right'><a href='http://" . $current_site->domain . $current_site->path . "wp-newblog.php'>Get Your Own Blog</a></td></table></div>";
}
*/
-function x_headers() {
- global $current_site, $current_blog, $WPMU_date;
-
- print "<meta name='X-totalblogs' content='" . get_blog_count() . "' />\n";
- print "<meta name='X-rootblog' content='http://" . $current_site->domain . $current_site->path. "' />\n";
- print "<meta name='X-created-on' content='" . $current_blog->registered . "' />\n";
- if( empty( $WPMU_date ) == false )
- print "<meta name='X-wpmu-date' content='" . $WPMU_date . "' />\n";
-
-
-}
-add_action('wp_head', "x_headers" );
-
?>
diff --git a/wp-inst/wp-includes/pluggable-functions.php b/wp-inst/wp-includes/pluggable-functions.php
index c6cb5cc..1a85624 100644
--- a/wp-inst/wp-includes/pluggable-functions.php
+++ b/wp-inst/wp-includes/pluggable-functions.php
@@ -313,4 +313,19 @@ function wp_notify_moderator($comment_id) {
}
endif;
+if ( !function_exists('x_headers') ) :
+function x_headers() {
+ global $current_site, $current_blog, $WPMU_date;
+
+ print "<meta name='X-totalblogs' content='" . get_blog_count() . "' />\n";
+ print "<meta name='X-rootblog' content='http://" . $current_site->domain . $current_site->path. "' />\n";
+ print "<meta name='X-created-on' content='" . $current_blog->registered . "' />\n";
+ if( empty( $WPMU_date ) == false )
+ print "<meta name='X-wpmu-date' content='" . $WPMU_date . "' />\n";
+
+
+}
+add_action('wp_head', "x_headers" );
+endif;
+
?>