- Timestamp:
- 10/22/2019 06:25:45 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php
r46446 r46571 191 191 */ 192 192 function twentytwenty_edit_post_link( $link, $post_id, $text ) { 193 if ( is_admin() ) { 194 return $link; 195 } 193 196 194 197 $edit_url = get_edit_post_link( $post_id ); … … 220 223 * Get the post meta. 221 224 * 222 * @param int $post_id The iD of the post.225 * @param int $post_id The ID of the post. 223 226 * @param string $location The location where the meta is shown. 224 227 */ … … 544 547 545 548 // Add the sub menu toggle. 546 $args->after .= '<button class="toggle sub-menu-toggle fill-children-current-color" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="' . absint( $toggle_duration ) . '" ><span class="screen-reader-text">' . __( 'Show sub menu', 'twentytwenty' ) . '</span>' . twentytwenty_get_theme_svg( 'chevron-down' ) . '</button>';549 $args->after .= '<button class="toggle sub-menu-toggle fill-children-current-color" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="' . absint( $toggle_duration ) . '" aria-expanded="false"><span class="screen-reader-text">' . __( 'Show sub menu', 'twentytwenty' ) . '</span>' . twentytwenty_get_theme_svg( 'chevron-down' ) . '</button>'; 547 550 548 551 }
Note: See TracChangeset
for help on using the changeset viewer.