Skip to content

Commit

Permalink
主页二维码不显示
Browse files Browse the repository at this point in the history
精简下代码
  • Loading branch information
jeeinn authored Dec 16, 2019
1 parent 8f349a3 commit 766c923
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/site-card.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>

<?php
if($link_url=="") $link_url = get_permalink($post->ID);
$qrurl = $link_url;
$qrurl = $link_url ?: get_permalink($post->ID);
$is_html = '';
if(get_post_meta($post->ID, '_wechat_qr', true)){
$qrurl="<img src='" . get_post_meta(get_the_ID(), '_wechat_qr', true) . "' width='128'>";
Expand Down

0 comments on commit 766c923

Please sign in to comment.