Changeset 1007396
- Timestamp:
- 10/14/2014 03:39:07 PM (11 years ago)
- Location:
- gallery-slideshow
- Files:
-
- 2 edited
-
tags/1.3.1/gallery-slideshow.php (modified) (2 diffs)
-
trunk/gallery-slideshow.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gallery-slideshow/tags/1.3.1/gallery-slideshow.php
r890215 r1007396 50 50 $pattern = get_shortcode_regex(); 51 51 if ( preg_match_all( '/'. $pattern .'/s', $post_object->post_content, $matches ) 52 && array_key_exists( 2, $matches ) 53 && in_array( 'gss', $matches[2] ) ){ 54 foreach( $matches[3] as $atts_string ){ 52 && array_key_exists( 2, $matches ) 53 && in_array( 'gss', $matches[2] ) ){ 54 // print_r($matches); 55 foreach( $matches[2] as $k => $sc_name ){ 56 if( $sc_name == 'gss' ){ 57 $atts_string = $matches[3][$k]; 55 58 $atts_string = trim( $atts_string ); 56 59 $atts = shortcode_parse_atts( $atts_string ); … … 60 63 update_post_meta($post_id, $name, $atts_string); 61 64 } 65 } 62 66 } 63 67 // if( has_shortcode( $post_object->post_content, 'gss' ) ) { } -
gallery-slideshow/trunk/gallery-slideshow.php
r890215 r1007396 50 50 $pattern = get_shortcode_regex(); 51 51 if ( preg_match_all( '/'. $pattern .'/s', $post_object->post_content, $matches ) 52 && array_key_exists( 2, $matches ) 53 && in_array( 'gss', $matches[2] ) ){ 54 foreach( $matches[3] as $atts_string ){ 52 && array_key_exists( 2, $matches ) 53 && in_array( 'gss', $matches[2] ) ){ 54 // print_r($matches); 55 foreach( $matches[2] as $k => $sc_name ){ 56 if( $sc_name == 'gss' ){ 57 $atts_string = $matches[3][$k]; 55 58 $atts_string = trim( $atts_string ); 56 59 $atts = shortcode_parse_atts( $atts_string ); … … 60 63 update_post_meta($post_id, $name, $atts_string); 61 64 } 65 } 62 66 } 63 67 // if( has_shortcode( $post_object->post_content, 'gss' ) ) { }
Note: See TracChangeset
for help on using the changeset viewer.