@׈@++ @?d@+@׈@ @@`O@@%@XM@bz@X@%@(@@d@׈@7@d@7@{@7d@׈@@@8'@8@@H@X@ez@&@'@{@׈@`d@dpAd@77@dAdx|@7@d@8}@d)d@׈@d80M@88|@PIgz@8:A@*@8Bdgz@dd @@dg@@@@M@X@ N@H@ez@PN@XM@Bp<>0PR^`lnu@~`0@@@@p@`dcz@XM@!@ȁ@@U@B/** * Class representing a block template. * * @since 5.8.0 */ED/** * Type: wp_template. * * @since 5.8.0 * @var string */8/** * Theme. * * @since 5.8.0 * @var string */DdDd@/** * Template slug. * * @since 5.8.0 * @var string */d8/** * Title. * * @since 5.8.0 * @var string */@d:/** * Content. * * @since 5.8.0 * @var string */d@>/** * Description. * * @since 5.8.0 * @var string */</** * Post ID. * * @since 5.8.0 * @var int|null */\B/** * Template Status. * * @since 5.8.0 * @var string */d</** * Post types. * * @since 5.9.0 * @var array */]=/** * Print the header template-part. * * @since 5.9.0 */=/** * Print the footer template-part. * * @since 5.9.0 */_   Q; &)P/0p67Ҕ@ւ@XӔ@@Pa@Ҕ@Ӕ@Ӕ@Ӕ@(@Ҕ@`  @ PI1"G-.47!`(,?AaEX!a  !)/T=Cd>@E_du1| @e loading fudz@age WordPrescz@cale=1" />Ȃ@dl8cz@dKd@@Ҕ@d@@lKd@d@Ҕ@@@%@gz@@H@x@@@Ӕ@cU@\U0>@:/** * Request ID. * * @since 4.9.6 * @var int */php */d=/** * User email. * * @since 4.9.6 * @var string */PMd>/** * Action name. * * @since 4.9.6 * @var string */@dA/** * Current status. * * @since 4.9.6 * @var string */dW\Qittkq}40G/** * Pending objects queue. * * @since 4.5.0 * @var array */F/** * Destroys all sessions for all users. * * @since 4.0.0 *//JBError: Your account has been marked as a spammer.tHOdOd@@uuOd 2.0.0 * * @param string $role Role name. */ public function remove_role( $role ) { if ( ! isset( $this->role_objects[ $role ] ) ) { return; } unset( $this->role_objects[ $role ] ); unset( $this->role_names[ $role ] ); unset( $this->roles[ $role ] ); if ( $this->use_db ) { update_option( $this->role_key, $this->roles ); } if ( get_option( 'default_role' ) == $role ) { update_option( 'default_role', 'subscriber' ); } } /** * Add capability to role. * * @since 2.0.0 * * @param string $role Role name. * @param string $cap Capability name. * @param bool $grant Optional. Whether role is capable of performing capability. * Default true. */ public function add_cap( $role, $cap, $grant = true ) { if ( ! isset( $this->roles[ $role ] ) ) { return; } $this->roles[ $role ]['capabilities'][ $cap ] = $grant; if ( $this->use_db ) { update_option( $this->role_key, $this->roles ); } } /** * Remove capability from role. * * @since 2.0.0 * * @param string $role Role name. * @param string $cap Capability name. */ public function remove_cap( $role, $cap ) { if ( ! isset( $this->roles[ $role ] ) ) { return; } unset( $this->roles[ $role ]['capabilities'][ $cap ] ); if ( $this->use_db ) { update_option( $this->role_key, $this->roles ); } } /** * Retrieve role object by name. * * @since 2.0.0 * * @param string $role Role name. * @return WP_Role|null WP_Role object if found, null if the role does not exist. */ public function get_role( $role ) { if ( isset( $this->role_objects[ $role ] ) ) { return $this->role_objects[ $role ]; } else { return null; } } /** * Retrieve list of role names. * * @since 2.0.0 * * @return string[] List of role names. */ public function get_names() { return $this->role_names; } /** * Whether role name is currently in the list of available roles. * * @since 2.0.0 * * @param string $role Role name to look up. * @return bool */ public function is_role( $role ) { return isset( $this->role_names[ $role ] ); } /** * Initializes all of the available roles. * * @since 4.9.0 */ public function init_roles() { if ( empty( $this->roles ) ) { return; } $this->role_objects = array(); $this->role_names = array(); foreach ( array_keys( $this->roles ) as $role ) { $this->role_objects[ $role ] = new WP_Role( $role, $this->roles[ $role ]['capabilities'] ); $this->role_names[ $role ] = $this->roles[ $role ]['name']; } /** * After the roles have been initialized, allow plugins to add their own roles. * * @since 4.7.0 * * @param WP_Roles $wp_roles A reference to the WP_Roles object. */ do_action( 'wp_roles_init', $this ); } /** * Sets the site to operate on. Defaults to the current site. * * @since 4.9.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $site_id Site ID to initialize roles for. Default is the current site. */ public function for_site( $site_id = null ) { global $wpdb; if ( ! empty( $site_id ) ) { $this->site_id = absint( $site_id ); } else { $this->site_id = get_current_blog_id(); } $this->role_key = $wpdb->get_blog_prefix( $this->site_id ) . 'user_roles'; if ( ! empty( $this->roles ) && ! $this->use_db ) { return; } $this->roles = $this->get_roles_data(); $this->init_roles(); } /** * Gets the ID of the site for which roles are currently initialized. * * @since 4.9.0 * * @return int Site ID. */ public function get_site_id() { return $this->site_id; } /** * Gets the available roles data. * * @since 4.9.0 * * @global array $wp_user_roles Used to set the 'roles' property value. * * @return array Roles array. */ protected function get_roles_data() { global $wp_user_roles; if ( ! empty( $wp_user_roles ) ) { return $wp_user_roles; } if ( is_multisite() && get_current_blog_id() != $this->site_id ) { remove_action( 'switch_blog', 'wp_switch_roles_and_user', 1 ); $roles = get_blog_option( $this->site_id, $this->role_key, array() ); add_action( 'switch_blog', 'wp_switch_roles_and_user', 1, 2 ); return $roles; } return get_option( $this->role_key, array() ); } }