<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
The recommended practice should be to use set_post_thumbnail_size()
for custom thumbnail sizes. This is a wrapper for add_image_size()
specifically made for theme authors to create a custom post
thumbnail size. That, in turn, allows us plugin developers to check
if a theme has created a custom thumbnail size with easy checks
like:<br>
<br>
if ( has_image_size( 'post-thumbnail' ) )<br>
/* do something cool because themes used
set_post_thumbnail_size() */<br>
<br>
The use of add_image_size() should be used for additional image
sizes.<br>
<br>
<div class="moz-cite-prefix">On 4/19/2014 6:16 AM, Chip Bennett
wrote:<br>
</div>
<blockquote
cite="mid:CAPdLKqetP=Kg+VBWATNoT7ViGKx7Uu=eQa2SJQAXNVGjRXd4bg@mail.gmail.com"
type="cite">
<div dir="ltr">set_post_thumbnail_size() is allowed.
<div><br>
</div>
<div>I think the *recommended* practice should be to use
add_image_size(), but we have no requirement in that regard.</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Apr 19, 2014 at 6:03 AM,
carolina poena <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:myazalea@hotmail.com" target="_blank">myazalea@hotmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="ltr">It was mentioned in a review
that set_post_thumbnail_size is not allowed, but I would
like some clarification.<br>
Is this required or recommended, and what alternative
solution should I recommend to authors who are using
set_post_thumbnail_size?<br>
<br>
(<a moz-do-not-send="true"
href="https://codex.wordpress.org/Function_Reference/set_post_thumbnail_size"
target="_blank">https://codex.wordpress.org/Function_Reference/set_post_thumbnail_size</a>)<br>
</div>
</div>
<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>
<br>
</blockquote>
</div>
<br>
</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>
<br>
</body>
</html>