Changeset 739593
- Timestamp:
- 07/12/2013 03:57:25 AM (13 years ago)
- Location:
- post-backgrounds/trunk
- Files:
-
- 3 edited
-
options.php (modified) (1 diff)
-
post.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
post-backgrounds/trunk/options.php
r588669 r739593 15 15 } 16 16 17 public function get_content_selector( $post ) { 18 $selector = ". post.post-{$post->ID}";17 public function get_content_selector( $post ) {var_dump( $post ); 18 $selector = ".{$post->post_type}.post-{$post->ID}"; 19 19 $selector = apply_filters( 'post_background_content_selector', $selector, $post ); 20 20 return $selector; -
post-backgrounds/trunk/post.php
r588669 r739593 48 48 echo "<style type=\"text/css\">\n"; 49 49 50 if ( is_single() ) {50 if ( $wp_query->is_single() || $wp_query->is_page() ) { 51 51 $postbackground = get_post_meta( get_the_ID(), 'postbackground', true ); 52 52 $this->rule( 'body', isset( $postbackground['body'] ) ? $postbackground['body'] : array() ); -
post-backgrounds/trunk/readme.txt
r588670 r739593 3 3 Requires at least: 3.2 4 4 Tested up to: 3.2 5 Version: 0.9. 26 Stable Tag: 0.9. 25 Version: 0.9.3 6 Stable Tag: 0.9.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.