- fixed post title for restricted post in the User Profile > Posts tab;

This commit is contained in:
Nikita Sinelnikov
2021-08-06 14:38:48 +03:00
parent f2244a7383
commit 967566157b
+2 -2
View File
@@ -3,7 +3,7 @@
<div class="um-item">
<div class="um-item-link">
<i class="um-icon-ios-paper"></i>
<a href="<?php echo esc_url( get_permalink( $post ) ); ?>"><?php echo esc_html( $post->post_title ); ?></a>
<a href="<?php echo esc_url( get_permalink( $post ) ); ?>"><?php echo get_the_title( $post ); ?></a>
</div>
<?php if ( has_post_thumbnail( $post->ID ) ) {
@@ -39,4 +39,4 @@
<a href="<?php echo esc_url( get_comments_link( $post->ID ) ); ?>"><?php echo $comments; ?></a>
</span>
</div>
</div>
</div>