Skip to Content.
Sympa Menu

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

cc-devel AT lists.ibiblio.org

Subject: Developer discussion for Creative Commons technology and tools

List archive

Chronological Thread  
  • From: "Nathan R. Yergler" <nathan AT creativecommons.org>
  • To: "Tiago Macambira" <macambira AT gmail.com>
  • Cc: cc-devel AT lists.ibiblio.org
  • Subject: Re: [cc-devel] Bug in wpLicense's licenseURI()
  • Date: Tue, 20 Mar 2007 08:57:13 -0400

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




  • Re: [cc-devel] Bug in wpLicense's licenseURI(), Nathan R. Yergler, 03/20/2007

Archive powered by MHonArc 2.6.24.

Top of Page