[wp-trac] Re: [WordPress Trac] #7984: JS inline post is not
coherent with PHP inline post
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 19 22:23:14 GMT 2008
#7984: JS inline post is not coherent with PHP inline post
-------------------------------------+--------------------------------------
Reporter: Malaiac | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.8
Component: Administration | Version: 2.7
Severity: normal | Resolution:
Keywords: inline-edit needs-patch |
-------------------------------------+--------------------------------------
Comment (by azaozz):
JS (unlike php) can easily be overloaded/functions redeclared. The way to
do that here would be to copy inlineEditPost.edit(), change it to handle
the new/custom values and replace the original one by registering the
script with dependency on inline-edit-post.js so it's always loaded after.
--
Ticket URL: <http://trac.wordpress.org/ticket/7984#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list