WordPress.org

Make WordPress Core

Ticket #24230: theme.php.patch

File theme.php.patch, 855 bytes (added by jcastaneda, 5 years ago)
  • theme.php

     
    340340
    341341        // Set up maybe-relative, maybe-absolute array of theme directories.
    342342        // We always want to return absolute, but we need to cache relative
    343         // use in for get_theme_root().
     343        // to use in get_theme_root().
    344344        foreach ( $wp_theme_directories as $theme_root ) {
    345345                if ( 0 === strpos( $theme_root, WP_CONTENT_DIR ) )
    346346                        $relative_theme_roots[ str_replace( WP_CONTENT_DIR, '', $theme_root ) ] = $theme_root;
     
    544544/**
    545545 * Start preview theme output buffer.
    546546 *
    547  * Will only preform task if the user has permissions and template and preview
     547 * Will only perform task if the user has permissions and template and preview
    548548 * query variables exist.
    549549 *
    550550 * @since 2.6.0