- Timestamp:
- 09/09/2021 07:41:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
r51787 r51788 135 135 * 136 136 * @since 5.5.0 137 * 138 * @param string $taxonomy Taxonomy name. 137 * @since 5.9.0 Renamed `$taxonomy` to `$object_subtype` to match parent class 138 * for PHP 8 named parameter support. 139 * 140 * @param string $object_subtype Optional. Taxonomy name. Default empty. 139 141 * @return int Total number of pages. 140 142 */ 141 public function get_max_num_pages( $ taxonomy= '' ) {142 if ( empty( $ taxonomy) ) {143 public function get_max_num_pages( $object_subtype = '' ) { 144 if ( empty( $object_subtype ) ) { 143 145 return 0; 144 146 } 147 148 // Restores the more descriptive, specific name for use within this method. 149 $taxonomy = $object_subtype; 145 150 146 151 /**
Note: See TracChangeset
for help on using the changeset viewer.