Changeset 3330681
- Timestamp:
- 07/19/2025 04:32:55 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cb-parallax/trunk/admin/menu/includes/class-options.php
r3330678 r3330681 702 702 * @return array 703 703 */ 704 public function get_plugin_options($post = false) : array704 public function get_plugin_options($post) : array 705 705 { 706 706 global $post; … … 979 979 * @return array $image_options 980 980 */ 981 public function get_image_options($post = false) : array981 public function get_image_options($post) : array 982 982 { 983 983 global $post; … … 988 988 $is_post = is_a($post, 'WP_Post'); 989 989 $post_meta = $is_post ? get_post_meta($post->ID, 'cb_parallax', true) : false; 990 990 991 $source_type = 'none'; 991 992 992 if ($parallax_enabled) { 993 993 $source_type = 'global'; … … 996 996 $source_type = 'per_post'; 997 997 } 998 999 if ('per_post' === $source_type ) {998 999 if ('per_post' === $source_type && false !== $post_meta) { 1000 1000 $options = array_merge($options, $post_meta); 1001 1001 }
Note: See TracChangeset
for help on using the changeset viewer.