mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
WLW manifest from josephscott. fixes #5023 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7f61116c5b
commit
60fdc763b6
@ -136,6 +136,7 @@ add_filter('comment_email', 'antispambot');
|
|||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
add_action('wp_head', 'rsd_link');
|
add_action('wp_head', 'rsd_link');
|
||||||
|
add_action('wp_head', 'wlwmanifest_link');
|
||||||
add_action('wp_head', 'locale_stylesheet');
|
add_action('wp_head', 'locale_stylesheet');
|
||||||
add_action('publish_future_post', 'wp_publish_post', 10, 1);
|
add_action('publish_future_post', 'wp_publish_post', 10, 1);
|
||||||
add_action('wp_head', 'noindex', 1);
|
add_action('wp_head', 'noindex', 1);
|
||||||
@ -165,4 +166,4 @@ add_action('template_redirect', 'wp_old_slug_redirect');
|
|||||||
add_action('edit_post', 'wp_check_for_changed_slugs');
|
add_action('edit_post', 'wp_check_for_changed_slugs');
|
||||||
add_action('edit_form_advanced', 'wp_remember_old_slug');
|
add_action('edit_form_advanced', 'wp_remember_old_slug');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -829,6 +829,11 @@ function rsd_link() {
|
|||||||
echo ' <link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n";
|
echo ' <link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function wlwmanifest_link() {
|
||||||
|
echo ' <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="'
|
||||||
|
. get_bloginfo('wpurl') . '/wp-includes/wlwmanifest.xml" /> ';
|
||||||
|
}
|
||||||
|
|
||||||
function noindex() {
|
function noindex() {
|
||||||
// If the blog is not public, tell robots to go away.
|
// If the blog is not public, tell robots to go away.
|
||||||
if ( '0' == get_option('blog_public') )
|
if ( '0' == get_option('blog_public') )
|
||||||
|
BIN
wp-includes/images/wlw/WpComments.png
Normal file
BIN
wp-includes/images/wlw/WpComments.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
wp-includes/images/wlw/WpIcon.png
Normal file
BIN
wp-includes/images/wlw/WpIcon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 779 B |
BIN
wp-includes/images/wlw/WpWatermark.png
Normal file
BIN
wp-includes/images/wlw/WpWatermark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
43
wp-includes/wlwmanifest.xml
Normal file
43
wp-includes/wlwmanifest.xml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
|
||||||
|
<manifest xmlns="http://schemas.microsoft.com/wlw/manifest/weblog">
|
||||||
|
|
||||||
|
<options>
|
||||||
|
<clientType>WordPress</clientType>
|
||||||
|
<supportsKeywords>Yes</supportsKeywords>
|
||||||
|
</options>
|
||||||
|
|
||||||
|
<weblog>
|
||||||
|
<serviceName>WordPress</serviceName>
|
||||||
|
<imageUrl>images/wlw/WpIcon.png</imageUrl>
|
||||||
|
<watermarkImageUrl>images/wlw/WpWatermark.png</watermarkImageUrl>
|
||||||
|
<homepageLinkText>View site</homepageLinkText>
|
||||||
|
<adminLinkText>Dashboard</adminLinkText>
|
||||||
|
<adminUrl>
|
||||||
|
<![CDATA[
|
||||||
|
{blog-postapi-url}/../wp-admin/
|
||||||
|
]]>
|
||||||
|
</adminUrl>
|
||||||
|
<postEditingUrl>
|
||||||
|
<![CDATA[
|
||||||
|
{blog-postapi-url}/../wp-admin/post.php?action=edit&post={post-id}
|
||||||
|
]]>
|
||||||
|
</postEditingUrl>
|
||||||
|
</weblog>
|
||||||
|
|
||||||
|
<buttons>
|
||||||
|
<button>
|
||||||
|
<id>0</id>
|
||||||
|
<text>Manage Comments</text>
|
||||||
|
<imageUrl>images/wlw/WpComments.png</imageUrl>
|
||||||
|
<clickUrl>
|
||||||
|
<![CDATA[
|
||||||
|
{blog-postapi-url}/../wp-admin/edit-comments.php
|
||||||
|
]]>
|
||||||
|
</clickUrl>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</buttons>
|
||||||
|
|
||||||
|
</manifest>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user