WordPress.org

Make WordPress Core

Ticket #15228: hello.diff

File hello.diff, 759 bytes (added by kapeels, 8 years ago)

Patch.

  • hello.php

     
    5656        echo "<p id='dolly'>$chosen</p>";
    5757}
    5858
    59 // Now we set that function up to execute when the admin_footer action is called
    60 add_action('admin_footer', 'hello_dolly');
     59// Now we set that function up to execute when the admin_notices action is called
     60add_action('admin_notices', 'hello_dolly');
    6161
    6262// We need some CSS to position the paragraph
    6363function dolly_css() {
     
    6767        echo "
    6868        <style type='text/css'>
    6969        #dolly {
    70                 position: absolute;
    71                 top: 4.5em;
     70                float:right;
     71                padding-$x:15px;
     72                padding-top:5px;               
    7273                margin: 0;
    73                 padding: 0;
    74                 $x: 215px;
    7574                font-size: 11px;
    7675        }
    7776        </style>