WordPress.org

Make WordPress Core

Ticket #44360: 44360.class-wp-nav-menu-widget.php.patch

File 44360.class-wp-nav-menu-widget.php.patch, 753 bytes (added by tessak22, 13 months ago)

Add a translator comment for a sprintf call

  • src/wp-includes/widgets/class-wp-nav-menu-widget.php

     
    142142                                $url = admin_url( 'nav-menus.php' );
    143143                        }
    144144                        ?>
    145                         <?php echo sprintf( __( 'No menus have been created yet. <a href="%s">Create some</a>.' ), esc_attr( $url ) ); ?>
     145                        <?php
     146                        /* translators: menus widget: %s: URL to create a new menu */
     147                        echo sprintf( __( 'No menus have been created yet. <a href="%s">Create some</a>.' ), esc_attr( $url ) ); ?>
    146148                </p>
    147149                <div class="nav-menu-widget-form-controls" <?php echo $empty_menus_style; ?>>
    148150                        <p>