"> a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2609_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2610 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2610_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2610_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2611 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2612 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2612_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2612_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2613 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2615 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2615_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2615_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2616 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2616_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2616_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2617 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2617_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2617_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2618 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2618_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2618_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2619 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2619_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2619_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2620 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2620_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2650 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2651 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2652 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2653 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2654 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2655 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2656 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2657 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2658 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2659 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2660 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2661 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2662 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2663 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2664 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2665 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2666 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2667 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2668 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2669 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2670 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2673 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2674 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2675 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2678 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2679 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2680 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2681 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2682 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2683 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2684 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2685 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2686 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2687 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2688 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2689 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2690 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2691 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2692 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2693 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2696 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2699 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2701 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2702 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2703 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2704 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2753 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2753_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2753_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2754 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2755 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2756 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2757 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2830 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2831 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2832 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2833 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2834 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2835 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2836 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2837 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2838 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2838_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2838_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2839 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2840 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2840_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2840_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2841 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2995 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 2996 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3079 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3079_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3079_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3080 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3081 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3085 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3118 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3119 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3164 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3256 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3257 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3258 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3350 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3351 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3379 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3380 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3381 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3394 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3394_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3394_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3395 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3429 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3430 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3431 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3433 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3439 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3440 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3455 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3456 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3456_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3456_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3466 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3467 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3468 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3501 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3502 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3503 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3534 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3541 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3541_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3541_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3542 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3574 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3575 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3576 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3596 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3597 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3598 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3599 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3600 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3600_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3600_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3601 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3601_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3601_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3602 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3602_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3602_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3603 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3603_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3603_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3604 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3605 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3606 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3607 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3608 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3609 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3712 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3764 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3764_fsm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3764_vm a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3766 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3767 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 3997 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4143 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4144 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4145 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4146 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4147 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4148 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4149 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4150 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4151 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4152 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4153 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4154 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4155 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4156 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4157 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4158 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4159 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4160 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4161 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4162 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4163 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4164 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4165 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4166 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4167 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4168 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4169 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4170 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4171 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4172 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4173 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 4174 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 5002 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 548 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 549 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 6102 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 6104 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 6106 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 6110 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 6111 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 6112 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 6113 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 6117 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 826 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 827 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años 828 a4345e5759 first commit %!s(int64=5) %!d(string=hace) años PG_VERSION a4345e5759 first commit %!s(int64=5) %!d(string=hace) años pg_filenode.map a4345e5759 first commit %!s(int64=5) %!d(string=hace) años pg_internal.init a4345e5759 first commit %!s(int64=5) %!d(string=hace) años tum/whitesports - Gogs: Simplico Git Service

Geen omschrijving

class-twentytwenty-script-loader.php 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Javascript Loader Class
  4. *
  5. * Allow `async` and `defer` while enqueuing Javascript.
  6. *
  7. * Based on a solution in WP Rig.
  8. *
  9. * @package WordPress
  10. * @subpackage Twenty_Twenty
  11. * @since Twenty Twenty 1.0
  12. */
  13. if ( ! class_exists( 'TwentyTwenty_Script_Loader' ) ) {
  14. /**
  15. * A class that provides a way to add `async` or `defer` attributes to scripts.
  16. *
  17. * @since Twenty Twenty 1.0
  18. */
  19. class TwentyTwenty_Script_Loader {
  20. /**
  21. * Adds async/defer attributes to enqueued / registered scripts.
  22. *
  23. * If #12009 lands in WordPress, this function can no-op since it would be handled in core.
  24. *
  25. * @since Twenty Twenty 1.0
  26. *
  27. * @link https://core.trac.wordpress.org/ticket/12009
  28. *
  29. * @param string $tag The script tag.
  30. * @param string $handle The script handle.
  31. * @return string Script HTML string.
  32. */
  33. public function filter_script_loader_tag( $tag, $handle ) {
  34. foreach ( array( 'async', 'defer' ) as $attr ) {
  35. if ( ! wp_scripts()->get_data( $handle, $attr ) ) {
  36. continue;
  37. }
  38. // Prevent adding attribute when already added in #12009.
  39. if ( ! preg_match( ":\s$attr(=|>|\s):", $tag ) ) {
  40. $tag = preg_replace( ':(?=></script>):', " $attr", $tag, 1 );
  41. }
  42. // Only allow async or defer, not both.
  43. break;
  44. }
  45. return $tag;
  46. }
  47. }
  48. }