Skip to content

Filter 'document_use_wp_filesystem' used to serve document (instead of PHP readfile) #320

@NeilWJames

Description

@NeilWJames

This arises as a side-effect of WPCS 3.0 which privileges WP_Filesystem over the native PHP processes.

A filter 'document_use_wp_filesystem is implemented which if it returns true will try to use the WP_Filesystem to output the file to the user. It will fall back to use PHP readfile if the access cannot be used.

This is of limited use as readfile is only used if the compression options have not been used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions