Code Duplication    Length = 10-10 lines in 2 locations

wp-includes/class-wp-customize-manager.php 2 locations

@@ 854-863 (lines=10) @@
851
			'_dirty' => array_keys( $this->unsanitized_post_values() ),
852
		);
853
854
		foreach ( $this->panels as $panel_id => $panel ) {
855
			if ( $panel->check_capabilities() ) {
856
				$settings['activePanels'][ $panel_id ] = $panel->active();
857
				foreach ( $panel->sections as $section_id => $section ) {
858
					if ( $section->check_capabilities() ) {
859
						$settings['activeSections'][ $section_id ] = $section->active();
860
					}
861
				}
862
			}
863
		}
864
		foreach ( $this->sections as $id => $section ) {
865
			if ( $section->check_capabilities() ) {
866
				$settings['activeSections'][ $id ] = $section->active();
@@ 1881-1890 (lines=10) @@
1878
		}
1879
1880
		// Prepare Customize Panel objects to pass to JavaScript.
1881
		foreach ( $this->panels() as $panel_id => $panel ) {
1882
			if ( $panel->check_capabilities() ) {
1883
				$settings['panels'][ $panel_id ] = $panel->json();
1884
				foreach ( $panel->sections as $section_id => $section ) {
1885
					if ( $section->check_capabilities() ) {
1886
						$settings['sections'][ $section_id ] = $section->json();
1887
					}
1888
				}
1889
			}
1890
		}
1891
1892
		?>
1893
		<script type="text/javascript">