- Timestamp:
- 09/09/2021 07:41:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
r51787 r51788 149 149 * 150 150 * @since 5.5.0 151 * 152 * @param string $post_type Optional. Post type name. Default empty. 151 * @since 5.9.0 Renamed `$post_type` to `$object_subtype` to match parent class 152 * for PHP 8 named parameter support. 153 * 154 * @param string $object_subtype Optional. Post type name. Default empty. 153 155 * @return int Total number of pages. 154 156 */ 155 public function get_max_num_pages( $ post_type = '' ) {156 if ( empty( $ post_type ) ) {157 public function get_max_num_pages( $object_subtype = '' ) { 158 if ( empty( $object_subtype ) ) { 157 159 return 0; 158 160 } 161 162 // Restores the more descriptive, specific name for use within this method. 163 $post_type = $object_subtype; 159 164 160 165 /**
Note: See TracChangeset
for help on using the changeset viewer.