Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fbd3c6d

Browse files
authored
主页二维码不显示
回滚一下
1 parent 766c923 commit fbd3c6d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎templates/site-card.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>
22

33
<?php
4-
$qrurl = $link_url ?: get_permalink($post->ID);
4+
if($link_url=="") $link_url = get_permalink($post->ID);
5+
$qrurl = $link_url;
56
$is_html = '';
67
if(get_post_meta($post->ID, '_wechat_qr', true)){
78
$qrurl="<img src='" . get_post_meta(get_the_ID(), '_wechat_qr', true) . "' width='128'>";

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /