[wp-trac] Re: [WordPress Trac] #7479: Title missing from new get_plugin_data()

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 8 14:31:00 GMT 2008


#7479: Title missing from new get_plugin_data()
--------------------------------+-------------------------------------------
 Reporter:  strider72           |        Owner:  anonymous
     Type:  defect              |       Status:  new      
 Priority:  normal              |    Milestone:  2.7      
Component:  Administration      |      Version:  2.7      
 Severity:  normal              |   Resolution:           
 Keywords:  plugins, has-patch  |  
--------------------------------+-------------------------------------------
Comment (by strider72):

 Replying to [comment:2 DD32]:
 > Can you give an example of a plugin which is using it directly?

 Well, any of my own, plus some made by people following the suggestions in
 [http://striderweb.com/nerdaphernalia/2008/06/give-your-wordpress-plugin-
 credit/ this article] (which, yes, I wrote).  I have seen other plugins
 following that article, including some by Frank Beultge (sp?) and Ozh.

 > I'm thinking:
 >  * For backwards compat: return 'Title' and 'Name' as the exact same
 string, with no formatting applied at all

 If you change it, is it really "compatibility"?  I really like that you
 all decided to make Plugin URL a separate field, but why is it a problem
 to leave in the one more (Title) field as it was?

 >  * Encourage any plugins which need to utilise that to do the
 Formatting/sanitization themselves & to support Plugin meta data
 translations.

 Speaking of which, I could use an example of how authors should use the
 l18n Plugin headers.  Is there some sort of automation?  (Yeah, I know,
 different topic.  You brought it up. ;-)

 > (And i knew there was something i forgot to mention when i wrote up that
 diff..)

 Notably, the documentation in the comment above the function _does_ say
 that Title is returned.  So either we put Title back or we remove it from
 the doc.

 Overall, I understand how you might see this as "no big deal", but this to
 me is a perfect example of the reason so many people complain about
 WordPress's "upgrade cycle" -- having to constantly rework plugins to keep
 up with unnecessary changes to core.  It's minor, but it's unnecessary,
 and it adds up.

 (Notably, I originally was going to write that article doing the link
 manually, but the function at the time didn't return _just_ the Plugin
 URL.)

 Please don't change the existing output of a function unless there is a
 solid reason to do so.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7479#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list