Changeset 20105
- Timestamp:
- 03/04/2012 01:16:32 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-theme.php
r20045 r20105 792 792 * @access public 793 793 * 794 * @param string $uri Type of URL to include, either 'relative' or an absolute URI. Defaults to absolute URI.794 * @param string $uri Type of URL to return, either 'relative' or an absolute URI. Defaults to absolute URI. 795 795 * @return mixed Screenshot file. False if the theme does not have a screenshot. 796 796 */ … … 862 862 * @access public 863 863 * 864 * @return array Screenshots. 865 */ 866 public function get_screenshots() { 864 * @param string $uri Type of URL to return, either 'relative' or an absolute URI. Defaults to absolute URI. 865 * @return array Screenshots. Empty array if no screenshors are found. 866 */ 867 public function get_screenshots( $uri = 'uri' ) { 867 868 if ( ! $count = $this->get_screenshot_count() ) 868 869 return array(); 869 870 870 $screenshots = array( $this->get_screenshot( 'relative' ) ); 871 $pre = 'relative' == $uri ? '' : $this->get_stylesheet_directory_uri() . '/'; 872 873 $screenshots = array( $pre . $this->get_screenshot( 'relative' ) ); 871 874 for ( $i = 2; $i <= $count; $i++ ) 872 $screenshots[] = 'screenshot-' . $i . '.png';875 $screenshots[] = $pre . 'screenshot-' . $i . '.png'; 873 876 return $screenshots; 874 877 }
Note: See TracChangeset
for help on using the changeset viewer.