Timeline for Why won't is_search work inside functions.php?
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 6, 2014 at 16:14 | vote | accept | UzumakiDev | ||
Jan 6, 2014 at 16:10 | vote | accept | UzumakiDev | ||
Jan 6, 2014 at 16:11 | |||||
Jan 6, 2014 at 16:03 | history | edited | UzumakiDev | CC BY-SA 3.0 |
added 1125 characters in body
|
Jan 6, 2014 at 15:55 | comment | added | fuxia♦ |
parse_str() would handle parsing the query string much more efficiently than your code.
|
|
Jan 6, 2014 at 15:53 | vote | accept | UzumakiDev | ||
Jan 6, 2014 at 16:04 | |||||
Jan 6, 2014 at 15:52 | answer | added | s_ha_dum | timeline score: 2 | |
Jan 6, 2014 at 15:50 | comment | added | UzumakiDev |
@toscho Ahh, I see, two ticks. Also, why did you mention parse_str() ?
|
|
Jan 6, 2014 at 15:49 | answer | added | LindaJeanne | timeline score: 0 | |
Jan 6, 2014 at 15:47 | comment | added | fuxia♦ | If you call the function too early, it cannot work. This why we are asking for actual usage. Without that, an answer is impossible. It would also help if you’d intend your code for readability. | |
Jan 6, 2014 at 15:44 | comment | added | UzumakiDev | @s_ha_dum well yea, the call works fine as it actually echos "nope" where it's supposed to, are you saying that it may be a problem because I'm making an ajax call which is not search.php? | |
Jan 6, 2014 at 15:36 | comment | added | s_ha_dum |
data_scroll_all is not actually used anywhere in the code you posted.
|
|
Jan 6, 2014 at 15:35 | comment | added | fuxia♦ |
How do you call data_scroll_all() ? Oh, and read about parse_str() . ;)
|
|
Jan 6, 2014 at 15:32 | history | asked | UzumakiDev | CC BY-SA 3.0 |