Changeset 14943 for trunk/wp-admin/includes/nav-menu.php
- Timestamp:
- 05/26/2010 02:49:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/nav-menu.php
r14924 r14943 456 456 457 457 ?> 458 <div class="customlinkdiv" >458 <div class="customlinkdiv" id="customlinkdiv"> 459 459 460 460 <input type="hidden" value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" /> … … 479 479 <span class="add-to-menu"> 480 480 <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 481 <input type="submit" class="button-secondary " value="<?php esc_attr_e('Add to Menu'); ?>" name="add-custom-menu-item" />481 <input type="submit" class="button-secondary submit-add-to-menu" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-custom-menu-item" id="submit-customlinkdiv" /> 482 482 </span> 483 483 </p> … … 534 534 $post_type_name . '-tab' => 'all', 535 535 'paged' => '%#%', 536 'item-type' => 'post_type', 537 'item-object' => $post_type_name, 536 538 ) 537 539 ), … … 663 665 <span class="add-to-menu"> 664 666 <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 665 <input type="submit" class="button-secondary " value="<?php esc_attr_e('Add to Menu'); ?>" name="add-post-type-menu-item" />667 <input type="submit" class="button-secondary submit-add-to-menu" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-post-type-menu-item" id="submit-posttype-<?php echo $post_type_name; ?>" /> 666 668 </span> 667 669 </p> … … 708 710 } 709 711 710 $num_pages = ceil( count($terms) / $per_page );712 $num_pages = ceil( wp_count_terms( $taxonomy_name , array_merge( $args, array('number' => '', 'offset' => '') ) ) / $per_page ); 711 713 712 714 $page_links = paginate_links( array( … … 715 717 $taxonomy_name . '-tab' => 'all', 716 718 'paged' => '%#%', 719 'item-type' => 'taxonomy', 720 'item-object' => $taxonomy_name, 717 721 ) 718 722 ), … … 832 836 <span class="add-to-menu"> 833 837 <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 834 <input type="submit" class="button-secondary " value="<?php esc_attr_e('Add to Menu'); ?>" name="add-taxonomy-menu-item" />838 <input type="submit" class="button-secondary submit-add-to-menu" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-taxonomy-menu-item" id="submit-taxonomy-<?php echo $taxonomy_name; ?>" /> 835 839 </span> 836 840 </p>
Note: See TracChangeset
for help on using the changeset viewer.