WordPress.org

Plugin Directory

Changeset 567480


Ignore:
Timestamp:
07/04/12 18:01:14 (6 years ago)
Author:
markjaquith
Message:

Fix a silly typo in an error message. Props Roy Scheeren on Twitter.

Location:
apc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apc/tags/2.0.4/object-cache.php

    r567468 r567480  
    2323if ( function_exists( 'wp_cache_add' ) ) { 
    2424    // Regular die, not wp_die(), because it gets sandboxed and shown in a small iframe 
    25     die( '<strong>ERROR:</strong> This is <em>not</em> a plugin, and it should not be activated as one.<br /><br />Instead, <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', __FILE__ ) . '</code> must be moved to <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', trailingslashit( WP_CONTENT_DIR ) ) . 'oject-cache.php</code>' ); 
     25    die( '<strong>ERROR:</strong> This is <em>not</em> a plugin, and it should not be activated as one.<br /><br />Instead, <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', __FILE__ ) . '</code> must be moved to <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', trailingslashit( WP_CONTENT_DIR ) ) . 'object-cache.php</code>' ); 
    2626} else { 
    2727 
  • apc/trunk/object-cache.php

    r567468 r567480  
    2323if ( function_exists( 'wp_cache_add' ) ) { 
    2424    // Regular die, not wp_die(), because it gets sandboxed and shown in a small iframe 
    25     die( '<strong>ERROR:</strong> This is <em>not</em> a plugin, and it should not be activated as one.<br /><br />Instead, <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', __FILE__ ) . '</code> must be moved to <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', trailingslashit( WP_CONTENT_DIR ) ) . 'oject-cache.php</code>' ); 
     25    die( '<strong>ERROR:</strong> This is <em>not</em> a plugin, and it should not be activated as one.<br /><br />Instead, <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', __FILE__ ) . '</code> must be moved to <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', trailingslashit( WP_CONTENT_DIR ) ) . 'object-cache.php</code>' ); 
    2626} else { 
    2727 
Note: See TracChangeset for help on using the changeset viewer.