~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/custom-header.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
966
966
         */
967
967
        public function admin_page() {
968
968
                if ( ! current_user_can('edit_theme_options') )
969
 
                        wp_die(__('You do not have permission to customize headers.'));
 
969
                        wp_die(__('Sorry, you are not allowed to customize headers.'));
970
970
                $step = $this->step();
971
971
                if ( 2 == $step )
972
972
                        $this->step_2();
1183
1183
                $attachment_id = wp_insert_attachment( $object, $cropped );
1184
1184
                $metadata = wp_generate_attachment_metadata( $attachment_id, $cropped );
1185
1185
                /**
1186
 
                 * Filter the header image attachment metadata.
 
1186
                 * Filters the header image attachment metadata.
1187
1187
                 *
1188
1188
                 * @since 3.9.0
1189
1189
                 *