WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/22/2019 06:25:45 PM (3 months ago)
Author:
desrosj
Message:

Bundled Themes: Update Twenty Twenty.

This brings trunk’s version of Twenty Twenty in-sync with GitHub.

For a complete list of changes since [46551], see https://github.com/WordPress/twentytwenty/compare/bc89c51...4549fd9.

Reviewed by SergeyBiryukov, desrosj, ianbelanger.
Props anlino, ianbelanger, poena, williampatton, nielslange, acosmin, intimez, itowhid06, decrecementofeliz, aristath, westonruter, mukesh27, jorgefilipecosta, karmatosed.
Fixes #48386.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php

    r46446 r46571  
    191191 */
    192192function twentytwenty_edit_post_link( $link, $post_id, $text ) {
     193    if ( is_admin() ) {
     194        return $link;
     195    }
    193196
    194197    $edit_url = get_edit_post_link( $post_id );
     
    220223 * Get the post meta.
    221224 *
    222  * @param int    $post_id The iD of the post.
     225 * @param int    $post_id The ID of the post.
    223226 * @param string $location The location where the meta is shown.
    224227 */
     
    544547
    545548            // 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>';
    547550
    548551        }
Note: See TracChangeset for help on using the changeset viewer.