[wp-trac] [WordPress Trac] #23180: Introduce get_plugin_part

WordPress Trac noreply at wordpress.org
Mon Jan 14 08:11:15 UTC 2013


#23180: Introduce get_plugin_part
-----------------------------+------------------------------
 Reporter:  wonderboymusic   |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Plugins          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |
-----------------------------+------------------------------

Comment (by kovshenin):

 Replying to [comment:7 tarasm]:
 > @kovshenin your suggestion requires theme developer to know what filter
 he/she must apply to overwrite plugin's path. This is an extra step that
 could be take care of by get_template_part.

 That's true, but the proposed patch is no different. In fact it doesn't
 allow you to filter it at all :) In any case, even if the plugin used
 `get_plugin_part` you'd still have to look at the plugin code to see what
 the values and file names are passed to the function if you want to filter
 them. I think it just makes it even more confusing :)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23180#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list