I wrote this example a few months ago: <a href="https://gist.github.com/1410493">https://gist.github.com/1410493</a> ... I use it as a base for most of my themes.<br><br>Although some example "callback" functions could be added somewhere (codex, make-themes, etc.), the basic functionality of `wp_title` can produce an adequate HTML title on its own ... filtering its output, IMHO, is more an author's prerogative than anything else. IF we were to have a "cookie-cutter" example, I would put forward it should be submitted to core-trac as an enhancement to `wp-title`.<br>
<br><br clear="all">Cais.<br>
<br><br><div class="gmail_quote">On Tue, Jul 3, 2012 at 9:12 AM, Konstantin Obenland <span dir="ltr"><<a href="mailto:konstantin@obenland.it" target="_blank">konstantin@obenland.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Does this count?<div><a href="http://wordpress.stackexchange.com/questions/32622/when-calling-wp-title-do-you-have-to-create-some-kind-of-title-php-file" target="_blank">http://wordpress.stackexchange.com/questions/32622/when-calling-wp-title-do-you-have-to-create-some-kind-of-title-php-file</a></div>
<span class="HOEnZb"><font color="#888888"><div><br></div><div>Konstantin</div></font></span><div><div class="h5"><div><br><div><div>On 03.07.2012, at 15:02, Philip M. Hofer (Frumph) wrote:</div><br><blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12pt;font-family:'Calibri'">
<div>Is there a post on example functions for callback for this that is approved
by the WPTRT ?</div>
<div> </div>
<div> </div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="edward.caissie@gmail.com" href="mailto:edward.caissie@gmail.com" target="_blank">Edward Caissie</a> </div>
<div><b>Sent:</b> Tuesday, July 03, 2012 5:46 AM</div>
<div><b>To:</b> <a title="theme-reviewers@lists.wordpress.org" href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a>
</div>
<div><b>Subject:</b> Re: [theme-reviewers] Is this now a requirement for
submittedthemes?</div></div></div>
<div> </div></div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">The
"best practice" use of modifying the `wp_title` output via a filter call is
required, but mostly as a "best practice" and to insure it "plays nice" with
plugins, specifically the SEO varieties.<br>IF the theme has already been
approved, then obviously any new updates should include the more correct best
practice method; if this is the only "fix" being added in the submission, I
would also imagine it would be a very quick diff review and resolved as approved
... personally, I would simply write the modification and submit it
now.<br><br><br clear="all">Cais.<br><br><br>
<div class="gmail_quote">On Tue, Jul 3, 2012 at 7:27 AM, Shinra Web Holdings <span dir="ltr"><<a href="mailto:shinrawebholdings@gmail.com" target="_blank">shinrawebholdings@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Yes, it's required now. Plugin authors were getting mad that
they couldn't fully change the title (since bloginfo('name') was typically
hardcoded in, so now it is required to use the wp_title filter. I put a
function on the codex page that you can pretty much take verbatim.
<div>
<div><br><br>
<div class="gmail_quote">On Tue, Jul 3, 2012 at 4:38 AM, Konstantin Obenland
<span dir="ltr"><<a href="mailto:konstantin@obenland.it" target="_blank">konstantin@obenland.it</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">I don't know how others see it, but I would't consider it
urgent enough for immediate action. Just have it fixed the next time you get
around to submitting an update. :)<br><span><font color="#888888"><br>Konstantin<br></font></span>
<div>
<div><br>On 03.07.2012, at 11:29, esmi at quirm dot net wrote:<br><br>>
on 03/07/2012 08:00 Konstantin Obenland said the following:<br>>> Your
Theme was first approved almost two years ago and a lot has<br>>>
changed since then. If you want to stay on top of all changes,
you<br>>> might want to check out the Theme Review Codex page
regularly and/or<br>>> weigh in on the discussions we have on <a href="http://make.wordpress.org/themes" target="_blank">make.wordpress.org/themes</a> for<br>>> new and changing
requirements.<br>><br>> I do try to do both but somehow this slipped
past me. :-) Are you ok for the theme to be released on the Repo "as is"? Or
would you prefer me to re-submit an amended version? I have 3 other
themes I'm updating and I don't want to give you guys even more work if it
can be avoided.<br>><br>> Mel<br>> --<br>> <a href="http://quirm.net/" target="_blank">http://quirm.net</a><br>> <a href="http://blackwidows.co.uk/" target="_blank">http://blackwidows.co.uk</a><br>><br>
><br>>
_______________________________________________<br>> theme-reviewers
mailing list<br>> <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br>_______________________________________________<br>theme-reviewers
mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div></div></blockquote></div>
<div> </div></div></div><br>_______________________________________________<br>theme-reviewers
mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br><div>
<br></div><hr>
_______________________________________________<br>theme-reviewers mailing
list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div></div></div></div>
_______________________________________________<br>theme-reviewers mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br>