WordPress.org

Make WordPress Core

Ticket #11827: patch-class-json.diff

File patch-class-json.diff, 418 bytes (added by alexkingorg, 6 years ago)

Patch to avoid double-declaration of Services_JSON class

  • class-json.php

     
    11<?php 
     2if ( !in_array('Services_JSON', get_declared_classes() ) )  
    23/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 
    34/** 
    45 * Converts to and from JSON format. 
     
    858859        } 
    859860 
    860861} 
     862 
     863endif; 
     864 No newline at end of file