Same kind of problem here :( I was trying to solve a problem with Ajax Calender by pasting this code at the buttom in functions.php of my theme Twenty Eleven:
<?php
if ( get_magic_quotes_gpc() ) {
$_POST = array_map( 'stripslashes_deep', $_POST );
$_GET = array_map( 'stripslashes_deep', $_GET );
$_COOKIE = array_map( 'stripslashes_deep', $_COOKIE );
$_REQUEST = array_map( 'stripslashes_deep', $_REQUEST );
}
?>
When it didn't work I wanted to delete this part again and save, but I got the following message: "Parse error: syntax error, unexpected '<' in /homez.705/jrkdeste/www/wp-content/themes/twentyeleven/functions.php on line 673"
This is what I see in the last part of the code (the problem will probably be caused by one of the last lines):
add_filter( 'body_class', 'twentyeleven_body_classes' );
/**
* Retrieves the IDs for images in a gallery.
*
* @uses get_post_galleries() first, if available. Falls back to shortcode parsing,
* then as last option uses a get_posts() call.
*
* @since Twenty Eleven 1.6.
*
* @return array List of image IDs from the post gallery.
*/
function twentyeleven_get_gallery_images() {
$images = array();
if ( function_exists( 'get_post_galleries' ) ) {
$galleries = get_post_galleries( get_the_ID(), false );
if ( isset( $galleries[0]['ids'] ) )
$images = explode( ',', $galleries[0]['ids'] );
} else {
$pattern = get_shortcode_regex();
preg_match( "/$pattern/s", get_the_content(), $match );
$atts = shortcode_parse_atts( $match[3] );
if ( isset( $atts['ids'] ) )
$images = explode( ',', $atts['ids'] );
}
if ( ! $images ) {
$images = get_posts( array(
'fields' => 'ids',
'numberposts' => 999,
'order' => 'ASC',
'orderby' => 'menu_order',
'post_mime_type' => 'image',
'post_parent' => get_the_ID(),
'post_type' => 'attachment',
) );
}
return $images;
}
Does anyone know what I can do to fix this? I don't no anything about codes :s
Thx!