Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41998, comment 10


Ignore:
Timestamp:
09/11/2022 09:12:55 PM (22 months ago)
Author:
TimothyBlynJacobs
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41998, comment 10

    initial v1  
    88<?php
    99add_filter( 'rest_json_encode_options', function ( $options ) {
    10         $options &= ~JSON_PRETTY_PRINT;
     10        $options |= JSON_PRETTY_PRINT;
    1111
    1212        return $options;