Changeset 37985 for trunk/src/wp-includes/post.php
- Timestamp:
- 07/06/2016 12:39:01 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r37915 r37985 1024 1024 1025 1025 if ( empty( $post_type ) || strlen( $post_type ) > 20 ) { 1026 _doing_it_wrong( __FUNCTION__, __( 'Post type names must be between 1 and 20 characters in length.' ), '4.2 ' );1026 _doing_it_wrong( __FUNCTION__, __( 'Post type names must be between 1 and 20 characters in length.' ), '4.2.0' ); 1027 1027 return new WP_Error( 'post_type_length_invalid', __( 'Post type names must be between 1 and 20 characters in length.' ) ); 1028 1028 } … … 2778 2778 2779 2779 if ( is_numeric( $args ) ) { 2780 _deprecated_argument( __FUNCTION__, '3.1 ', __( 'Passing an integer number of posts is deprecated. Pass an array of arguments instead.' ) );2780 _deprecated_argument( __FUNCTION__, '3.1.0', __( 'Passing an integer number of posts is deprecated. Pass an array of arguments instead.' ) ); 2781 2781 $args = array( 'numberposts' => absint( $args ) ); 2782 2782 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)