Correct docs for WP_Theme scandir(), _name_sort(), and _name_sort_i18n() methods. All of them are private. see #11216, #20103.

git-svn-id: https://develop.svn.wordpress.org/trunk@20324 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-03-29 18:49:50 +00:00
parent 45cfe03be4
commit a5585e4b61

View File

@ -1018,7 +1018,7 @@ final class WP_Theme implements ArrayAccess {
* Scans a directory for files of a certain extension. * Scans a directory for files of a certain extension.
* *
* @since 3.4.0 * @since 3.4.0
* @access public * @access private
* *
* @param string $path Absolute path to search. * @param string $path Absolute path to search.
* @param array|string $extensions Array of extensions to find, or string of a single extension * @param array|string $extensions Array of extensions to find, or string of a single extension
@ -1210,6 +1210,9 @@ final class WP_Theme implements ArrayAccess {
/** /**
* Sort themes by name. * Sort themes by name.
*
* @since 3.4.0
* @access public
*/ */
public static function sort_by_name( &$themes ) { public static function sort_by_name( &$themes ) {
if ( 0 === strpos( get_locale(), 'en_' ) ) { if ( 0 === strpos( get_locale(), 'en_' ) ) {
@ -1226,7 +1229,7 @@ final class WP_Theme implements ArrayAccess {
* Would choke on HTML but we don't care enough to slow it down with strip_tags(). * Would choke on HTML but we don't care enough to slow it down with strip_tags().
* *
* @since 3.4.0 * @since 3.4.0
* @access public * @access private
*/ */
private static function _name_sort( $a, $b ) { private static function _name_sort( $a, $b ) {
return strnatcasecmp( $a->headers['Name'], $b->headers['Name'] ); return strnatcasecmp( $a->headers['Name'], $b->headers['Name'] );
@ -1236,7 +1239,7 @@ final class WP_Theme implements ArrayAccess {
* Name sort (with translation). * Name sort (with translation).
* *
* @since 3.4.0 * @since 3.4.0
* @access public * @access private
*/ */
private static function _name_sort_i18n( $a, $b ) { private static function _name_sort_i18n( $a, $b ) {
// Don't mark up; Do translate. // Don't mark up; Do translate.