WordPress.org

Make WordPress Core

Ticket #43632: 43632.diff

File 43632.diff, 833 bytes (added by audrasjb, 17 months ago)

Add a musical note, screen-reader-text and some padding to the musical quote from Hello Dolly

  • src/wp-content/plugins/hello.php

    diff --git a/src/wp-content/plugins/hello.php b/src/wp-content/plugins/hello.php
    index 34e3b68..ba09968 100644
    a b Dolly'll never go away again"; 
    5252// This just echoes the chosen line, we'll position it later
    5353function hello_dolly() {
    5454        $chosen = hello_dolly_get_lyric();
    55         echo "<p id='dolly'>$chosen</p>";
     55        echo "<p id='dolly'><span class='screen-reader-text'>Quote from Hello Dolly song</span><span aria-hidden='true'>&#9835;</span> $chosen</p>";
    5656}
    5757
    5858// Now we set that function up to execute when the admin_notices action is called
    function dolly_css() { 
    6767        <style type='text/css'>
    6868        #dolly {
    6969                float: $x;
    70                 padding-$x: 15px;
    71                 padding-top: 5px;               
     70                padding: 5px 15px 0 15px;
    7271                margin: 0;
    7372                font-size: 11px;
    7473        }