Changeset 53116
- Timestamp:
- 04/09/2022 08:36:53 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r53105 r53116 252 252 * @since 4.4.0 253 253 * 254 * @param string[] $args Associative array of URL parameters for the link.255 * @param string $l abelLink text.256 * @param string $c lass Optional. Class attribute. Default empty string.254 * @param string[] $args Associative array of URL parameters for the link. 255 * @param string $link_text Link text. 256 * @param string $css_class Optional. Class attribute. Default empty string. 257 257 * @return string The formatted link string. 258 258 */ 259 protected function get_edit_link( $args, $l abel, $class = '' ) {259 protected function get_edit_link( $args, $link_text, $css_class = '' ) { 260 260 $url = add_query_arg( $args, 'edit.php' ); 261 261 … … 263 263 $aria_current = ''; 264 264 265 if ( ! empty( $c lass ) ) {265 if ( ! empty( $css_class ) ) { 266 266 $class_html = sprintf( 267 267 ' class="%s"', 268 esc_attr( $c lass )268 esc_attr( $css_class ) 269 269 ); 270 270 271 if ( 'current' === $c lass ) {271 if ( 'current' === $css_class ) { 272 272 $aria_current = ' aria-current="page"'; 273 273 } … … 279 279 $class_html, 280 280 $aria_current, 281 $l abel281 $link_text 282 282 ); 283 283 } … … 906 906 * @param array $children_pages 907 907 * @param int $count 908 * @param int $parent 908 * @param int $parent_page 909 909 * @param int $level 910 910 * @param int $pagenum … … 912 912 * @param array $to_display List of pages to be displayed. Passed by reference. 913 913 */ 914 private function _page_rows( &$children_pages, &$count, $parent , $level, $pagenum, $per_page, &$to_display ) {915 if ( ! isset( $children_pages[ $parent ] ) ) {914 private function _page_rows( &$children_pages, &$count, $parent_page, $level, $pagenum, $per_page, &$to_display ) { 915 if ( ! isset( $children_pages[ $parent_page ] ) ) { 916 916 return; 917 917 } … … 920 920 $end = $start + $per_page; 921 921 922 foreach ( $children_pages[ $parent ] as $page ) {922 foreach ( $children_pages[ $parent_page ] as $page ) { 923 923 if ( $count >= $end ) { 924 924 break; … … 965 965 } 966 966 967 unset( $children_pages[ $parent ] ); // Required in order to keep track of orphans.967 unset( $children_pages[ $parent_page ] ); // Required in order to keep track of orphans. 968 968 } 969 969
Note: See TracChangeset
for help on using the changeset viewer.