Changeset 577453
- Timestamp:
- 07/26/2012 02:05:14 AM (14 years ago)
- Location:
- insert-javascript-css/trunk
- Files:
-
- 3 edited
-
ijsc-frame.php (modified) (2 diffs)
-
insert-javascript-css.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
insert-javascript-css/trunk/ijsc-frame.php
r562479 r577453 1 1 <?php 2 /*3 * To change this template, choose Tools | Templates4 * and open the template in the editor.5 */6 2 include('../../../wp-admin/admin.php'); 7 3 … … 24 20 <html> 25 21 <head> 26 <?php wp_head();?>22 <?php iframe_header(); ?> 27 23 </head> 28 24 <body id="" style="height:100px;"> -
insert-javascript-css/trunk/insert-javascript-css.php
r562479 r577453 4 4 Plugin URI: http://www.nutt.net/tag/insert-javascript-css/ 5 5 Description: Adds a field to the post / page edit screens to allow you to insert custom JavaScript and CSS for just that post or page. 6 Version: 0. 16 Version: 0.2 7 7 Author: Ryan Nutt 8 8 Author URI: http://www.nutt.net 9 License: GPL 29 License: GPLv2 10 10 */ 11 11 … … 41 41 42 42 public function add_to_head() { 43 global $posts; 43 global $posts; 44 44 $ray = array(); 45 45 foreach ($posts as $p) { … … 52 52 $ids = implode(',',$ray); 53 53 54 $myPosts = query_posts(array( 54 $myPosts = get_posts(array( 55 'post_type' => 'any', 55 56 'post__in' => $ray, 56 57 'meta_query' => array( … … 68 69 ) 69 70 )); 70 wp_reset_query();71 71 72 72 73 if (empty($myPosts)) { -
insert-javascript-css/trunk/readme.txt
r562479 r577453 4 4 Tags: post, page, javascript, css 5 5 Requires at least: 3.0 6 Tested up to: 3.4 7 Stable tag: 0. 16 Tested up to: 3.4.1 7 Stable tag: 0.2 8 8 License: GPLv2 9 9 … … 66 66 == Changelog == 67 67 68 = 0.2 = 69 Fix so CSS and JS will show up in post types other than post. 70 68 71 = 0.1 = 69 72 Initial release 70 73 71 74 == Upgrade Notice == 72 New release, nothing to upgrade 75 Fix so that JS and CSS will load in post types other than post.
Note: See TracChangeset
for help on using the changeset viewer.