vlad_k
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: media buttons are no-show, maybe js blocked?Thanks esmi, you are amazing. What was going on? I understand that some scripts were concatenated into 1?
Forum: Developing with WordPress
In reply to: wp_enqueue_script ver keeps showing upWell then it’s no good to me since I develop for public use- there certainly be other users with older versions of wordpress. I’ll probably do a check
if(version>=3.0){
then skip the filter procedure. What was happenning before wordpress 3.0? Did it just append a version on to every custom java script file? Every day I think wordpress cant get any dumber, but it actually bits the odds so far- incredibely hard platform to develop for.Forum: Developing with WordPress
In reply to: wp_enqueue_script ver keeps showing up@demetris:
Nope, that doesn’t work,?ver=something
is there if null or NULL used. Please check your solutions before posting. As to the date the only thing that worked is a filter with'script_loader_src'
hook that gets trigered every time a custom script is loaded.Forum: Developing with WordPress
In reply to: wp_enqueue_script ver keeps showing upThanks everyone for helping so hard =))
Found the solution:
use
‘add_filter(‘script_loader_src’, ‘toscho_script_loader_filter’);’When adding the filter, and get reed of
‘if ( FALSE === strpos($src, ‘https://ajax.googleapis.com/’)){
return $src;
}’
Lines, they are not required. This filter gets applied every time when you load a script using wp_enqueue_script, it then brilliantly destroys everething after and including ? sign. You can make it do whatever you like =)) EnjoyForum: Fixing WordPress
In reply to: the_content distress callNot much help at this forum, useless ha?
Anyhow I solved it myself- get_the_content() outputs a string containing all the same staff as the_content(), just use php string operations to alter it the way you need it, stupid WordPress forcing people to use such dirty technics to achive something so simple.