Changeset 389793
- Timestamp:
- 05/27/2011 03:30:09 PM (15 years ago)
- Location:
- seo-content-control/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
seo_content_control.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
seo-content-control/trunk/readme.txt
r368690 r389793 4 4 Tags: SEO, bing, google, search engine optimization, content, description, category description, tag description, meta description, 5 5 Requires at least: 2.7 6 Tested up to: 3. 0.46 Tested up to: 3.1.3 7 7 Stable tag: trunk 8 8 … … 56 56 == Changelog == 57 57 58 = 1.1.0 = 59 * WP 3.1 hides the post excerpts by default, SCC changes this back to visible. 60 * The postexcerpt edit area is enlarged to about 15 lines (with JavaScript) 61 58 62 = 1.0.7 = 59 63 * Support for the plugin Platinum SEO Pack -
seo-content-control/trunk/seo_content_control.php
r368690 r389793 2561 2561 add_action( 'admin_menu', 'seo_content_control_add_menu' ); 2562 2562 2563 2564 /* 2565 * With WP 3.1 the postexcerpt field is hidden in the editor by default. 2566 * We definitely need to show it... 2567 */ 2568 function seo_content_control_default_hidden_meta_boxes( $hidden, &$screen ) { 2569 if ( $hidden && is_array($hidden) ) { 2570 $key = array_search('postexcerpt', $hidden); 2571 if ( $key !== FALSE ) { 2572 unset( $hidden[$key] ); 2573 } 2574 } 2575 return $hidden; 2576 } 2577 2578 add_filter( 'default_hidden_meta_boxes', 'seo_content_control_default_hidden_meta_boxes', 10, 2 ); 2579 2580 /* 2581 * The WP postexcerpt field is so very tiny, enlarge it (using .js): 2582 */ 2583 add_action("admin_print_scripts-post.php", 'seo_content_control_edit_post_scripts'); 2584 function seo_content_control_edit_post_scripts() { 2585 wp_enqueue_script( 2586 "seocc-editposts", 2587 seo_content_control_simple_path_join ( 2588 WP_PLUGIN_URL, basename( dirname( __FILE__ ) )."/js/editposts.js" 2589 ), 2590 array( 'jquery' ) 2591 ); 2592 } 2593 2594 2563 2595 /* 2564 2596 * _PHP4_COMPAT_
Note: See TracChangeset
for help on using the changeset viewer.