Changeset 47287
- Timestamp:
- 02/14/2020 12:05:43 AM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image.php
r47219 r47287 639 639 } 640 640 641 list( $n , $d) = explode( '/', $str );642 if ( ! empty( $d ) ) {643 return $n / $d;641 list( $numerator, $denominator ) = explode( '/', $str ); 642 if ( ! empty( $denominator ) ) { 643 return $numerator / $denominator; 644 644 } 645 645 return $str; -
trunk/src/wp-includes/comment-template.php
r47276 r47287 544 544 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. 545 545 * 546 * @param string $ dOptional. The format of the date. Default user's setting.546 * @param string $format Optional. The format of the date. Default user's setting. 547 547 * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the date. 548 548 * Default current comment. 549 549 * @return string The comment's date. 550 550 */ 551 function get_comment_date( $ d= '', $comment_ID = 0 ) {551 function get_comment_date( $format = '', $comment_ID = 0 ) { 552 552 $comment = get_comment( $comment_ID ); 553 if ( '' == $ d) {553 if ( '' == $format ) { 554 554 $date = mysql2date( get_option( 'date_format' ), $comment->comment_date ); 555 555 } else { 556 $date = mysql2date( $ d, $comment->comment_date );556 $date = mysql2date( $format, $comment->comment_date ); 557 557 } 558 558 /** … … 562 562 * 563 563 * @param string|int $date Formatted date string or Unix timestamp. 564 * @param string $ dThe format of the date.564 * @param string $format The format of the date. 565 565 * @param WP_Comment $comment The comment object. 566 566 */ 567 return apply_filters( 'get_comment_date', $date, $ d, $comment );567 return apply_filters( 'get_comment_date', $date, $format, $comment ); 568 568 } 569 569 … … 574 574 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. 575 575 * 576 * @param string $ dOptional. The format of the date. Default user's settings.576 * @param string $format Optional. The format of the date. Default user's settings. 577 577 * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the date. 578 578 * Default current comment. 579 579 */ 580 function comment_date( $ d= '', $comment_ID = 0 ) {581 echo get_comment_date( $ d, $comment_ID );580 function comment_date( $format = '', $comment_ID = 0 ) { 581 echo get_comment_date( $format, $comment_ID ); 582 582 } 583 583 … … 1032 1032 * @since 1.5.0 1033 1033 * 1034 * @param string $ dOptional. The format of the time. Default user's settings.1034 * @param string $format Optional. The format of the time. Default user's settings. 1035 1035 * @param bool $gmt Optional. Whether to use the GMT date. Default false. 1036 1036 * @param bool $translate Optional. Whether to translate the time (for use in feeds). … … 1038 1038 * @return string The formatted time. 1039 1039 */ 1040 function get_comment_time( $ d= '', $gmt = false, $translate = true ) {1040 function get_comment_time( $format = '', $gmt = false, $translate = true ) { 1041 1041 $comment = get_comment(); 1042 1042 1043 1043 $comment_date = $gmt ? $comment->comment_date_gmt : $comment->comment_date; 1044 if ( '' == $ d) {1044 if ( '' == $format ) { 1045 1045 $date = mysql2date( get_option( 'time_format' ), $comment_date, $translate ); 1046 1046 } else { 1047 $date = mysql2date( $ d, $comment_date, $translate );1047 $date = mysql2date( $format, $comment_date, $translate ); 1048 1048 } 1049 1049 … … 1054 1054 * 1055 1055 * @param string|int $date The comment time, formatted as a date string or Unix timestamp. 1056 * @param string $ dDate format.1056 * @param string $format Date format. 1057 1057 * @param bool $gmt Whether the GMT date is in use. 1058 1058 * @param bool $translate Whether the time is translated. 1059 1059 * @param WP_Comment $comment The comment object. 1060 1060 */ 1061 return apply_filters( 'get_comment_time', $date, $ d, $gmt, $translate, $comment );1061 return apply_filters( 'get_comment_time', $date, $format, $gmt, $translate, $comment ); 1062 1062 } 1063 1063 … … 1067 1067 * @since 0.71 1068 1068 * 1069 * @param string $ dOptional. The format of the time. Default user's settings.1070 */ 1071 function comment_time( $ d= '' ) {1072 echo get_comment_time( $ d);1069 * @param string $format Optional. The format of the time. Default user's settings. 1070 */ 1071 function comment_time( $format = '' ) { 1072 echo get_comment_time( $format ); 1073 1073 } 1074 1074 -
trunk/src/wp-includes/general-template.php
r47230 r47287 2345 2345 * @global string $previousday The day of the previous post in the loop. 2346 2346 * 2347 * @param string $ dOptional. PHP date format defaults to the date_format option if not specified.2347 * @param string $format Optional. PHP date format defaults to the date_format option if not specified. 2348 2348 * @param string $before Optional. Output before the date. 2349 2349 * @param string $after Optional. Output after the date. … … 2351 2351 * @return string|void String if retrieving. 2352 2352 */ 2353 function the_date( $ d= '', $before = '', $after = '', $echo = true ) {2353 function the_date( $format = '', $before = '', $after = '', $echo = true ) { 2354 2354 global $currentday, $previousday; 2355 2355 … … 2357 2357 2358 2358 if ( is_new_day() ) { 2359 $the_date = $before . get_the_date( $ d) . $after;2359 $the_date = $before . get_the_date( $format ) . $after; 2360 2360 $previousday = $currentday; 2361 2361 } … … 2367 2367 * 2368 2368 * @param string $the_date The formatted date string. 2369 * @param string $ dPHP date format. Defaults to 'date_format' option2369 * @param string $format PHP date format. Defaults to 'date_format' option 2370 2370 * if not specified. 2371 2371 * @param string $before HTML output before the date. 2372 2372 * @param string $after HTML output after the date. 2373 2373 */ 2374 $the_date = apply_filters( 'the_date', $the_date, $ d, $before, $after );2374 $the_date = apply_filters( 'the_date', $the_date, $format, $before, $after ); 2375 2375 2376 2376 if ( $echo ) { … … 2389 2389 * @since 3.0.0 2390 2390 * 2391 * @param string $ dOptional. PHP date format defaults to the date_format option if not specified.2392 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post.2391 * @param string $format Optional. PHP date format defaults to the date_format option if not specified. 2392 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2393 2393 * @return string|false Date the current post was written. False on failure. 2394 2394 */ 2395 function get_the_date( $ d= '', $post = null ) {2395 function get_the_date( $format = '', $post = null ) { 2396 2396 $post = get_post( $post ); 2397 2397 … … 2400 2400 } 2401 2401 2402 if ( '' == $ d) {2402 if ( '' == $format ) { 2403 2403 $the_date = get_post_time( get_option( 'date_format' ), false, $post, true ); 2404 2404 } else { 2405 $the_date = get_post_time( $ d, false, $post, true );2405 $the_date = get_post_time( $format, false, $post, true ); 2406 2406 } 2407 2407 … … 2412 2412 * 2413 2413 * @param string $the_date The formatted date. 2414 * @param string $ dPHP date format. Defaults to 'date_format' option2414 * @param string $format PHP date format. Defaults to 'date_format' option 2415 2415 * if not specified. 2416 2416 * @param int|WP_Post $post The post object or ID. 2417 2417 */ 2418 return apply_filters( 'get_the_date', $the_date, $ d, $post );2418 return apply_filters( 'get_the_date', $the_date, $format, $post ); 2419 2419 } 2420 2420 … … 2424 2424 * @since 2.1.0 2425 2425 * 2426 * @param string $ dOptional. PHP date format defaults to the date_format option if not specified.2426 * @param string $format Optional. PHP date format defaults to the date_format option if not specified. 2427 2427 * @param string $before Optional. Output before the date. 2428 2428 * @param string $after Optional. Output after the date. … … 2430 2430 * @return string|void String if retrieving. 2431 2431 */ 2432 function the_modified_date( $ d= '', $before = '', $after = '', $echo = true ) {2433 $the_modified_date = $before . get_the_modified_date( $ d) . $after;2432 function the_modified_date( $format = '', $before = '', $after = '', $echo = true ) { 2433 $the_modified_date = $before . get_the_modified_date( $format ) . $after; 2434 2434 2435 2435 /** … … 2439 2439 * 2440 2440 * @param string $the_modified_date The last modified date. 2441 * @param string $ dPHP date format. Defaults to 'date_format' option2441 * @param string $format PHP date format. Defaults to 'date_format' option 2442 2442 * if not specified. 2443 2443 * @param string $before HTML output before the date. 2444 2444 * @param string $after HTML output after the date. 2445 2445 */ 2446 $the_modified_date = apply_filters( 'the_modified_date', $the_modified_date, $ d, $before, $after );2446 $the_modified_date = apply_filters( 'the_modified_date', $the_modified_date, $format, $before, $after ); 2447 2447 2448 2448 if ( $echo ) { … … 2460 2460 * @since 4.6.0 Added the `$post` parameter. 2461 2461 * 2462 * @param string $ dOptional. PHP date format defaults to the date_format option if not specified.2463 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post.2462 * @param string $format Optional. PHP date format defaults to the date_format option if not specified. 2463 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2464 2464 * @return string|false Date the current post was modified. False on failure. 2465 2465 */ 2466 function get_the_modified_date( $ d= '', $post = null ) {2466 function get_the_modified_date( $format = '', $post = null ) { 2467 2467 $post = get_post( $post ); 2468 2468 … … 2470 2470 // For backward compatibility, failures go through the filter below. 2471 2471 $the_time = false; 2472 } elseif ( empty( $ d) ) {2472 } elseif ( empty( $format ) ) { 2473 2473 $the_time = get_post_modified_time( get_option( 'date_format' ), false, $post, true ); 2474 2474 } else { 2475 $the_time = get_post_modified_time( $ d, false, $post, true );2475 $the_time = get_post_modified_time( $format, false, $post, true ); 2476 2476 } 2477 2477 … … 2483 2483 * 2484 2484 * @param string|bool $the_time The formatted date or false if no post is found. 2485 * @param string $ dPHP date format. Defaults to value specified in2485 * @param string $format PHP date format. Defaults to value specified in 2486 2486 * 'date_format' option. 2487 2487 * @param WP_Post|null $post WP_Post object or null if no post is found. 2488 2488 */ 2489 return apply_filters( 'get_the_modified_date', $the_time, $ d, $post );2489 return apply_filters( 'get_the_modified_date', $the_time, $format, $post ); 2490 2490 } 2491 2491 … … 2495 2495 * @since 0.71 2496 2496 * 2497 * @param string $ d Either 'G', 'U', or phpdate format.2498 */ 2499 function the_time( $ d= '' ) {2497 * @param string $format Either 'G', 'U', or PHP date format. 2498 */ 2499 function the_time( $format = '' ) { 2500 2500 /** 2501 2501 * Filters the time a post was written for display. … … 2504 2504 * 2505 2505 * @param string $get_the_time The formatted time. 2506 * @param string $ dThe time format. Accepts 'G', 'U',2507 * or phpdate format.2508 */ 2509 echo apply_filters( 'the_time', get_the_time( $ d ), $d);2506 * @param string $format The time format. Accepts 'G', 'U', 2507 * or PHP date format. 2508 */ 2509 echo apply_filters( 'the_time', get_the_time( $format ), $format ); 2510 2510 } 2511 2511 … … 2515 2515 * @since 1.5.0 2516 2516 * 2517 * @param string $d Optional. Format to use for retrieving the time the post 2518 * was written. Either 'G', 'U', or php date format defaults 2519 * to the value specified in the time_format option. Default empty. 2520 * @param int|WP_Post $post WP_Post object or ID. Default is global `$post` object. 2521 * @return string|int|false Formatted date string or Unix timestamp if `$d` is 'U' or 'G'. False on failure. 2522 */ 2523 function get_the_time( $d = '', $post = null ) { 2517 * @param string $format Optional. Format to use for retrieving the time the post 2518 * was written. Either 'G', 'U', or PHP date format defaults 2519 * to the value specified in the time_format option. Default empty. 2520 * @param int|WP_Post $post WP_Post object or ID. Default is global `$post` object. 2521 * @return string|int|false Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. 2522 * False on failure. 2523 */ 2524 function get_the_time( $format = '', $post = null ) { 2524 2525 $post = get_post( $post ); 2525 2526 … … 2528 2529 } 2529 2530 2530 if ( '' == $ d) {2531 if ( '' == $format ) { 2531 2532 $the_time = get_post_time( get_option( 'time_format' ), false, $post, true ); 2532 2533 } else { 2533 $the_time = get_post_time( $ d, false, $post, true );2534 $the_time = get_post_time( $format, false, $post, true ); 2534 2535 } 2535 2536 … … 2540 2541 * 2541 2542 * @param string $the_time The formatted time. 2542 * @param string $ dFormat to use for retrieving the time the post was written.2543 * Accepts 'G', 'U', or phpdate format value specified2543 * @param string $format Format to use for retrieving the time the post was written. 2544 * Accepts 'G', 'U', or PHP date format value specified 2544 2545 * in 'time_format' option. Default empty. 2545 2546 * @param int|WP_Post $post WP_Post object or ID. 2546 2547 */ 2547 return apply_filters( 'get_the_time', $the_time, $ d, $post );2548 return apply_filters( 'get_the_time', $the_time, $format, $post ); 2548 2549 } 2549 2550 … … 2553 2554 * @since 2.0.0 2554 2555 * 2555 * @param string $ dOptional. Format to use for retrieving the time the post2556 * was written. Either 'G', 'U', or phpdate format. Default 'U'.2556 * @param string $format Optional. Format to use for retrieving the time the post 2557 * was written. Either 'G', 'U', or PHP date format. Default 'U'. 2557 2558 * @param bool $gmt Optional. Whether to retrieve the GMT time. Default false. 2558 2559 * @param int|WP_Post $post WP_Post object or ID. Default is global `$post` object. 2559 2560 * @param bool $translate Whether to translate the time string. Default false. 2560 * @return string|int|false Formatted date string or Unix timestamp if `$d` is 'U' or 'G'. False on failure. 2561 */ 2562 function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { 2561 * @return string|int|false Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. 2562 * False on failure. 2563 */ 2564 function get_post_time( $format = 'U', $gmt = false, $post = null, $translate = false ) { 2563 2565 $post = get_post( $post ); 2564 2566 … … 2574 2576 } 2575 2577 2576 if ( 'U' === $ d || 'G' === $d) {2578 if ( 'U' === $format || 'G' === $format ) { 2577 2579 $time = $datetime->getTimestamp(); 2578 2580 … … 2582 2584 } 2583 2585 } elseif ( $translate ) { 2584 $time = wp_date( $ d, $datetime->getTimestamp(), $gmt ? new DateTimeZone( 'UTC' ) : null );2586 $time = wp_date( $format, $datetime->getTimestamp(), $gmt ? new DateTimeZone( 'UTC' ) : null ); 2585 2587 } else { 2586 2588 if ( $gmt ) { … … 2588 2590 } 2589 2591 2590 $time = $datetime->format( $ d);2592 $time = $datetime->format( $format ); 2591 2593 } 2592 2594 … … 2596 2598 * @since 2.6.0 2597 2599 * 2598 * @param string $time The formatted time.2599 * @param string $ dFormat to use for retrieving the time the post was written.2600 * Accepts 'G', 'U', or phpdate format. Default 'U'.2601 * @param bool $gmt Whether to retrieve the GMT time. Default false.2602 */ 2603 return apply_filters( 'get_post_time', $time, $ d, $gmt );2600 * @param string $time The formatted time. 2601 * @param string $format Format to use for retrieving the time the post was written. 2602 * Accepts 'G', 'U', or PHP date format. Default 'U'. 2603 * @param bool $gmt Whether to retrieve the GMT time. Default false. 2604 */ 2605 return apply_filters( 'get_post_time', $time, $format, $gmt ); 2604 2606 } 2605 2607 … … 2681 2683 * @since 2.0.0 2682 2684 * 2683 * @param string $d Optional Either 'G', 'U', or php date format defaults to the value specified in the time_format option. 2684 */ 2685 function the_modified_time( $d = '' ) { 2685 * @param string $format Optional. Either 'G', 'U', or PHP date format defaults 2686 * to the value specified in the time_format option. 2687 */ 2688 function the_modified_time( $format = '' ) { 2686 2689 /** 2687 2690 * Filters the localized time a post was last modified, for display. … … 2690 2693 * 2691 2694 * @param string $get_the_modified_time The formatted time. 2692 * @param string $ dThe time format. Accepts 'G', 'U',2693 * or phpdate format. Defaults to value2695 * @param string $format The time format. Accepts 'G', 'U', 2696 * or PHP date format. Defaults to value 2694 2697 * specified in 'time_format' option. 2695 2698 */ 2696 echo apply_filters( 'the_modified_time', get_the_modified_time( $ d ), $d);2699 echo apply_filters( 'the_modified_time', get_the_modified_time( $format ), $format ); 2697 2700 } 2698 2701 … … 2703 2706 * @since 4.6.0 Added the `$post` parameter. 2704 2707 * 2705 * @param string $ dOptional. Format to use for retrieving the time the post2706 * was modified. Either 'G', 'U', or phpdate format defaults2707 * to the value specified in the time_format option. Default empty.2708 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post.2708 * @param string $format Optional. Format to use for retrieving the time the post 2709 * was modified. Either 'G', 'U', or PHP date format defaults 2710 * to the value specified in the time_format option. Default empty. 2711 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2709 2712 * @return string|false Formatted date string or Unix timestamp. False on failure. 2710 2713 */ 2711 function get_the_modified_time( $ d= '', $post = null ) {2714 function get_the_modified_time( $format = '', $post = null ) { 2712 2715 $post = get_post( $post ); 2713 2716 … … 2715 2718 // For backward compatibility, failures go through the filter below. 2716 2719 $the_time = false; 2717 } elseif ( empty( $ d) ) {2720 } elseif ( empty( $format ) ) { 2718 2721 $the_time = get_post_modified_time( get_option( 'time_format' ), false, $post, true ); 2719 2722 } else { 2720 $the_time = get_post_modified_time( $ d, false, $post, true );2723 $the_time = get_post_modified_time( $format, false, $post, true ); 2721 2724 } 2722 2725 … … 2728 2731 * 2729 2732 * @param string|bool $the_time The formatted time or false if no post is found. 2730 * @param string $ dFormat to use for retrieving the time the post was2731 * written. Accepts 'G', 'U', or phpdate format. Defaults2733 * @param string $format Format to use for retrieving the time the post was 2734 * written. Accepts 'G', 'U', or PHP date format. Defaults 2732 2735 * to value specified in 'time_format' option. 2733 2736 * @param WP_Post|null $post WP_Post object or null if no post is found. 2734 2737 */ 2735 return apply_filters( 'get_the_modified_time', $the_time, $ d, $post );2738 return apply_filters( 'get_the_modified_time', $the_time, $format, $post ); 2736 2739 } 2737 2740 … … 2741 2744 * @since 2.0.0 2742 2745 * 2743 * @param string $ dOptional. Format to use for retrieving the time the post2744 * was modified. Either 'G', 'U', or phpdate format. Default 'U'.2746 * @param string $format Optional. Format to use for retrieving the time the post 2747 * was modified. Either 'G', 'U', or PHP date format. Default 'U'. 2745 2748 * @param bool $gmt Optional. Whether to retrieve the GMT time. Default false. 2746 2749 * @param int|WP_Post $post WP_Post object or ID. Default is global `$post` object. 2747 2750 * @param bool $translate Whether to translate the time string. Default false. 2748 * @return string|int|false Formatted date string or Unix timestamp if `$d` is 'U' or 'G'. False on failure. 2749 */ 2750 function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { 2751 * @return string|int|false Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. 2752 * False on failure. 2753 */ 2754 function get_post_modified_time( $format = 'U', $gmt = false, $post = null, $translate = false ) { 2751 2755 $post = get_post( $post ); 2752 2756 … … 2762 2766 } 2763 2767 2764 if ( 'U' === $ d || 'G' === $d) {2768 if ( 'U' === $format || 'G' === $format ) { 2765 2769 $time = $datetime->getTimestamp(); 2766 2770 … … 2770 2774 } 2771 2775 } elseif ( $translate ) { 2772 $time = wp_date( $ d, $datetime->getTimestamp(), $gmt ? new DateTimeZone( 'UTC' ) : null );2776 $time = wp_date( $format, $datetime->getTimestamp(), $gmt ? new DateTimeZone( 'UTC' ) : null ); 2773 2777 } else { 2774 2778 if ( $gmt ) { … … 2776 2780 } 2777 2781 2778 $time = $datetime->format( $ d);2782 $time = $datetime->format( $format ); 2779 2783 } 2780 2784 … … 2784 2788 * @since 2.8.0 2785 2789 * 2786 * @param string $time The formatted time.2787 * @param string $ dFormat to use for retrieving the time the post was modified.2788 * Accepts 'G', 'U', or phpdate format. Default 'U'.2789 * @param bool $gmt Whether to retrieve the GMT time. Default false.2790 */ 2791 return apply_filters( 'get_post_modified_time', $time, $ d, $gmt );2790 * @param string $time The formatted time. 2791 * @param string $format Format to use for retrieving the time the post was modified. 2792 * Accepts 'G', 'U', or PHP date format. Default 'U'. 2793 * @param bool $gmt Whether to retrieve the GMT time. Default false. 2794 */ 2795 return apply_filters( 'get_post_modified_time', $time, $format, $gmt ); 2792 2796 } 2793 2797 -
trunk/src/wp-includes/widgets/class-wp-widget-archives.php
r46604 r47287 46 46 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 47 47 48 $c = ! empty( $instance['count'] ) ? '1' : '0';49 $d = ! empty( $instance['dropdown'] ) ? '1' : '0';48 $count = ! empty( $instance['count'] ) ? '1' : '0'; 49 $dropdown = ! empty( $instance['dropdown'] ) ? '1' : '0'; 50 50 51 51 echo $args['before_widget']; … … 55 55 } 56 56 57 if ( $d ) {57 if ( $dropdown ) { 58 58 $dropdown_id = "{$this->id_base}-dropdown-{$this->number}"; 59 59 ?> … … 77 77 'type' => 'monthly', 78 78 'format' => 'option', 79 'show_post_count' => $c ,79 'show_post_count' => $count, 80 80 ), 81 81 $instance … … 141 141 array( 142 142 'type' => 'monthly', 143 'show_post_count' => $c ,143 'show_post_count' => $count, 144 144 ), 145 145 $instance -
trunk/src/wp-includes/widgets/class-wp-widget-categories.php
r47122 r47287 50 50 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 51 51 52 $c = ! empty( $instance['count'] ) ? '1' : '0';53 $h = ! empty( $instance['hierarchical'] ) ? '1' : '0';54 $d = ! empty( $instance['dropdown'] ) ? '1' : '0';52 $count = ! empty( $instance['count'] ) ? '1' : '0'; 53 $hierarchical = ! empty( $instance['hierarchical'] ) ? '1' : '0'; 54 $dropdown = ! empty( $instance['dropdown'] ) ? '1' : '0'; 55 55 56 56 echo $args['before_widget']; … … 62 62 $cat_args = array( 63 63 'orderby' => 'name', 64 'show_count' => $c ,65 'hierarchical' => $h ,64 'show_count' => $count, 65 'hierarchical' => $hierarchical, 66 66 ); 67 67 68 if ( $d ) {68 if ( $dropdown ) { 69 69 echo sprintf( '<form action="%s" method="get">', esc_url( home_url() ) ); 70 70 $dropdown_id = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}";
Note: See TracChangeset
for help on using the changeset viewer.