Changeset 3474236
- Timestamp:
- 03/04/2026 07:01:05 AM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
squirrly-seo/tags/12.4.15/models/domain/Patterns.php
r3459575 r3474236 22 22 23 23 public function getDate() { 24 if ( isset($this->_currentpost->post_date) && $this->_currentpost->post_date ) { 25 return wp_date( 'c', strtotime( $this->_currentpost->post_date ) ); 24 $post = $this->currentpost; 25 26 if ( isset($post->post_date) && $post->post_date ) { 27 return wp_date( 'c', strtotime( $post->post_date ) ); 26 28 } elseif ( $this->_date ) { 27 29 return wp_date( 'c', strtotime( $this->_date ) ); … … 514 516 515 517 public function getModified() { 516 if ( isset( $this->_currentpost->post_modified ) && $this->_currentpost->post_modified ) { 517 return wp_date( 'c', strtotime( $this->_currentpost->post_modified ) ); 518 $post = $this->currentpost; 519 520 if ( isset( $post->post_modified ) && $post->post_modified ) { 521 return wp_date( 'c', strtotime( $post->post_modified ) ); 518 522 } elseif ( $this->_modified ) { 519 523 return wp_date( 'c', strtotime( $this->_modified ) );
Note: See TracChangeset
for help on using the changeset viewer.