���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC register_hooks(); } return self::$instance; } /** * Constructor. * * Sets the WP_Rewrite instance to use. * * @param WP_Rewrite|null $rewrite Optional. WP_Rewrite instance to use. Default is the $wp_rewrite global. * @throws RuntimeException Throws an exception if the $wp_rewrite global is not set. */ public function __construct( $rewrite = null ) { if ( ! $rewrite ) { if ( empty( $GLOBALS['wp_rewrite'] ) ) { /* translators: 1: PHP class name, 2: PHP variable name */ throw new RuntimeException( sprintf( __( 'The %1$s class must not be instantiated before the %2$s global is set.', 'wordpress-seo' ), self::class, '$wp_rewrite' ) ); } $rewrite = $GLOBALS['wp_rewrite']; } $this->wp_rewrite = $rewrite; } /** * Registers all necessary hooks with WordPress. * * @return void */ public function register_hooks() { add_action( 'init', [ $this, 'trigger_dynamic_rewrite_rules_hook' ], 1 ); add_filter( 'option_rewrite_rules', [ $this, 'filter_rewrite_rules_option' ] ); add_filter( 'sanitize_option_rewrite_rules', [ $this, 'sanitize_rewrite_rules_option' ] ); } /** * Adds a dynamic rewrite rule that transforms a URL structure to a set of query vars. * * Rules registered with this method are applied dynamically and do not require the rewrite rules * to be flushed in order to become active, which is a benefit over the regular WordPress core API. * Note however that the dynamic application only works for rules that correspond to index.php. * Non-WordPress rewrite rules still require flushing. * * Any value in the $after parameter that isn't 'bottom' will result in the rule * being placed at the top of the rewrite rules. * * @param string $regex Regular expression to match request against. * @param string|array $query The corresponding query vars for this rewrite rule. * @param string $priority Optional. Priority of the new rule. Accepts 'top' * or 'bottom'. Default 'bottom'. * * @return void */ public function add_rule( $regex, $query, $priority = 'bottom' ) { if ( is_array( $query ) ) { $query = add_query_arg( $query, 'index.php' ); } $this->wp_rewrite->add_rule( $regex, $query, $priority ); // Do not further handle external rules. if ( substr( $query, 0, strlen( $this->wp_rewrite->index . '?' ) ) !== $this->wp_rewrite->index . '?' ) { return; } if ( $priority === 'bottom' ) { $this->extra_rules_bottom[ $regex ] = $query; return; } $this->extra_rules_top[ $regex ] = $query; } /** * Triggers the hook on which rewrite rules should be added. * * This allows for a more specific point in time from the generic `init` hook where this is * otherwise handled. * * @return void */ public function trigger_dynamic_rewrite_rules_hook() { /** * Fires when the plugin's dynamic rewrite rules should be added. * * @param self $dynamic_rewrites Dynamic rewrites handler instance. Use its `add_rule()` method * to add dynamic rewrite rules. */ do_action( 'yoast_add_dynamic_rewrite_rules', $this ); } /** * Filters the rewrite rules option to dynamically add additional rewrite rules. * * @param array|string $rewrite_rules Array of rewrite rule $regex => $query pairs, or empty string * if currently not set. * * @return array|string Filtered value of $rewrite_rules. */ public function filter_rewrite_rules_option( $rewrite_rules ) { // Do not add extra rewrite rules if the rules need to be flushed. if ( empty( $rewrite_rules ) ) { return $rewrite_rules; } return array_merge( $this->extra_rules_top, $rewrite_rules, $this->extra_rules_bottom ); } /** * Sanitizes the rewrite rules option prior to writing it to the database. * * This method ensures that the dynamic rewrite rules do not become part of the actual option. * * @param array|string $rewrite_rules Array pf rewrite rule $regex => $query pairs, or empty string * in order to unset. * * @return array|string Filtered value of $rewrite_rules before writing the option. */ public function sanitize_rewrite_rules_option( $rewrite_rules ) { if ( empty( $rewrite_rules ) ) { return $rewrite_rules; } return array_diff_key( $rewrite_rules, $this->extra_rules_top, $this->extra_rules_bottom ); } }