Changeset 3390753
- Timestamp:
- 11/05/2025 11:31:33 PM (5 months ago)
- Location:
- alt-manager
- Files:
-
- 2 edited
-
tags/1.7.9/inc/alm-empty-generator.php (modified) (2 diffs)
-
trunk/inc/alm-empty-generator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alt-manager/tags/1.7.9/inc/alm-empty-generator.php
r3390345 r3390753 340 340 $ID = get_the_ID(); 341 341 $type = get_post_field( 'post_type', $ID ); 342 // Initialize context with a default value 343 $context = ''; 342 344 if ( is_front_page() || is_home() ) { 343 345 $context = 'home'; … … 346 348 } elseif ( $type === 'page' ) { 347 349 $context = 'page'; 350 } 351 // Skip processing if context is not set 352 if ( empty( $context ) ) { 353 return; 348 354 } 349 355 $replacements = [ -
alt-manager/trunk/inc/alm-empty-generator.php
r3390345 r3390753 340 340 $ID = get_the_ID(); 341 341 $type = get_post_field( 'post_type', $ID ); 342 // Initialize context with a default value 343 $context = ''; 342 344 if ( is_front_page() || is_home() ) { 343 345 $context = 'home'; … … 346 348 } elseif ( $type === 'page' ) { 347 349 $context = 'page'; 350 } 351 // Skip processing if context is not set 352 if ( empty( $context ) ) { 353 return; 348 354 } 349 355 $replacements = [
Note: See TracChangeset
for help on using the changeset viewer.