Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
cfb805fa
Commit
cfb805fa
authored
Mar 11, 2017
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove invalid microdata from question lists
parent
f5116985
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
format.php
qa-include/app/format.php
+2
-3
No files found.
qa-include/app/format.php
View file @
cfb805fa
...
...
@@ -309,7 +309,7 @@ function qa_post_html_fields($post, $userid, $cookieid, $usershtml, $dummy, $opt
$isbyuser
=
qa_post_is_by_user
(
$post
,
$userid
,
$cookieid
);
$anchor
=
urlencode
(
qa_anchor
(
$post
[
'basetype'
],
$postid
));
$elementid
=
isset
(
$options
[
'elementid'
])
?
$options
[
'elementid'
]
:
$anchor
;
$microdata
=
qa_opt
(
'use_microdata'
);
$microdata
=
qa_opt
(
'use_microdata'
)
&&
!
empty
(
$options
[
'contentview'
])
;
$isselected
=
@
$options
[
'isselected'
];
$favoritedview
=
@
$options
[
'favoritedview'
];
$favoritemap
=
$favoritedview
?
qa_get_favorite_non_qs_map
()
:
array
();
...
...
@@ -467,10 +467,9 @@ function qa_post_html_fields($post, $userid, $cookieid, $usershtml, $dummy, $opt
// ...with microformats if appropriate
if
(
$microdata
)
{
// vote display might be
compacted
so use meta tag for true count
// vote display might be
formatted (e.g. '2k')
so use meta tag for true count
$netvoteshtml
.=
'<meta itemprop="upvoteCount" content="'
.
qa_html
(
$netvotes
)
.
'"/>'
;
$upvoteshtml
.=
'<meta itemprop="upvoteCount" content="'
.
qa_html
(
$upvotes
)
.
'"/>'
;
$downvoteshtml
.=
'<meta itemprop="upvoteCount" content="'
.
qa_html
(
$downvotes
)
.
'"/>'
;
}
// Pass information on vote viewing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment