Plugin Directory

Changeset 1360868

Timestamp:
02/29/2016 03:50:59 PM (8 years ago)
Author:
dougal
Message:

Test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • all-in-one-seo-pack/trunk/aioseop_class.php

    r1359839 r1360868  
    13791379                $field = "aiosp_$f";
    13801380
    1381                 if ( ( isset( $_GET['taxonomy'] ) && isset( $_GET['tag_ID'] ) ) || is_category() || is_tag() || is_tax() ) {
    1382                     if ( AIOSEOPPRO ) {
     1381                if ( ) {
     1382                    if ( ) {
    13831383                        if ( is_admin() && isset( $_GET['tag_ID'] ) ) {
    13841384                            $meta = get_term_meta( $_GET['tag_ID'], '_aioseop_' . $f, true );
     
    13891389                            }
    13901390                        }
     1391
     1392
     1393
     1394
     1395
     1396
    13911397                    }
    1392                 } elseif ( is_singular() || is_admin() )
     1398                } else {
     1399                    $field = "aiosp_$f";
    13931400                    $meta = get_post_meta( $post_id, '_aioseop_' . $f, true );
    1394                 if ($field === 'title') {
    1395                     $get_opts[$field] = htmlspecialchars( ( $meta ) );
    1396                 } else {
    1397                     $get_opts[$field] = htmlspecialchars( stripslashes( $meta ) );
     1401                    if ( 'title' === $f || 'description' === $f ) {
     1402                        $get_opts[$field] = htmlspecialchars( ( $meta ) );
     1403                    } else {
     1404                        $get_opts[$field] = htmlspecialchars( stripslashes( $meta ) );
     1405                    }
    13981406                }
    13991407
     
    19581966            //$description = $this->apply_cf_fields( $description );
    19591967            if ( !(woocommerce_get_page_id( 'shop' ) == get_option( 'page_on_front' ) )  ){
    1960         $description = trim( stripslashes( $this->internationalize( get_post_meta( $post->ID, "_aioseop_description", true ) ) ) );
     1968        $description = trim( ( $this->internationalize( get_post_meta( $post->ID, "_aioseop_description", true ) ) ) );
    19611969            }
    19621970            else if ( woocommerce_get_page_id( 'shop' ) == get_option( 'page_on_front' ) && !empty( $aioseop_options['aiosp_use_static_home_info'] ) ){
    19631971            //$description = $this->get_aioseop_description( $post );
    1964                     $description = trim( stripslashes( $this->internationalize( get_post_meta( $post->ID, "_aioseop_description", true ) ) ) );
     1972                    $description = trim( ( $this->internationalize( get_post_meta( $post->ID, "_aioseop_description", true ) ) ) );
    19651973        }else if ( woocommerce_get_page_id( 'shop' ) == get_option( 'page_on_front' ) && empty( $aioseop_options['aiosp_use_static_home_info'] ) ){
    19661974            $description = $this->get_aioseop_description( $post );
     
    25722580            return '';
    25732581        }
    2574         $description = trim( stripslashes( $this->internationalize( get_post_meta( $post->ID, "_aioseop_description", true ) ) ) );
     2582        $description = trim( ( $this->internationalize( get_post_meta( $post->ID, "_aioseop_description", true ) ) ) );
    25752583        if ( !empty( $post ) && post_password_required( $post ) ) {
    25762584            return $description;
     
    26152623        $description = '';
    26162624        if ( is_front_page() && empty( $aioseop_options['aiosp_use_static_home_info'] ) )
    2617             $description = trim( stripslashes( $this->internationalize( $aioseop_options['aiosp_home_description'] ) ) );
     2625            $description = trim( ( $this->internationalize( $aioseop_options['aiosp_home_description'] ) ) );
    26182626        elseif ( !empty( $blog_page ) )
    26192627            $description = $this->get_post_description( $blog_page );
     
    32233231        }
    32243232        $text = $this->substr( $text, 0, $max );
    3225         return trim( stripslashes( $text ) );
     3233        return trim( ( $text ) );
    32263234    }
    32273235
     
    32303238                $text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text );
    32313239        $text = wp_strip_all_tags( $text );
    3232         return trim( stripslashes( $text ) );
     3240        return trim( ( $text ) );
    32333241    }
    32343242
Note: See TracChangeset for help on using the changeset viewer.