Changeset 1064072 for customize-posts
- Timestamp:
- 01/09/2015 05:23:02 PM (11 years ago)
- Location:
- customize-posts
- Files:
-
- 16 added
- 7 edited
-
assets/screenshot-1.png (modified) (1 prop) (previous)
-
assets/screenshot-2.png (modified) (1 prop) (previous)
-
tags/0.2.3 (added)
-
tags/0.2.3/css (added)
-
tags/0.2.3/css/admin-bar.css (added)
-
tags/0.2.3/css/customize-posts.css (added)
-
tags/0.2.3/customize-posts.php (added)
-
tags/0.2.3/js (added)
-
tags/0.2.3/js/customize-base-extensions.js (added)
-
tags/0.2.3/js/customize-posts.js (added)
-
tags/0.2.3/js/customize-preview-posts.js (added)
-
tags/0.2.3/php (added)
-
tags/0.2.3/php/class-wp-customize-posts-preview.php (added)
-
tags/0.2.3/php/class-wp-customize-posts.php (added)
-
tags/0.2.3/php/class-wp-post-edit-customize-control.php (added)
-
tags/0.2.3/php/class-wp-post-select-customize-control.php (added)
-
tags/0.2.3/readme.md (added)
-
tags/0.2.3/readme.txt (added)
-
trunk/customize-posts.php (modified) (1 diff)
-
trunk/php/class-wp-customize-posts-preview.php (modified) (1 diff)
-
trunk/php/class-wp-customize-posts.php (modified) (3 diffs)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
customize-posts/assets/screenshot-1.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
customize-posts/assets/screenshot-2.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
customize-posts/trunk/customize-posts.php
r1042690 r1064072 3 3 * Plugin Name: Customize Posts 4 4 * Description: Manage posts and postmeta via the customizer. 5 * Version: 0.2. 25 * Version: 0.2.3 6 6 * Author: XWP, Weston Ruter 7 7 * Author URI: https://xwp.co/ -
customize-posts/trunk/php/class-wp-customize-posts-preview.php
r991703 r1064072 193 193 */ 194 194 public function enqueue_preview_scripts() { 195 $this->manager->posts->register_scripts(); 196 $this->manager->posts->register_styles(); 195 197 wp_enqueue_script( 'customize-preview-posts' ); 196 198 } -
customize-posts/trunk/php/class-wp-customize-posts.php
r1042690 r1064072 114 114 $this->sanitize_meta_filters = apply_filters( 'wp_customize_posts_sanitize_meta_filters', $this->sanitize_meta_filters ); 115 115 116 add_action( 'wp_default_scripts', array( $this, 'register_scripts' ) );117 add_action( 'wp_default_styles', array( $this, 'register_styles' ) );118 116 add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 119 117 add_action( 'customize_controls_enqueue_scripts', array( $this, 'export_panel_data' ) ); … … 275 273 /** 276 274 * Register scripts for Customize Posts. 277 * 278 * Fires after wp_default_scripts 279 * 280 * @param WP_Scripts $scripts 281 */ 282 public function register_scripts( &$scripts ) { 283 $scripts->add( 'customize-base-extensions', CUSTOMIZE_POSTS_PLUGIN_URL . 'js/customize-base-extensions.js', array( 'customize-base' ), false, 1 ); 284 $scripts->add( 'customize-posts', CUSTOMIZE_POSTS_PLUGIN_URL . 'js/customize-posts.js', array( 'jquery', 'wp-backbone', 'customize-base-extensions', 'customize-controls', 'underscore' ), false, 1 ); 285 $scripts->add( 'customize-preview-posts', CUSTOMIZE_POSTS_PLUGIN_URL . 'js/customize-preview-posts.js', array( 'jquery', 'customize-preview' ), false, 1 ); 275 */ 276 public function register_scripts() { 277 wp_register_script( 'customize-base-extensions', CUSTOMIZE_POSTS_PLUGIN_URL . 'js/customize-base-extensions.js', array( 'customize-base' ), false, 1 ); 278 wp_register_script( 'customize-posts', CUSTOMIZE_POSTS_PLUGIN_URL . 'js/customize-posts.js', array( 'jquery', 'wp-backbone', 'customize-base-extensions', 'customize-controls', 'underscore' ), false, 1 ); 279 wp_register_script( 'customize-preview-posts', CUSTOMIZE_POSTS_PLUGIN_URL . 'js/customize-preview-posts.js', array( 'jquery', 'customize-preview' ), false, 1 ); 286 280 } 287 281 288 282 /** 289 283 * Register styles for Customize Posts. 290 * 291 * Fires after wp_default_styles 292 * 293 * @param WP_Styles $styles 294 */ 295 public function register_styles( &$styles ) { 296 $styles->add( 'customize-posts-style', CUSTOMIZE_POSTS_PLUGIN_URL . 'css/customize-posts.css', array( 'wp-admin' ) ); 284 */ 285 public function register_styles() { 286 wp_register_style( 'customize-posts-style', CUSTOMIZE_POSTS_PLUGIN_URL . 'css/customize-posts.css', array( 'wp-admin' ) ); 297 287 } 298 288 … … 301 291 */ 302 292 public function enqueue_scripts() { 293 $this->register_scripts(); 294 $this->register_styles(); 303 295 wp_enqueue_script( 'customize-posts' ); 304 296 wp_enqueue_style( 'customize-posts-style' ); -
customize-posts/trunk/readme.md
r1042690 r1064072 41 41 ## Changelog ## 42 42 43 ### 0.2.3 ### 44 Change method for registering scripts/styles to fix conflict w/ Jetpack. [PR #26](https://github.com/xwp/wp-customize-posts/pull/26) 45 43 46 ### 0.2.2 ### 44 47 Add compatibility with WordPress 4.1 now that the Customizer has a proper JS API. -
customize-posts/trunk/readme.txt
r1042690 r1064072 33 33 == Changelog == 34 34 35 = 0.2.3 = 36 Change method for registering scripts/styles to fix conflict w/ Jetpack. [PR #26](https://github.com/xwp/wp-customize-posts/pull/26) 37 35 38 = 0.2.2 = 36 39 Add compatibility with WordPress 4.1 now that the Customizer has a proper JS API.
Note: See TracChangeset
for help on using the changeset viewer.