Changeset 49108 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r48576 r49108 606 606 if ( preg_match( '/^(.+)-(\d+)$/', $widget_id, $matches ) ) { 607 607 $parsed['id_base'] = $matches[1]; 608 $parsed['number'] = intval( $matches[2] );608 $parsed['number'] = (int) $matches[2]; 609 609 } else { 610 610 // Likely an old single widget. … … 629 629 630 630 $id_base = $matches[2]; 631 $number = isset( $matches[3] ) ? intval( $matches[3] ): null;631 $number = isset( $matches[3] ) ? (int) $matches[3] : null; 632 632 633 633 return compact( 'id_base', 'number' ); … … 1773 1773 $this->sidebar_instance_count[ $index ] += 1; 1774 1774 if ( ! $this->manager->selective_refresh->is_render_partials_request() ) { 1775 printf( "\n<!--dynamic_sidebar_before:%s:%d-->\n", esc_html( $index ), intval( $this->sidebar_instance_count[ $index ] ));1775 printf( "\n<!--dynamic_sidebar_before:%s:%d-->\n", esc_html( $index ), (int) $this->sidebar_instance_count[ $index ] ); 1776 1776 } 1777 1777 } … … 1789 1789 array_shift( $this->current_dynamic_sidebar_id_stack ); 1790 1790 if ( ! $this->manager->selective_refresh->is_render_partials_request() ) { 1791 printf( "\n<!--dynamic_sidebar_after:%s:%d-->\n", esc_html( $index ), intval( $this->sidebar_instance_count[ $index ] ));1791 printf( "\n<!--dynamic_sidebar_after:%s:%d-->\n", esc_html( $index ), (int) $this->sidebar_instance_count[ $index ] ); 1792 1792 } 1793 1793 } … … 1852 1852 1853 1853 if ( isset( $context['sidebar_instance_number'] ) ) { 1854 $this->context_sidebar_instance_number = intval( $context['sidebar_instance_number'] );1854 $this->context_sidebar_instance_number = (int) $context['sidebar_instance_number']; 1855 1855 } 1856 1856
Note: See TracChangeset
for help on using the changeset viewer.