~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/includes/class-wp-terms-list-table.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:49:28 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: barry.price@canonical.com-20160817044928-viijiwb4tl8jwzmp
new upstream release 4.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
                        $taxonomy = 'post_tag';
54
54
 
55
55
                if ( ! taxonomy_exists( $taxonomy ) )
56
 
                        wp_die( __( 'Invalid taxonomy' ) );
 
56
                        wp_die( __( 'Invalid taxonomy.' ) );
57
57
 
58
58
                $tax = get_taxonomy( $taxonomy );
59
59
 
79
79
 
80
80
                if ( 'post_tag' === $this->screen->taxonomy ) {
81
81
                        /**
82
 
                         * Filter the number of terms displayed per page for the Tags list table.
 
82
                         * Filters the number of terms displayed per page for the Tags list table.
83
83
                         *
84
84
                         * @since 2.8.0
85
85
                         *
88
88
                        $tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page );
89
89
 
90
90
                        /**
91
 
                         * Filter the number of terms displayed per page for the Tags list table.
 
91
                         * Filters the number of terms displayed per page for the Tags list table.
92
92
                         *
93
93
                         * @since 2.7.0
94
94
                         * @deprecated 2.8.0 Use edit_tags_per_page instead.
98
98
                        $tags_per_page = apply_filters( 'tagsperpage', $tags_per_page );
99
99
                } elseif ( 'category' === $this->screen->taxonomy ) {
100
100
                        /**
101
 
                         * Filter the number of terms displayed per page for the Categories list table.
 
101
                         * Filters the number of terms displayed per page for the Categories list table.
102
102
                         *
103
103
                         * @since 2.8.0
104
104
                         *
351
351
                $pad = str_repeat( '— ', max( 0, $this->level ) );
352
352
 
353
353
                /**
354
 
                 * Filter display of the term name in the terms list table.
 
354
                 * Filters display of the term name in the terms list table.
355
355
                 *
356
356
                 * The default output may include padding due to the term's
357
357
                 * current level in the term hierarchy.
469
469
                }
470
470
 
471
471
                /**
472
 
                 * Filter the action links displayed for each term in the Tags list table.
 
472
                 * Filters the action links displayed for each term in the Tags list table.
473
473
                 *
474
474
                 * @since 2.8.0
475
475
                 * @deprecated 3.0.0 Use {$taxonomy}_row_actions instead.
481
481
                $actions = apply_filters( 'tag_row_actions', $actions, $tag );
482
482
 
483
483
                /**
484
 
                 * Filter the action links displayed for each term in the terms list table.
 
484
                 * Filters the action links displayed for each term in the terms list table.
485
485
                 *
486
486
                 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
487
487
                 *
559
559
         */
560
560
        public function column_default( $tag, $column_name ) {
561
561
                /**
562
 
                 * Filter the displayed columns in the terms list table.
 
562
                 * Filters the displayed columns in the terms list table.
563
563
                 *
564
564
                 * The dynamic portion of the hook name, `$this->screen->taxonomy`,
565
565
                 * refers to the slug of the current taxonomy.