• syntax error, unexpected ‘for’ (T_FOR) in /user/htdocs/wp-content/themes/border/functions.php on line 10

    I’m getting this error message for my functions.php file.
    I have pasted in the functions.php file here below the line ( line 10, refered to in the error message is the one reading:
    include-paths for additional theme specific )

    Can anyone help as I am unable to use the theme with this current error
    ________________________________________

    <?php

    // ensure EXT is defined
    if ( ! defined(‘EXT’)) {
    define(‘EXT’, ‘.php’);
    }

    #
    # See: wpgrade-config.php ->
    include-paths for additional theme specific
    # function and class includes
    #

    // ensure REQUEST_PROTOCOL is defined
    if ( ! defined(‘REQUEST_PROTOCOL’)) {
    if (is_ssl()) {
    define( ‘REQUEST_PROTOCOL’, ‘https:’ );
    } else {
    define( ‘REQUEST_PROTOCOL’, ‘http:’ );
    }
    }

    // Loads the theme’s translated strings
    load_theme_textdomain( ‘border_txtd’, get_template_directory() . ‘/languages/’ );

    // Theme specific settings
    // ———————–

    // add theme support for post formats
    // child themes note: use the after_setup_theme hook with a callback
    //$formats = array(‘video’, ‘audio’, ‘gallery’, ‘image’, ‘link’);
    //add_theme_support(‘post-formats’, $formats);

    // Initialize system core
    // ———————-

    require_once ‘wpgrade-core/bootstrap’.EXT;

    #
    # Please perform any initialization via options in wpgrade-config and
    # calls in wpgrade-core/bootstrap. Required for testing.
    #

    /**
    * https://codex.www.ads-software.com/Content_Width
    */
    if ( ! isset($content_width)) {
    $content_width = 960;
    }

  • The topic ‘syntax error’ is closed to new replies.