Changeset 1358560
- Timestamp:
- 02/26/2016 02:38:21 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
all-in-one-seo-pack/trunk/aioseop_class.php
r1358401 r1358560 1376 1376 } 1377 1377 foreach ( $optlist as $f ) { 1378 1379 if ( AIOSEOPPRO ) {1380 $meta = ''; 1381 $field = "aiosp_$f";1382 if ( ( isset( $_GET['taxonomy'] ) && isset( $_GET['tag_ID'] ) ) || is_category() || is_tag() || is_tax()) {1378 $meta = ''; 1379 1380 1381 1382 if ( ) { 1383 1383 if ( is_admin() && isset( $_GET['tag_ID'] ) ) { 1384 1384 $meta = get_term_meta( $_GET['tag_ID'], '_aioseop_' . $f, true ); … … 1389 1389 } 1390 1390 } 1391 } else1392 $meta = get_post_meta( $post_id, '_aioseop_' . $f, true );1393 if ($field === 'title') {1394 $get_opts[$field] = htmlspecialchars( ( $meta ) );1395 } else {1396 $get_opts[$field] = htmlspecialchars( stripslashes( $meta ) );1397 1391 } 1398 } elseif ( is_singular() || is_admin() ) { 1399 $field = "aiosp_$f"; 1392 } elseif ( is_singular() || is_admin() ) 1400 1393 $meta = get_post_meta( $post_id, '_aioseop_' . $f, true ); 1401 if ($field === 'title') { 1402 $get_opts[$field] = htmlspecialchars( ( $meta ) ); 1403 } else { 1404 $get_opts[$field] = htmlspecialchars( stripslashes( $meta ) ); 1405 } 1394 if ($field === 'title') { 1395 $get_opts[$field] = htmlspecialchars( ( $meta ) ); 1396 } else { 1397 $get_opts[$field] = htmlspecialchars( stripslashes( $meta ) ); 1406 1398 } 1407 1399
Note: See TracChangeset
for help on using the changeset viewer.