Changeset 370944
- Timestamp:
- 04/09/2011 04:34:37 PM (15 years ago)
- Location:
- wordpress-wiki/trunk
- Files:
-
- 2 edited
-
controllers/wiki_pages.php (modified) (1 diff)
-
wordpress-wiki.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-wiki/trunk/controllers/wiki_pages.php
r370924 r370944 76 76 $last_h2_pos = explode('</h2>', $content); 77 77 $last_h2_pos = array_pop($last_h2_pos); 78 if(!empty($last_h2_pos)){ 79 $last_h2_pos[1] = $last_h2_pos; 80 $h3s_contents[1][] = $last_h2_pos; 81 } 82 if (empty($h3s_contents[1])) { 78 $last_h2_pos[1] = $last_h2_pos; 79 $h3s_contents[1][] = $last_h2_pos; 80 if (!is_array($h3s_contents[1])) { 83 81 $h3s_contents[1] = array(); 84 82 } 85 83 array_push($h3s_contents[1], $last_h2_pos); 86 foreach ($h3s_contents[1] as $key => $h3s_content) {87 preg_match_all("|<h3>(.*)</h3>|U", $h3s_content, $h3s[$key], PREG_PATTERN_ORDER);88 }84 foreach ($h3s_contents[1] as $key => $h3s_content) { 85 preg_match_all("|<h3>(.*)</h3>|U", $h3s_content, $h3s[$key], PREG_PATTERN_ORDER); 86 } 89 87 $table = "<ol class='content_list'>"; 90 88 foreach($h2s as $key => $h2) { -
wordpress-wiki/trunk/wordpress-wiki.php
r370924 r370944 17 17 global $wp_version; 18 18 /** 19 * Todo: There is no need to guess the wp-content folder any more...19 * Guess the wp-content and plugin urls/paths 20 20 */ 21 22 21 if ( !defined('WP_CONTENT_URL') ) 23 22 define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
Note: See TracChangeset
for help on using the changeset viewer.