IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 862 | 862 | * Quicktag one or more times). This tag must be within The Loop. |
| 863 | 863 | * |
| 864 | 864 | * @since 1.2.0 |
| | 865 | * @since 5.0.0 Added the `aria_current` argument. |
| 865 | 866 | * |
| 866 | 867 | * @global int $page |
| 867 | 868 | * @global int $numpages |
| … |
… |
|
| 877 | 878 | * Also prepended to the current item, which is not linked. Default empty. |
| 878 | 879 | * @type string $link_after HTML or text to append to each Pages link inside the `<a>` tag. |
| 879 | 880 | * Also appended to the current item, which is not linked. Default empty. |
| | 881 | * @type string $aria_current The value for the aria-current attribute. Possible values are 'page', |
| | 882 | * 'step', 'location', 'date', 'time', 'true', 'false'. Default is 'page'. |
| 880 | 883 | * @type string $next_or_number Indicates whether page numbers should be used. Valid values are number |
| 881 | 884 | * and next. Default is 'number'. |
| 882 | 885 | * @type string $separator Text between pagination links. Default is ' '. |
| … |
… |
|
| 893 | 896 | global $page, $numpages, $multipage, $more; |
| 894 | 897 | |
| 895 | 898 | $defaults = array( |
| 896 | | 'before' => '<p>' . __( 'Pages:' ), |
| | 899 | 'before' => '<p class="page-links">' . __( 'Pages:' ), |
| 897 | 900 | 'after' => '</p>', |
| 898 | 901 | 'link_before' => '', |
| 899 | 902 | 'link_after' => '', |
| | 903 | 'aria_current' => 'page', |
| 900 | 904 | 'next_or_number' => 'number', |
| 901 | 905 | 'separator' => ' ', |
| 902 | 906 | 'nextpagelink' => __( 'Next page' ), |
| … |
… |
|
| 924 | 928 | $link = $r['link_before'] . str_replace( '%', $i, $r['pagelink'] ) . $r['link_after']; |
| 925 | 929 | if ( $i != $page || ! $more && 1 == $page ) { |
| 926 | 930 | $link = _wp_link_page( $i ) . $link . '</a>'; |
| | 931 | } else if ( $i === $page ) { |
| | 932 | $link = '<span class="page-link current" aria-current="' . esc_attr( $r['aria_current'] ) . '">' . $link . '</span>'; |
| 927 | 933 | } |
| 928 | 934 | /** |
| 929 | 935 | * Filters the HTML output of individual page number links. |
| … |
… |
|
| 1017 | 1023 | $url = get_preview_post_link( $post, $query_args, $url ); |
| 1018 | 1024 | } |
| 1019 | 1025 | |
| 1020 | | return '<a href="' . esc_url( $url ) . '">'; |
| | 1026 | return '<a class="page-link" href="' . esc_url( $url ) . '">'; |
| 1021 | 1027 | } |
| 1022 | 1028 | |
| 1023 | 1029 | // |