Make WordPress Core

Ticket #11827: patch.2.diff

File patch.2.diff, 1.1 KB (added by alexkingorg, 15 years ago)

Standardized conditional loading in the library file for Services_JSON, SimplePie and Snoopy

  • wp-includes/class-snoopy.php

     
    11<?php
    2 if ( !in_array('Snoopy', get_declared_classes() ) ) :
     2if ( !class_exists( 'Snoopy' ) ) :
    33/*************************************************
    44
    55Snoopy - the PHP net client
  • wp-includes/class-simplepie.php

     
    11<?php
     2if ( !class_exists( 'SimplePie' ) ) :
    23/**
    34 * SimplePie
    45 *
     
    1499714998                }
    1499814999        }
    1499915000}
    15000 
     15001endif;
    1500115002?>
  • wp-includes/class-json.php

     
    11<?php
     2if ( !class_exists( 'Services_JSON' ) ) :
    23/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
    34/**
    45 * Converts to and from JSON format.
     
    858859        }
    859860
    860861}
     862endif;
     863?>