Changeset 1542524
- Timestamp:
- 11/29/2016 10:08:43 AM (9 years ago)
- File:
-
- 1 edited
-
good-url-preview-box/trunk/gurlpb-start.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
good-url-preview-box/trunk/gurlpb-start.php
r1542243 r1542524 15 15 static function has_url( $str_content ) { 16 16 Gurlpb_utils::log( __FUNCTION__ . '[' . __LINE__ . "] " .$str_content); 17 //$strSetting = get_option('gurlpb-setting-a'); 17 $strSetting = get_option('gurlpb-setting-a'); 18 18 19 $arr = array(); 19 20 if ( preg_match( "/span guteurls=.*(http[^\"]*)\"/", $str_content, $arr ) ) { … … 26 27 return $arr[1]; 27 28 } 29 if ( $strSetting == 'manual' ) { 30 return false; 31 } 32 28 33 if ( preg_match('/\<a[^\>]*href=.(http[^\"\″\”&]*)/', $str_content, $arr ) ) { 29 34 return $arr[1]; … … 239 244 $nWP = '3'; 240 245 } elseif ( $strSettingA == 'single' ) { 241 $selector = '.post .entry-content ';246 $selector = '.post .entry-content, .page .entry-content'; 242 247 $nWP = '1'; 243 248 } else { 244 $selector = '.post .entry-content p ';249 $selector = '.post .entry-content p, .page .entry-content p'; 245 250 $nWP = '2'; 246 251 }
Note: See TracChangeset
for help on using the changeset viewer.