[wp-hackers] Private Functions and PhpDoc

Peter Westwood peter.westwood at ftwr.co.uk
Thu Mar 26 22:18:13 GMT 2009


On 26 Mar 2009, at 16:14, Ryan Boren wrote:

> On Wed, Mar 25, 2009 at 11:22 PM, Charles K. Clarkson
> <cclarkson at htcomp.net> wrote:
>> Hello,
>>
>> I am updating the phpDocs for the wp-includes/post.php file and I  
>> have
>> noticed quite a few functions which start with a leading underscore
>> are not marked as private. Is this a phpDoc omission or are these
>> unmarked functions in some kind of transition?
>>
>> I have a lot of other (phpDoc) changes to make in this patch and  
>> would
>> rather include these changes if they are needed.
>
> All underscore functions should indeed be marked private.
>

And the more underscores we use in the names the more private they  
are ;-)
-- 
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5



More information about the wp-hackers mailing list