[cc-devel] Bug in wpLicense's licenseURI()

Nathan R. Yergler nathan at creativecommons.org
Tue Mar 20 08:57:13 EDT 2007


If I recall correctly that bug was reported and fixed in Subversion.
Unfortunately the version in Subversion is broken in new and strange
ways, so that doesn't do you much good.  I will be returning my
attention to wpLicense in the very near future and will make sure that
fix is in the next release.

Thanks for the report,

Nathan


On 3/18/07, Tiago Macambira <macambira at gmail.com> wrote:
> There's a bug in wpLicense version 0.7.5 in the function licenseURI().
>
> According to wpLicense Function Reference[1], licenseURI "returns the
> URI of the selected license". But instead of returning, this function
> is actually _printing_ the URI directly. As a result, RSS feeds
> produced after the activation of this plugin come with the wrong
> licence information, as can be seen in the example bellow, taken from
> my blog's feed:
>
>     http://creativecommons.org/licenses/by-nc-nd/2.5/br/<creativeCommons:license></creativeCommons:license>
>
> As you can see the actual URI precedes CC's license opening tag.
>
> Replacing "echo" by "return" in lincenseURI solves this. A better
> solution would be to modify this function and make it resemble
> licenseHTML and licenseRDF, i.e., make it accept a "display" argument
> with a default value of true and modifing it's callers to call
> licenseURI(false) instead of licenseURI().
>
> [1] http://wiki.creativecommons.org/WpLicense_Function_Reference
>
> --
> []s
> Tiago Alves Macambira
>



More information about the cc-devel mailing list