Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/07/2013, 09:55
santiagomgarridom
 
Fecha de Ingreso: julio-2013
Mensajes: 1
Antigüedad: 10 años, 10 meses
Puntos: 0
Exclamación (Me sale este error que hago) syntax error, unexpected '(', expecting ',' or ';' in

He revisado esta migracion de tema de wordpress y me sale este error que puedo hacer, dice que hay un error en la linea 12


<?php
/**
* WordPress Administration Scheme API
*
* Here we keep the DB structure and option values.
*
* @package WordPress
* @subpackage Administration
*/

// Declare these as global in case schema.php is included from a function.
global $wpdb, $wp_queries, $charset_collate();

/**
* The database character collate.
* @var string
* @global string
* @name $charset_collate
*/
$charset_collate = $wpdb->get_charset_collate();

/**
* Retrieve the SQL for creating database tables.
*
* @since 3.3.0
*
* @param string $scope Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all.
* @param int $blog_id Optional. The blog ID for which to retrieve SQL. Default is the current blog ID.
* @return string The SQL needed to create the requested tables.
*/
function wp_get_db_schema( $scope = 'all', $blog_id = null ) {
global $wpdb;

$charset_collate = '';

if ( ! empty($wpdb->charset) )
$charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
if ( ! empty($wpdb->collate) )
$charset_collate .= " COLLATE $wpdb->collate";

if ( $blog_id && $blog_id != $wpdb->blogid )
$old_blog_id = $wpdb->set_blog_id( $blog_id );

// Engage multisite if in the middle of turning it on from network.php.
$is_multisite = is_multisite() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK );