Changeset 61454 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 01/09/2026 02:38:07 AM (6 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r60655 r61454 1681 1681 1682 1682 // Handle enclosures. 1683 $enclosure = isset( $post_data['enclosure'] ) ? $post_data['enclosure'] :null;1683 $enclosure = $post_data['enclosure'] ?? null; 1684 1684 $this->add_enclosure_if_new( $post_id, $enclosure ); 1685 1685 … … 1987 1987 $username = $args[1]; 1988 1988 $password = $args[2]; 1989 $filter = isset( $args[3] ) ? $args[3] :array();1989 $filter = $args[3] ?? array(); 1990 1990 1991 1991 if ( isset( $args[4] ) ) { … … 2458 2458 $password = $args[2]; 2459 2459 $taxonomy = $args[3]; 2460 $filter = isset( $args[4] ) ? $args[4] :array();2460 $filter = $args[4] ?? array(); 2461 2461 2462 2462 $user = $this->login( $username, $password ); … … 2616 2616 $username = $args[1]; 2617 2617 $password = $args[2]; 2618 $filter = isset( $args[3] ) ? $args[3] :array( 'public' => true );2618 $filter = $args[3] ?? array( 'public' => true ); 2619 2619 2620 2620 if ( isset( $args[4] ) ) { … … 2765 2765 $username = $args[1]; 2766 2766 $password = $args[2]; 2767 $filter = isset( $args[3] ) ? $args[3] :array();2767 $filter = $args[3] ?? array(); 2768 2768 2769 2769 if ( isset( $args[4] ) ) { … … 3659 3659 $username = $args[1]; 3660 3660 $password = $args[2]; 3661 $struct = isset( $args[3] ) ? $args[3] :array();3661 $struct = $args[3] ?? array(); 3662 3662 3663 3663 $user = $this->login( $username, $password ); … … 4434 4434 $username = $args[1]; 4435 4435 $password = $args[2]; 4436 $struct = isset( $args[3] ) ? $args[3] :array();4436 $struct = $args[3] ?? array(); 4437 4437 4438 4438 $user = $this->login( $username, $password ); … … 4625 4625 $username = $args[1]; 4626 4626 $password = $args[2]; 4627 $filter = isset( $args[3] ) ? $args[3] :array( 'public' => true );4627 $filter = $args[3] ?? array( 'public' => true ); 4628 4628 4629 4629 if ( isset( $args[4] ) ) { … … 5376 5376 $password = $args[2]; 5377 5377 $content_struct = $args[3]; 5378 $publish = isset( $args[4] ) ? $args[4] :0;5378 $publish = $args[4] ?? 0; 5379 5379 5380 5380 $user = $this->login( $username, $password ); … … 5492 5492 } 5493 5493 5494 $post_title = isset( $content_struct['title'] ) ? $content_struct['title'] :'';5495 $post_content = isset( $content_struct['description'] ) ? $content_struct['description'] :'';5494 $post_title = $content_struct['title'] ?? ''; 5495 $post_content = $content_struct['description'] ?? ''; 5496 5496 5497 5497 $post_status = $publish ? 'publish' : 'draft'; … … 5511 5511 } 5512 5512 5513 $post_excerpt = isset( $content_struct['mt_excerpt'] ) ? $content_struct['mt_excerpt'] :'';5514 $post_more = isset( $content_struct['mt_text_more'] ) ? $content_struct['mt_text_more'] :'';5515 5516 $tags_input = isset( $content_struct['mt_keywords'] ) ? $content_struct['mt_keywords'] :array();5513 $post_excerpt = $content_struct['mt_excerpt'] ?? ''; 5514 $post_more = $content_struct['mt_text_more'] ?? ''; 5515 5516 $tags_input = $content_struct['mt_keywords'] ?? array(); 5517 5517 5518 5518 if ( isset( $content_struct['mt_allow_comments'] ) ) { … … 5662 5662 5663 5663 // Handle enclosures. 5664 $enclosure = isset( $content_struct['enclosure'] ) ? $content_struct['enclosure'] :null;5664 $enclosure = $content_struct['enclosure'] ?? null; 5665 5665 $this->add_enclosure_if_new( $post_id, $enclosure ); 5666 5666 … … 5772 5772 $password = $args[2]; 5773 5773 $content_struct = $args[3]; 5774 $publish = isset( $args[4] ) ? $args[4] :0;5774 $publish = $args[4] ?? 0; 5775 5775 5776 5776 $user = $this->login( $username, $password ); … … 5956 5956 } 5957 5957 5958 $post_more = isset( $content_struct['mt_text_more'] ) ? $content_struct['mt_text_more'] :'';5958 $post_more = $content_struct['mt_text_more'] ?? ''; 5959 5959 5960 5960 $post_status = $publish ? 'publish' : 'draft'; … … 5973 5973 } 5974 5974 5975 $tags_input = isset( $content_struct['mt_keywords'] ) ? $content_struct['mt_keywords'] :array();5975 $tags_input = $content_struct['mt_keywords'] ?? array(); 5976 5976 5977 5977 if ( 'publish' === $post_status || 'private' === $post_status ) { … … 6081 6081 6082 6082 // Handle enclosures. 6083 $enclosure = isset( $content_struct['enclosure'] ) ? $content_struct['enclosure'] :null;6083 $enclosure = $content_struct['enclosure'] ?? null; 6084 6084 $this->add_enclosure_if_new( $post_id, $enclosure ); 6085 6085 … … 7060 7060 7061 7061 preg_match( '|<title>([^<]*?)</title>|is', $remote_source, $matchtitle ); 7062 $title = isset( $matchtitle[1] ) ? $matchtitle[1] :'';7062 $title = $matchtitle[1] ?? ''; 7063 7063 if ( empty( $title ) ) { 7064 7064 return $this->pingback_error( 32, __( 'A title on that page cannot be found.' ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)