Skip to content

Commit f1aa921

Browse files
committed
WLW manifest from josephscott. fixes WordPress#5023 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6192 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f027350 commit f1aa921

6 files changed

Lines changed: 50 additions & 1 deletion

File tree

wp-includes/default-filters.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136

137137
// Actions
138138
add_action('wp_head', 'rsd_link');
139+
add_action('wp_head', 'wlwmanifest_link');
139140
add_action('wp_head', 'locale_stylesheet');
140141
add_action('publish_future_post', 'wp_publish_post', 10, 1);
141142
add_action('wp_head', 'noindex', 1);
@@ -165,4 +166,4 @@
165166
add_action('edit_post', 'wp_check_for_changed_slugs');
166167
add_action('edit_form_advanced', 'wp_remember_old_slug');
167168

168-
?>
169+
?>

wp-includes/general-template.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,11 @@ function rsd_link() {
829829
echo ' <link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n";
830830
}
831831

832+
function wlwmanifest_link() {
833+
echo ' <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="'
834+
. get_bloginfo('wpurl') . '/wp-includes/wlwmanifest.xml" /> ';
835+
}
836+
832837
function noindex() {
833838
// If the blog is not public, tell robots to go away.
834839
if ( '0' == get_option('blog_public') )
1.41 KB
Loading

wp-includes/images/wlw/WpIcon.png

779 Bytes
Loading
8.09 KB
Loading

wp-includes/wlwmanifest.xml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
3+
<manifest xmlns="http://schemas.microsoft.com/wlw/manifest/weblog">
4+
5+
<options>
6+
<clientType>WordPress</clientType>
7+
<supportsKeywords>Yes</supportsKeywords>
8+
</options>
9+
10+
<weblog>
11+
<serviceName>WordPress</serviceName>
12+
<imageUrl>images/wlw/WpIcon.png</imageUrl>
13+
<watermarkImageUrl>images/wlw/WpWatermark.png</watermarkImageUrl>
14+
<homepageLinkText>View site</homepageLinkText>
15+
<adminLinkText>Dashboard</adminLinkText>
16+
<adminUrl>
17+
<![CDATA[
18+
{blog-postapi-url}/../wp-admin/
19+
]]>
20+
</adminUrl>
21+
<postEditingUrl>
22+
<![CDATA[
23+
{blog-postapi-url}/../wp-admin/post.php?action=edit&post={post-id}
24+
]]>
25+
</postEditingUrl>
26+
</weblog>
27+
28+
<buttons>
29+
<button>
30+
<id>0</id>
31+
<text>Manage Comments</text>
32+
<imageUrl>images/wlw/WpComments.png</imageUrl>
33+
<clickUrl>
34+
<![CDATA[
35+
{blog-postapi-url}/../wp-admin/edit-comments.php
36+
]]>
37+
</clickUrl>
38+
</button>
39+
40+
</buttons>
41+
42+
</manifest>
43+

0 commit comments

Comments
 (0)