Changeset 2296877
- Timestamp:
- 05/02/2020 11:47:07 PM (6 years ago)
- Location:
- wprequal/trunk
- Files:
-
- 3 edited
-
app/classes/class.SurveyForm.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
wprequal.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wprequal/trunk/app/classes/class.SurveyForm.php
r2296858 r2296877 307 307 public function popup() { 308 308 309 $post_id = get_option( 'wprequal_popup_post_id' ); 310 311 if ( empty( $post_id ) || FALSE === get_post_status( $post_id ) ) { 312 $post_id = $this->default_id(); 313 } 309 $post_id = $this->popup_id(); 314 310 315 311 if ( $view = apply_filters( 'wprequal_view', 'survey/form/popup' ) ) { 316 312 include $view; 317 313 } 314 315 } 316 317 /** 318 * Survey form id for the popup. 319 * 320 * @return int 321 */ 322 323 public function popup_id() { 324 325 if ( ( is_page() || is_single() ) && get_post_meta( get_the_ID(), 'wpq_survey_form', TRUE ) ) { 326 327 $post_id = get_post_meta( get_the_ID(), 'wpq_survey_form', TRUE ); 328 329 } else { 330 331 $post_id = get_option( 'wprequal_popup_post_id' ); 332 333 } 334 335 if ( empty( $post_id ) || FALSE === get_post_status( $post_id ) ) { 336 return $this->default_id(); 337 } 338 339 return (int) $post_id; 318 340 319 341 } -
wprequal/trunk/readme.txt
r2296871 r2296877 159 159 == Change Log == 160 160 161 = 7.6.6 = 162 * Bug Fix - Get corrct posts id for survey forms on posts and pages 163 161 164 = 7.6.5 = 162 165 * Tweek - Allow survey popups on posts and pages only -
wprequal/trunk/wprequal.php
r2296871 r2296877 4 4 Plugin URI: https://wprequal.com 5 5 Description: Mortgage and Real Estate Lead Capture System 6 Version: 7.6. 56 Version: 7.6.6 7 7 Author: WPrequal 8 8 Author URI: https://wprequal.com … … 30 30 // Defines 31 31 $defines = array( 32 'WPREQUAL_VERSION' => '7.6. 5',32 'WPREQUAL_VERSION' => '7.6.6', 33 33 'WPREQUAL_OPTIONS' => 'wprequal_options', 34 34 'WPREQUAL_ACCESS_TOKEN_KEY' => 'wprequal_access_token',
Note: See TracChangeset
for help on using the changeset viewer.