Changeset 61300
- Timestamp:
- 11/25/2025 02:18:04 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/class-wp-screen.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-screen.php
r60658 r61300 176 176 * Stores the result of the public show_screen_options function. 177 177 * 178 * @since 3.3.0 179 * @var bool 178 * Set when calling {@see self::show_screen_options()} for the first time. 179 * 180 * @since 3.3.0 181 * @var ?bool 180 182 */ 181 183 private $_show_screen_options; … … 546 548 * @param string|false $key Optional. Specific array key for when the option is an array. 547 549 * Default false. 548 * @return string The option value if set, null otherwise.550 * @return ?string The option value if set, null otherwise. 549 551 */ 550 552 public function get_option( $option, $key = false ) { … … 599 601 * 600 602 * @param string $id Help Tab ID. 601 * @return array Help tab arguments.603 * @return ?array Help tab arguments, or null if no help tabs added. 602 604 */ 603 605 public function get_help_tab( $id ) { … … 734 736 * 735 737 * @param string $key Screen reader text array named key. 736 * @return string Screen reader text string.738 * @return ?string Screen reader text string, or null if no text is associated with the key. 737 739 */ 738 740 public function get_screen_reader_text( $key ) { … … 950 952 $this->columns = (int) get_user_option( "screen_layout_$this->id" ); 951 953 952 if ( ! $this->columns && $this->get_option( 'layout_columns', 'default' ) ) { 953 $this->columns = $this->get_option( 'layout_columns', 'default' ); 954 $layout_columns = (int) $this->get_option( 'layout_columns', 'default' ); 955 if ( ! $this->columns && $layout_columns ) { 956 $this->columns = $layout_columns; 954 957 } 955 958 }
Note: See TracChangeset
for help on using the changeset viewer.