Making WordPress.org

Changeset 569


Ignore:
Timestamp:
04/27/2014 07:47:41 AM (13 years ago)
Author:
coffee2code
Message:

Add missing compare_objects_by_name() function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php

    r561 r569  
    561561        }
    562562
     563        /**
     564         * Compare two objects by name for sorting.
     565         *
     566         * @param WP_Post $a Post A
     567         * @param WP_Post $b Post B
     568         *
     569         * @return int
     570         */
     571        function compare_objects_by_name( $a, $b ) {
     572                return strcmp( $a->post_name, $b->post_name );
     573        }
     574
    563575}
Note: See TracChangeset for help on using the changeset viewer.