2010-03-15, 10:52:42
I see that there are separate template tags for returning and echoing the same stuff. Instead of that, why don't we build the functions to echo OR return the stuff with an argument?
For example, instead of get_page_slug() and return_page_slug(), another template tag could be created named page_slug() and an argument called "echo" could be added. The default value would be "1" (or "true") and if someone wants to return the value of the function, he would simply change the argument's value to "0" (or "false").
For example, instead of get_page_slug() and return_page_slug(), another template tag could be created named page_slug() and an argument called "echo" could be added. The default value would be "1" (or "true") and if someone wants to return the value of the function, he would simply change the argument's value to "0" (or "false").