<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
These two functions do not do the exact same thing. <br>
<br>
get_stylesheet_directory_uri() is for getting the directory URI to
the currently activated theme.<br>
<br>
get_stylesheet_uri() is for getting the URI to the current theme's
style.css file. It is required for use under the guideline "All
template tags and hooks used in a Theme are required to be
implemented properly". Reference:<span style="color: rgb(0, 0, 0);
font-family: sans-serif; font-size: 13px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 22px; orphans: 2; text-align: left; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none; "></span><br>
<a
href="http://codex.wordpress.org/Theme_Review#Template_Tags_and_Hooks">http://codex.wordpress.org/Theme_Review#Template_Tags_and_Hooks</a><br>
<br>
If a theme uses the this:<br>
<br>
get_stylesheet_directory_uri() . '/style.css'<br>
<br>
plugins that fire on the 'stylesheet_uri' hook will not work. <br>
<br>
get_stylesheet_uri() will output the appropriate file name and the
'stylesheet_uri' hook will be available for plugin authors.<br>
<br>
On 6/8/2012 8:44 AM, Philip M. Hofer (Frumph) wrote:
<blockquote cite="mid:4AF8CD855F6942518D468AD175777786@Furious"
type="cite">
<div dir="ltr">
<div style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE:
12pt">
<div>Okay this is a little bit out of hand.</div>
<div> </div>
<div>^ reference </div>
<div> </div>
<div><font face="Times New Roman">Site information is REQUIRED
to be called using the correct template tag: </font><tt>get_stylesheet_uri()</tt><font
face="Times New Roman"> rather than </font><tt>get_stylesheet_directory_uri()
. '/style.css'</tt></div>
<div> </div>
<div> </div>
<div><tt>^ Both are internal functions that do the EXACT same
thing:</tt></div>
<div> </div>
<div><tt>Case:</tt></div>
<div> </div>
<div>function get_stylesheet_uri() {</div>
<div> $stylesheet_dir_uri = get_stylesheet_directory_uri();</div>
<div> $stylesheet_uri = $stylesheet_dir_uri . '/style.css';</div>
<div> return apply_filters('stylesheet_uri',
$stylesheet_uri, $stylesheet_dir_uri);</div>
<div>}</div>
<div> </div>
<div>This is not a reason to invalidate a theme. Neither is
adding remaining parameters on a completely valid function
call.</div>
<div> </div>
<div> </div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY:
'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT:
normal; TEXT-DECORATION: none">
<div style="FONT: 10pt tahoma">
<div> </div>
<div style="BACKGROUND: #f5f5f5">
<div style="font-color: black"><b>From:</b> <a
moz-do-not-send="true"
title="georgemamadashvili@gmail.com"
href="mailto:georgemamadashvili@gmail.com">George
Mamadashvili</a> </div>
<div><b>Sent:</b> Friday, June 08, 2012 5:43 AM</div>
<div><b>To:</b> <a moz-do-not-send="true"
title="theme-reviewers@lists.wordpress.org"
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a>
</div>
<div><b>Subject:</b> Re: [theme-reviewers] (no subject)</div>
</div>
</div>
<div> </div>
</div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY:
'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT:
normal; TEXT-DECORATION: none">Use more simple solution -
wp_enqueue_style( 'krakatau-style', get_stylesheet_uri() );
<div> </div>
<div>You need to use get_stylesheet_* functions when
enqueueing style.css so child themes can easily override
it.<br>
<br>
<div class="gmail_quote">On Fri, Jun 8, 2012 at 2:39 PM,
hal-android <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:hasilent00@gmail.com" target="_blank">hasilent00@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">Hi.<br>
Can anyone help me here?<br>
I'm really confused about this.<br>
In the previous ticket :<br>
<a moz-do-not-send="true"
href="http://themes.trac.wordpress.org/ticket/8039"
target="_blank">http://themes.trac.wordpress.org/ticket/8039</a><br>
wp_register_style('default',
get_stylesheet_directory_uri() .<br>
'/style.css', array(), '0.0.3');<br>
wp_enqueue_style('default');<br>
<br>
<br>
And on this ticket I replace<br>
<a moz-do-not-send="true"
href="http://themes.trac.wordpress.org/ticket/8069#comment:3"
target="_blank">http://themes.trac.wordpress.org/ticket/8069#comment:3</a><br>
<br>
wp_enqueue_style('krakatau_style',
get_template_directory_uri() .<br>
'/style.css', array(), '0.0.5');<br>
<br>
<br>
Please help me..what should i do?<br>
<br>
Many thank's<br>
amdhas<br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a moz-do-not-send="true"
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a moz-do-not-send="true"
href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</blockquote>
</div>
<div> </div>
</div>
<p>
</p>
<hr>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
theme-reviewers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a>
<a class="moz-txt-link-freetext" href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
</blockquote>
</body>
</html>