Changeset 61789
- Timestamp:
- 03/03/2026 05:53:52 AM (2 days ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
-
src/wp-includes/class-wp-comment.php (modified) (1 diff)
-
src/wp-includes/class-wp-post.php (modified) (1 diff)
-
src/wp-includes/class-wp-site.php (modified) (1 diff)
-
src/wp-includes/class-wp-term.php (modified) (1 diff)
-
src/wp-includes/class-wp-user.php (modified) (1 diff)
-
src/wp-includes/post.php (modified) (2 diffs)
-
src/wp-includes/taxonomy.php (modified) (1 diff)
-
tests/phpunit/tests/post/getPost.php (added)
-
tests/phpunit/tests/term/sanitizeTerm.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment.php
r61470 r61789 211 211 * @since 4.4.0 212 212 * 213 * @param WP_Comment $comment Comment object.213 * @param t $comment Comment object. 214 214 */ 215 215 public function __construct( $comment ) { -
trunk/src/wp-includes/class-wp-post.php
r60654 r61789 261 261 * @since 3.5.0 262 262 * 263 * @param WP_Post|object $post Post object.263 * @param object $post Post object. 264 264 */ 265 265 public function __construct( $post ) { -
trunk/src/wp-includes/class-wp-site.php
r60358 r61789 191 191 * @since 4.5.0 192 192 * 193 * @param WP_Site|object $site A site object.193 * @param object $site A site object. 194 194 */ 195 195 public function __construct( $site ) { -
trunk/src/wp-includes/class-wp-term.php
r61445 r61789 193 193 * @since 4.4.0 194 194 * 195 * @param WP_Term|object $term Term object.195 * @param object $term Term object. 196 196 */ 197 197 public function __construct( $term ) { -
trunk/src/wp-includes/class-wp-user.php
r61387 r61789 122 122 * @global wpdb $wpdb WordPress database abstraction object. 123 123 * 124 * @param int|string| stdClass|WP_User$id User's ID, a WP_User object, or a user object from the DB.125 * @param string $name Optional. User's username126 * @param int $site_id Optional Site ID, defaults to current site.124 * @param int|string| $id User's ID, a WP_User object, or a user object from the DB. 125 * @param string $name Optional. User's username 126 * @param int $site_id Optional Site ID, defaults to current site. 127 127 */ 128 128 public function __construct( $id = 0, $name = '', $site_id = 0 ) { -
trunk/src/wp-includes/post.php
r61722 r61789 1136 1136 * @global WP_Post $post Global post object. 1137 1137 * 1138 * @param int| WP_Post|null$post Optional. Post ID or post object. `null`, `false`, `0` and other PHP falsey values1138 * @param int| $post Optional. Post ID or post object. `null`, `false`, `0` and other PHP falsey values 1139 1139 * return the current global post inside the loop. A numerically valid post ID that 1140 1140 * points to a non-existent post returns `null`. Defaults to global $post. … … 1160 1160 } elseif ( 'raw' === $post->filter ) { 1161 1161 $_post = new WP_Post( $post ); 1162 1163 1162 1164 } else { 1163 $_post = WP_Post::get_instance( $post->ID );1165 $_post = ; 1164 1166 } 1165 1167 } else { -
trunk/src/wp-includes/taxonomy.php
r61672 r61789 1724 1724 $do_object = is_object( $term ); 1725 1725 1726 $term_id = $do_object ? $term->term_id: ( $term['term_id'] ?? 0 );1726 $term_id = $do_object ? : ( $term['term_id'] ?? 0 ); 1727 1727 1728 1728 foreach ( (array) $fields as $field ) {
Note: See TracChangeset
for help on using the changeset viewer.