IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 1125 | 1125 | return false; |
| 1126 | 1126 | |
| 1127 | 1127 | if ( 'post' === $post_type ) { |
| 1128 | | $show_on_front = get_option( 'show_on_front' ); |
| 1129 | | $page_for_posts = get_option( 'page_for_posts' ); |
| 1130 | | |
| 1131 | | if ( 'page' == $show_on_front && $page_for_posts ) { |
| 1132 | | $link = get_permalink( $page_for_posts ); |
| 1133 | | } else { |
| 1134 | | $link = get_home_url(); |
| 1135 | | } |
| 1136 | 1128 | /** This filter is documented in wp-includes/link-template.php */ |
| 1137 | | return apply_filters( 'post_type_archive_link', $link, $post_type ); |
| | 1129 | return apply_filters( 'post_type_archive_link', get_blog_link(), $post_type ); |
| 1138 | 1130 | } |
| 1139 | 1131 | |
| 1140 | 1132 | if ( ! $post_type_obj->has_archive ) |