WordPress.org

Make WordPress Core

Ticket #15769: free_software.diff

File free_software.diff, 2.4 KB (added by nkuttler, 5 years ago)

Use GPL-compliant lyrics in the hello dolly plugin

  • wp-content/plugins/hello.php

    diff --git a/wp-content/plugins/hello.php b/wp-content/plugins/hello.php
    index f37def0..f68e35a 100644
    a b  
    22/* 
    33Plugin Name: Hello Dolly 
    44Plugin URI: http://wordpress.org/# 
    5 Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page. 
     5Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Richard M. Stallman: Free Software. When activated you will randomly see a lyric from the <cite>Free Software Song</cite> in the upper right of your admin screen on every page. 
    66Author: Matt Mullenweg 
    77Version: 1.5 
    88Author URI: http://photomatt.net/ 
    99*/ 
    1010 
    11 // These are the lyrics to Hello Dolly 
    12 $lyrics = "Hello, Dolly 
    13 Well, hello, Dolly 
    14 It's so nice to have you back where you belong 
    15 You're lookin' swell, Dolly 
    16 I can tell, Dolly 
    17 You're still glowin', you're still crowin' 
    18 You're still goin' strong 
    19 We feel the room swayin' 
    20 While the band's playin' 
    21 One of your old favourite songs from way back when 
    22 So, take her wrap, fellas 
    23 Find her an empty lap, fellas 
    24 Dolly'll never go away again 
    25 Hello, Dolly 
    26 Well, hello, Dolly 
    27 It's so nice to have you back where you belong 
    28 You're lookin' swell, Dolly 
    29 I can tell, Dolly 
    30 You're still glowin', you're still crowin' 
    31 You're still goin' strong 
    32 We feel the room swayin' 
    33 While the band's playin' 
    34 One of your old favourite songs from way back when 
    35 Golly, gee, fellas 
    36 Find her a vacant knee, fellas 
    37 Dolly'll never go away 
    38 Dolly'll never go away 
    39 Dolly'll never go away again"; 
     11// These are the lyrics to the Free Software Song 
     12$lyrics = "Join us now and share the software; 
     13You'll be free, hackers, you'll be free. 
     14Hoarders may get piles of money, 
     15That is true, hackers, that is true. 
     16But they cannot help their neighbors; 
     17That ain't good, hackers, that ain't good. 
     18When we have enough free software 
     19At our call, hackers, at our call, 
     20We'll kick out those dirty licenses 
     21Ever more, hackers, ever more. 
     22Join us now and share the software; 
     23You'll be free, hackers, you'll be free."; 
    4024 
    4125// Here we split it into lines 
    4226$lyrics = explode("\n", $lyrics);