in_default_dir example

$inline_style_tag = sprintf(
                "<style id='%s-inline-css'%s>\n%s\n</style>\n",
                esc_attr( $handle ),
                $this->type_attr,
                $inline_style
            );
        } else {
            $inline_style_tag = '';
        }

        if ( $this->do_concat ) {
            if ( $this->in_default_dir( $src ) && ! $conditional && ! isset( $obj->extra['alt'] ) ) {
                $this->concat         .= "$handle,";
                $this->concat_version .= "$handle$ver";

                $this->print_code .= $inline_style;

                return true;
            }
        }

        if ( isset( $obj->args ) ) {
            $media = esc_attr( $obj->args );
        }
/** * Filters the script loader source. * * @since 2.2.0 * * @param string $src Script loader source path. * @param string $handle Script handle. */
            $srce = apply_filters( 'script_loader_src', $src$handle );

            if (
                $this->in_default_dir( $srce )
                && ( $before_script || $after_script || $translations_stop_concat || $this->is_delayed_strategy( $strategy ) )
            ) {
                $this->do_concat = false;

                // Have to print the so-far concatenated scripts right away to maintain the right order.                 _print_scripts();
                $this->reset();
            } elseif ( $this->in_default_dir( $srce ) && ! $conditional ) {
                $this->print_code     .= $this->print_extra_script( $handle, false );
                $this->concat         .= "$handle,";
                $this->concat_version .= "$handle$ver";
                
Home | Imprint | This part of the site doesn't use cookies.