PluginProbe
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts / trunk
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts vtrunk
2.7.7 2.7.6 2.7.5 2.7.4 trunk 1.3 2.0.4 2.0.6 2.1.91 2.2.4 2.2.7 2.2.9 2.3.1 2.3.10 2.4.10 2.4.2 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.6.0 2.6.1 2.7.0 All 28 releases
← All changes | includes/class.helpers.php +4 -0 2.7.5trunk View file →
@@ -235,8 +235,12 @@
235 235 // (#3)
236 236 $rest_url = wp_parse_url( site_url( $prefix ) );
237 237 $current_url = wp_parse_url( esc_url( add_query_arg( [] ) ) );
238 238
239 + if ( empty( $rest_url['path'] ) || empty( $current_url['path'] ) ) {
240 + return false;
241 + }
242 +
239 243 return strpos( $current_url['path'], $rest_url['path'], 0 ) === 0;
240 244 }
241 245
242 246 /**