geodirectory_template_actions.php 1 location
|
@@ 2436-2441 (lines=6) @@
|
| 2433 |
|
|
| 2434 |
|
$listing_type = $post->listing_type;
|
| 2435 |
|
|
| 2436 |
|
} elseif (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
| 2437 |
|
$post = geodir_get_post_info((int)$_REQUEST['pid']);
|
| 2438 |
|
$listing_type = $post->post_type;
|
| 2439 |
|
$thumb_img_arr = geodir_get_images($_REQUEST['pid']);
|
| 2440 |
|
|
| 2441 |
|
} else {
|
| 2442 |
|
$listing_type = sanitize_text_field($_REQUEST['listing_type']);
|
| 2443 |
|
}
|
| 2444 |
|
|
geodirectory-functions/custom_functions.php 1 location
|
@@ 774-778 (lines=5) @@
|
| 771 |
|
if ( isset( $_REQUEST['pid'] ) && $_REQUEST['pid'] != '' ) {
|
| 772 |
|
$post_id = $_REQUEST['pid'];
|
| 773 |
|
}
|
| 774 |
|
} elseif ( isset( $_REQUEST['pid'] ) && $_REQUEST['pid'] != '' ) {
|
| 775 |
|
$post = geodir_get_post_info( $_REQUEST['pid'] );
|
| 776 |
|
$post_type = $post->post_type;
|
| 777 |
|
$post_id = $_REQUEST['pid'];
|
| 778 |
|
} elseif ( isset( $post->post_type ) && $post->post_type != '' ) {
|
| 779 |
|
$post_type = $post->post_type;
|
| 780 |
|
$post_id = $post->ID;
|
| 781 |
|
}
|