Changeset 56352
- Timestamp:
- 08/03/2023 12:08:30 PM (18 months ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/inc/template-tags.php
r56121 r56352 141 141 */ 142 142 function twentyseventeen_front_page_section( $partial = null, $id = 0 ) { 143 if ( is_a( $partial, 'WP_Customize_Partial' )) {143 if ( $partial instanceof WP_Customize_Partial ) { 144 144 // Find out the ID and set it up during a selective refresh. 145 145 global $twentyseventeencounter; -
trunk/src/wp-includes/admin-bar.php
r56220 r56352 898 898 ); 899 899 } 900 } elseif ( is_a( $current_object, 'WP_User' )&& current_user_can( 'edit_user', $current_object->ID ) ) {900 } elseif ( $current_object instanceof WP_User && current_user_can( 'edit_user', $current_object->ID ) ) { 901 901 $edit_user_link = get_edit_user_link( $current_object->ID ); 902 902 if ( $edit_user_link ) { -
trunk/src/wp-includes/http.php
r55990 r56352 355 355 $cookie = wp_remote_retrieve_cookie( $response, $name ); 356 356 357 if ( ! is_a( $cookie, 'WP_Http_Cookie') ) {357 if ( ! ( $cookie instanceof WP_Http_Cookie ) ) { 358 358 return ''; 359 359 } -
trunk/src/wp-includes/user.php
r56194 r56352 4033 4033 $request = wp_get_user_request( $request_id ); 4034 4034 4035 if ( ! is_a( $request, 'WP_User_Request') || 'request-confirmed' !== $request->status ) {4035 if ( ! ( $request instanceof WP_User_Request ) || 'request-confirmed' !== $request->status ) { 4036 4036 return; 4037 4037 } … … 4245 4245 $request = wp_get_user_request( $request_id ); 4246 4246 4247 if ( ! is_a( $request, 'WP_User_Request') || 'request-completed' !== $request->status ) {4247 if ( ! ( $request instanceof WP_User_Request ) || 'request-completed' !== $request->status ) { 4248 4248 return; 4249 4249 } -
trunk/src/wp-login.php
r56245 r56352 1304 1304 1305 1305 // Check if it is time to add a redirect to the admin email confirmation screen. 1306 if ( is_a( $user, 'WP_User' )&& $user->exists() && $user->has_cap( 'manage_options' ) ) {1306 if ( $user instanceof WP_User && $user->exists() && $user->has_cap( 'manage_options' ) ) { 1307 1307 $admin_email_lifespan = (int) get_option( 'admin_email_lifespan' ); 1308 1308 -
trunk/tests/phpunit/includes/testcase-rest-api.php
r50283 r56352 4 4 protected function assertErrorResponse( $code, $response, $status = null ) { 5 5 6 if ( is_a( $response, 'WP_REST_Response' )) {6 if ( $response instanceof WP_REST_Response ) { 7 7 $response = $response->as_error(); 8 8 } -
trunk/tests/phpunit/tests/actions.php
r53942 r56352 536 536 foreach ( $filter as $identifier => $function ) { 537 537 if ( is_array( $function ) 538 && is_a( $function['function'][0], 'MockAction' )538 && $function['function'][0] instanceof MockAction 539 539 && 'action' === $function['function'][1] 540 540 ) {
Note: See TracChangeset
for help on using the changeset viewer.