Changeset 17228
- Timestamp:
- 01/06/2011 04:11:14 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r17113 r17228 674 674 if ( 'single' == $_REQUEST['mode'] ) { 675 675 $wp_list_table = get_list_table('WP_Post_Comments_List_Table'); 676 } else { 676 } else { 677 677 $wp_list_table = get_list_table('WP_Comments_List_Table'); 678 678 } -
trunk/wp-admin/css/colors-classic.dev.css
r17202 r17228 1465 1465 } 1466 1466 1467 #post-body ul.category-tabs li.tabs a, 1467 #post-body ul.category-tabs li.tabs a, 1468 1468 #post-body ul.add-menu-item-tabs li.tabs a, 1469 1469 body.press-this ul.category-tabs li.tabs a { -
trunk/wp-admin/includes/class-wp-comments-list-table.php
r17168 r17228 67 67 68 68 $page = $this->get_pagenum(); 69 69 70 70 if ( isset( $_REQUEST['start'] ) ) { 71 71 $start = $_REQUEST['start']; … … 73 73 $start = ( $page - 1 ) * $comments_per_page; 74 74 } 75 75 76 76 if ( $doing_ajax && isset( $_REQUEST['offset'] ) ) { 77 77 $start += $_REQUEST['offset']; … … 116 116 ) ); 117 117 } 118 118 119 119 function get_per_page( $comment_status = 'all' ) { 120 120 $comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' ); … … 514 514 515 515 function get_column_info() { 516 $this->_column_headers = array( 516 $this->_column_headers = array( 517 517 array( 518 518 'author' => __( 'Author' ), … … 522 522 array(), 523 523 ); 524 524 525 525 return $this->_column_headers; 526 526 } 527 527 528 528 function get_table_classes() { 529 529 $classes = parent::get_table_classes(); … … 531 531 return $classes; 532 532 } 533 533 534 534 function display( $output_empty = false ) { 535 535 extract( $this->_args ); … … 542 542 <?php 543 543 } 544 544 545 545 function get_per_page( $comment_status = false ) { 546 546 return 10; -
trunk/wp-admin/includes/class-wp-list-table.php
r17206 r17228 186 186 * 187 187 * @param string $text The search button text 188 * @param string $input_id The search input id 188 * @param string $input_id The search input id 189 189 */ 190 190 function search_box( $text, $input_id ) { -
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r17177 r17228 292 292 $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme_key, $theme, $context ); 293 293 $actions = apply_filters( "theme_action_links_$theme_key", $actions, $theme_key, $theme, $context ); 294 294 295 295 $class = empty( $theme['enabled'] ) ? 'inactive' : 'active'; 296 296 $checkbox_id = "checkbox_" . md5($theme['Name']); -
trunk/wp-admin/includes/class-wp-plugins-list-table.php
r17129 r17228 234 234 break; 235 235 } 236 236 237 237 if ( 'search' != $type ) { 238 238 $status_links[$type] = sprintf( "<a href='%s' %s>%s</a>", -
trunk/wp-admin/includes/class-wp-terms-list-table.php
r17193 r17228 72 72 ) ); 73 73 } 74 74 75 75 function has_items() { 76 76 // todo: populate $this->items in prepare_items() … … 140 140 $out = ''; 141 141 $count = 0; 142 142 143 143 $terms = array(); 144 144 … … 161 161 $count = $number; // Only displaying a single page. 162 162 } 163 163 164 164 if ( empty( $terms ) ) { 165 165 echo '<tr class="no-items"><td colspan="2">'; -
trunk/wp-admin/includes/ms.php
r17215 r17228 350 350 if ( get_site_option( 'upload_space_check_disabled' ) ) 351 351 return min( $size, $fileupload_maxk ); 352 352 353 353 return min( $size, $fileupload_maxk, get_upload_space_available() ); 354 354 } -
trunk/wp-admin/includes/post.php
r17223 r17228 1222 1222 $time = $lock[0]; 1223 1223 $user = isset( $lock[1] ) ? $lock[1] : get_post_meta( $post->ID, '_edit_last', true ); 1224 1224 1225 1225 $time_window = apply_filters( 'wp_check_post_lock_window', AUTOSAVE_INTERVAL * 2 ); 1226 1226 -
trunk/wp-admin/includes/template.php
r17191 r17228 331 331 return; 332 332 } 333 333 334 334 if ( $mode == 'single' ) { 335 335 $wp_list_table = get_list_table('WP_Post_Comments_List_Table'); -
trunk/wp-admin/js/edit-comments.dev.js
r17124 r17228 214 214 refillTheExtraList(); 215 215 }; 216 216 217 217 var refillTheExtraList = function(ev) { 218 218 var args = $.query.get(), total_pages = listTable.get_total_pages(), per_page = $('input[name=_per_page]', '#comments-form').val(); 219 219 220 220 if (args.paged > total_pages) { 221 221 return; … … 229 229 args.offset = per_page - 1; // fetch only the last item of the next page 230 230 } 231 231 232 232 args.no_placeholder = true; 233 233 … … 278 278 279 279 this.comments_listing = $('#comments-form > input[name="comment_status"]').val() || ''; 280 280 281 281 $(listTable).bind('beforeChangePage', function(){ 282 282 commentReply.close(); -
trunk/wp-admin/js/list-table.dev.js
r17206 r17228 161 161 if ( $el.parents('.tablenav.bottom').length ) 162 162 scrollTo(0, 0); 163 163 164 164 $(listTable).trigger('changePage'); 165 165 }); … … 257 257 return; 258 258 259 if ( 'site-users-network' == pagenow || 'site-themes-network' == pagenow ) { 259 if ( 'site-users-network' == pagenow || 'site-themes-network' == pagenow ) { 260 260 $('h4.search-text').remove(); 261 261 262 262 if ( data.s ) 263 $('ul.subsubsub').after($('<h4 class="clear search-text">').html( 264 listTableL10n.search.replace('%s', this.htmlencode(data.s)) 263 $('ul.subsubsub').after($('<h4 class="clear search-text">').html( 264 listTableL10n.search.replace('%s', this.htmlencode(data.s)) 265 265 )); 266 } else { 266 } else { 267 267 $('h2 .subtitle').remove(); 268 268 269 if ( data.s ) 270 $('h2').append($('<span class="subtitle">').html( 271 listTableL10n.search.replace('%s', this.htmlencode(data.s)) 272 )); 269 if ( data.s ) 270 $('h2').append($('<span class="subtitle">').html( 271 listTableL10n.search.replace('%s', this.htmlencode(data.s)) 272 )); 273 273 } 274 274 }); -
trunk/wp-admin/post.php
r17169 r17228 163 163 $submenu_file = "edit.php"; 164 164 } else { 165 if ( isset( $post_type_object ) && $post_type_object->show_in_menu && $post_type_object->show_in_menu !== true ) 165 if ( isset( $post_type_object ) && $post_type_object->show_in_menu && $post_type_object->show_in_menu !== true ) 166 166 $parent_file = $post_type_object->show_in_menu; 167 167 else -
trunk/wp-includes/admin-bar.php
r17161 r17228 357 357 if ( false === $pref ) 358 358 return 'admin' != $context || is_multisite(); 359 359 360 360 return 'true' === $pref; 361 361 } -
trunk/wp-includes/formatting.php
r17171 r17228 1314 1314 $url = $matches[2]; 1315 1315 $suffix = ''; 1316 1316 1317 1317 /** Include parentheses in the URL only if paired **/ 1318 1318 while ( substr_count( $url, '(' ) < substr_count( $url, ')' ) ) { 1319 $suffix = strrchr( $url, ')' ) . $suffix; 1320 $url = substr( $url, 0, strrpos( $url, ')' ) ); 1319 $suffix = strrchr( $url, ')' ) . $suffix; 1320 $url = substr( $url, 0, strrpos( $url, ')' ) ); 1321 1321 } 1322 1322 -
trunk/wp-includes/js/tinymce/plugins/wplink/css/wplink.dev.css
r17133 r17228 5 5 6 6 #wp-link ol, 7 #wp-link ul { 7 #wp-link ul { 8 8 list-style: none; 9 9 margin: 0; 10 padding: 0; 10 padding: 0; 11 11 } 12 12 -
trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js
r17117 r17228 252 252 visible = !panel.is(':visible'), 253 253 win = $(window); 254 254 255 255 $(this).toggleClass('toggle-arrow-active', visible); 256 256 257 257 inputs.dialog.height('auto'); 258 258 panel.slideToggle( 300, function() { 259 259 setUserSetting('wplink', visible ? '1' : '0'); 260 260 inputs[ visible ? 'search' : 'url' ].focus(); 261 261 262 262 // Move the box if the box is now expanded, was opened in a collapsed state, 263 263 // and if it needs to be moved. (Judged by bottom not being positive or … … 267 267 bottom = top + widget.outerHeight(), 268 268 diff = bottom - win.height(); 269 269 270 270 if ( diff > scroll ) { 271 271 widget.animate({'top': diff < top ? top - diff : scroll }, 200); -
trunk/wp-includes/js/wp-lists.dev.js
r17113 r17228 324 324 var list = this, 325 325 $el = $(el || document); 326 326 327 327 $el.delegate( "form[class^=add:" + list.id + ":]", 'submit', function(){ 328 328 return list.wpList.add(this); … … 332 332 return list.wpList.add(this); 333 333 }); 334 334 335 335 $el.delegate( "[class^=delete:" + list.id + ":]", 'click', function(){ 336 336 return list.wpList.del(this); -
trunk/wp-includes/kses.php
r17185 r17228 18 18 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or visit 19 19 * http://www.gnu.org/licenses/gpl.html 20 * 20 * 21 21 * [kses strips evil scripts!] 22 22 * -
trunk/wp-includes/link-template.php
r17102 r17228 275 275 276 276 $link = $wp_rewrite->get_page_permastruct(); 277 278 if ( !empty($link) && ( ( isset($post->post_status) && !$draft_or_pending ) || $sample ) ) { 277 278 if ( !empty($link) && ( ( isset($post->post_status) && !$draft_or_pending ) || $sample ) ) { 279 279 if ( ! $leavename ) { 280 280 $link = str_replace('%pagename%', get_page_uri($id), $link); -
trunk/wp-includes/ms-functions.php
r17218 r17228 456 456 * at wp-admin/network/settings.php. The check is only run on 457 457 * self-registrations; user creation at wp-admin/network/users.php 458 * bypasses this check. 458 * bypasses this check. 459 459 * 460 460 * @since MU … … 613 613 * effectively an override of this limitation. 614 614 * 615 * Filter 'wpmu_validate_blog_signup' if you want to modify 615 * Filter 'wpmu_validate_blog_signup' if you want to modify 616 616 * the way that WordPress validates new site signups. 617 617 * … … 1578 1578 * Check an array of MIME types against a whitelist. 1579 1579 * 1580 * WordPress ships with a set of allowed upload filetypes, 1580 * WordPress ships with a set of allowed upload filetypes, 1581 1581 * which is defined in wp-includes/functions.php in 1582 1582 * get_allowed_mime_types(). This function is used to filter 1583 * that list against the filetype whitelist provided by Multisite 1584 * Super Admins at wp-admin/network/settings.php. 1583 * that list against the filetype whitelist provided by Multisite 1584 * Super Admins at wp-admin/network/settings.php. 1585 1585 * 1586 1586 * @since MU … … 1807 1807 * @since MU 1808 1808 * @uses add_existing_user_to_blog() 1809 */ 1809 */ 1810 1810 function maybe_add_existing_user_to_blog() { 1811 1811 if ( false === strpos( $_SERVER[ 'REQUEST_URI' ], '/newbloguser/' ) ) … … 1833 1833 * @since MU 1834 1834 * @uses add_user_to_blog() 1835 * 1835 * 1836 1836 * @param array $details 1837 */ 1837 */ 1838 1838 function add_existing_user_to_blog( $details = false ) { 1839 1839 global $blog_id; … … 1850 1850 * 1851 1851 * @since MU 1852 * 1852 * 1853 1853 * @param int $user_id 1854 1854 * @param string $email 1855 1855 * @param array $meta 1856 */ 1856 */ 1857 1857 function add_new_user_to_blog( $user_id, $email, $meta ) { 1858 1858 global $current_site; … … 1870 1870 * 1871 1871 * @since MU 1872 */ 1872 */ 1873 1873 function fix_phpmailer_messageid( $phpmailer ) { 1874 1874 global $current_site; … … 1885 1885 * @param string $username 1886 1886 * @return bool 1887 */ 1887 */ 1888 1888 function is_user_spammy( $username = 0 ) { 1889 1889 if ( $username == 0 ) { … … 1908 1908 * @param int $value The new public value 1909 1909 * @return bool 1910 */ 1910 */ 1911 1911 function update_blog_public( $old_value, $value ) { 1912 1912 global $wpdb; … … 1923 1923 * 1924 1924 * @return int 1925 */ 1925 */ 1926 1926 function get_dashboard_blog() { 1927 1927 if ( $blog = get_site_option( 'dashboard_blog' ) ) … … 1941 1941 * @param int $blog_id Optional. Defaults to current blog. 1942 1942 * @return bool 1943 */ 1943 */ 1944 1944 function is_user_option_local( $key, $user_id = 0, $blog_id = 0 ) { 1945 1945 global $wpdb; … … 1965 1965 * 1966 1966 * @return bool 1967 */ 1967 */ 1968 1968 function users_can_register_signup_filter() { 1969 1969 $registration = get_site_option('registration'); … … 1982 1982 * @param string $text 1983 1983 * @return string 1984 */ 1984 */ 1985 1985 function welcome_user_msg_filter( $text ) { 1986 1986 if ( !$text ) { -
trunk/wp-includes/nav-menu-template.php
r17109 r17228 427 427 isset( $possible_taxonomy_ancestors[ $parent_item->object ] ) && 428 428 in_array( $parent_item->object_id, $possible_taxonomy_ancestors[ $parent_item->object ] ) && 429 ( 429 ( 430 430 ! isset( $queried_object->term_id ) || 431 431 $parent_item->object_id != $queried_object->term_id -
trunk/wp-includes/post.php
r17224 r17228 620 620 * exclude_from_search - Whether to exclude posts with this post status from search results. Defaults to true. 621 621 * show_in_admin_all_list - Whether to include posts in the edit listing for their post type 622 * show_in_admin_status_list - Show in the list of statuses with post counts at the top of the edit 622 * show_in_admin_status_list - Show in the list of statuses with post counts at the top of the edit 623 623 * listings, e.g. All (12) | Published (9) | My Custom Status (2) ... 624 * 624 * 625 625 * Arguments prefixed with an _underscore shouldn't be used by plugins and themes. 626 626 * -
trunk/wp-includes/taxonomy.php
r17155 r17228 2913 2913 $args = wp_parse_args( $args, array( 2914 2914 'template' => '%s: %l.', 2915 ) ); 2915 ) ); 2916 2916 extract( $args, EXTR_SKIP ); 2917 2917 -
trunk/wp-includes/theme.php
r17220 r17228 1755 1755 else 1756 1756 $_wp_theme_features[$feature] = array_slice( func_get_args(), 1 ); 1757 1757 1758 1758 if ( $feature == 'post-formats' && is_array( $_wp_theme_features[$feature][0] ) ) 1759 1759 $_wp_theme_features[$feature][0] = array_intersect( $_wp_theme_features[$feature][0], array_keys( get_post_format_slugs() ) ); -
trunk/wp-includes/user.php
r17227 r17228 1458 1458 if ( empty($user_registered) ) 1459 1459 $user_registered = gmdate('Y-m-d H:i:s'); 1460 1460 1461 1461 if ( empty($show_admin_bar_front) ) 1462 1462 $show_admin_bar_front = 'true'; 1463 1463 1464 1464 if ( empty($show_admin_bar_admin) ) 1465 1465 $show_admin_bar_admin = is_multisite() ? 'true' : 'false';
Note: See TracChangeset
for help on using the changeset viewer.