Timeline for How to prevent text modified using gettext filter being stomped (presumably) by updateText() js function within a CPT's edit screen
Current License: CC BY-SA 2.5
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 6, 2011 at 2:12 | vote | accept | Dave Romsey | ||
Apr 6, 2011 at 2:12 | vote | accept | Dave Romsey | ||
Apr 6, 2011 at 2:12 | |||||
Apr 6, 2011 at 2:11 | comment | added | Dave Romsey | Awesome! Yes, I combined your updated code with what I started with (thanks for the note on t310s's post btw), and now the translated text stays translated, even after the js stuff is run. | |
Apr 5, 2011 at 20:25 | history | edited | Rarst | CC BY-SA 2.5 |
added 314 characters in body
|
Apr 5, 2011 at 19:55 | comment | added | Rarst | @goto10 ah, slipped me that so early you do not have context set up... I will update my answer later, if I think of something. | |
Apr 5, 2011 at 19:48 | comment | added | Dave Romsey | Yes indeed, timing does seem to be the issue here. I confirmed that your solution does generally work, but only if I remove the post_type conditional, which I need since I only want to affect a certain post type. Can you suggest a way that I can take advantage of gettext and the post_type check? Thanks again! | |
Apr 5, 2011 at 19:16 | comment | added | Dave Romsey | Thanks Rarst! That typo eluded me even after you pointed it out. Maybe I got a little too wrapped up in the proper way to pluralize "status" :p | |
Apr 5, 2011 at 18:59 | history | answered | Rarst | CC BY-SA 2.5 |