Completed
Push — add/pwa ( 78a5c3...f00215 )
by
unknown
07:23
created
modules/perf/class.jetpack-perf-optimize-assets.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -574,6 +574,10 @@  discard block
 block discarded – undo
574 574
 	}
575 575
 
576 576
 	// for CSS urls()s, replace with base64-encoded content if smaller than a certain size
577
+
578
+	/**
579
+	 * @param string $css
580
+	 */
577 581
 	public function fix_css_urls( $css, $css_url ) {
578 582
 		$base = trailingslashit( dirname( $css_url ) );
579 583
 		$base = str_replace( site_url(), '', $base );
@@ -635,6 +639,9 @@  discard block
 block discarded – undo
635 639
 			|| strpos( $url, $site_url ) === 0;
636 640
 	}
637 641
 
642
+	/**
643
+	 * @param string $filter
644
+	 */
638 645
 	private function should_inline_asset( $filter, $dependency ) {
639 646
 		// inline anything local, with a src starting with /, or starting with site_url
640 647
 
@@ -666,6 +673,9 @@  discard block
 block discarded – undo
666 673
 		return $path;
667 674
 	}
668 675
 
676
+	/**
677
+	 * @param string $filter
678
+	 */
669 679
 	private function should_remove_asset( $filter, $dependency ) {
670 680
 		return apply_filters( $filter, false, $dependency->handle, $dependency->src );
671 681
 	}
Please login to merge, or discard this patch.