weixin_39606003 2020-11-30 04:08
浏览 0

Make get_validated_url_file_path() more compatible custom theme and plugin directories

Initial work landed in #1790 to make get_validated_url_file_path() work for locating stylesheets from the filesystem in a custom theme directory. This needs to be expanded to work not just for one theme directory registered under ABSPATH . 'wp-content' but also other locations.

If this can't be done reliably, then the plugin should just fetch the file over HTTP.

该提问来源于开源项目:ampproject/amp-wp

  • 写回答

5条回答 默认 最新

  • weixin_39606003 2020-11-30 04:08
    关注

    Iterating over $wp_theme_directories is also going to be needed in AMP_Validation_Manager::get_source():

    https://github.com/ampproject/amp-wp/blob/19f1f246c613814d86498d30c8ee05e7f5c277fe/includes/validation/class-amp-validation-manager.php#L1381-L1395

    评论

报告相同问题?